Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8888151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:58:19+00:00 2026-06-14T21:58:19+00:00

I am developing a custom PDF reader for ipad.I have taken a UIScrollView and

  • 0

I am developing a custom PDF reader for ipad.I have taken a UIScrollView and adding/removing UIViews to it on which the equivalent thumbnail of corresponding pdf page will be displayed.I am creating an NSOperation and adding to a NSOperationQueue as soon as a UIView is added to the scroll view to generate PDF thumbnail in background.At any point of time there will be 3 UIViews on the scroll view.The whole arrangement is working fine with the small PDF files as they renders fast but the problem is with large/complex PDF pages,when ever user leaves navigation at a particular page, as per my implementation,there will be 3 NSOperations simultaneously working in the background to generate 3 thumbnails(one for previous page,one for current page and other for next page)thus taking long time,as a whole, to display the current page.I tried to iterate through all live NSOperation objects and set high priority to the one which is suppose to render the current page thumbnail in scrollViewDidEndDecelerating: method but its not working and the resulting effect is still same.Please suggest me a way to over come my problem, thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T21:58:20+00:00Added an answer on June 14, 2026 at 9:58 pm

    If you have set your NSOperationQueue to work in the background (i.e. you have not called [NSOperationQueue mainQueue]. The tasks should be completed asynchronously, but will not update the view which is running on the main thread until much later. The priority level does not matter as it does not relate to the thread in which the action takes place. The solution would be to add:

    -(void)main {
    
        // ** load PDF image **
    
        [self performSelectorOnMainThread:@selector(insertImageLoaded:)
                                withObject:img
                            waitUntilDone:YES];
    
    }
    

    Basically, what you must remember is that iOS creates a small thread pool which is much more visible when using GCD that NSOperations.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing custom Media Controller and i have taken four button(play/pause,next,pre and bandwidth)inside a
I am developing a custom list-search tool. I have multiple custom properties to retain
I'm developing a custom control, which most resembles a text area. I am drawing
I am developing a custom shopping cart for which existing customers will need to
I am developing custom components which fit into the Nimbus look and feel. I'm
As a company specialized in developing custom CMS, we have been asked to deploy
I am developing a custom homepage background,in my html have <form action='.$_SERVER['PHP_SELF'].'> <input type=text
I am developing custom iPad applications for clients. So far I know that you
Recently I was developing a custom jQuery-based content slider, which unlike most other sliders
I am developing a C# application in which I am converting a PDF document

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.