Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about iOS development and PDF

Freezing UI on search in large pdf

More
9 years 7 months ago #11018 by JulienP88
If I start a seach request in a multi-layered very large pdf with a huge amout of pages, the UI of my App freezes and the user can't use the app 'til the search is ready. How can I avoid this behaviour?
More
9 years 7 months ago #11021 by emanuele
Hi,

to avoid this behavior, you could perform the action in background, for example using performBlockInBackground method of the NSObject category included into demo project.
More
9 years 7 months ago - 9 years 7 months ago #11024 by JulienP88
This is not working. The search is still blocking the UI!
Do do you habe another solution?

This is my code:
Code:
[self.m_view vGoto:0]; dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0); dispatch_async(queue, ^{ [self.m_view vFindStart:searchTerm :NO :NO]; dispatch_async(dispatch_get_main_queue(), ^{ [self.m_view vFind:1]; }); });
Last edit: 9 years 7 months ago by JulienP88.
More
9 years 7 months ago #11038 by emanuele
Hi,

can you reproduce this issue in demo project? In this case, can you share the pdf used for testing?
Time to create page: 0.405 seconds
Powered by Kunena Forum