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

can't load network PDF file

More
10 years 6 months ago #9518 by NovaRadaeePdf
I have found the reason of slow loading. because I want to make my APP is fluent. so I used the asynchronous processing. but it has extended the loading time. I don't understand why! We only load the PDF on the main thread? And I found load PDF with the main thread in the demo. Why don't we use multithreading and can you tell me how to modify?
More
10 years 6 months ago #9522 by NovaRadaeePdf
Who can help me?! I'm in a hurry! Thanks! :( :( :( :( :(
More
10 years 6 months ago #9553 by NovaRadaeePdf
Can you answer my question?
More
10 years 6 months ago #9556 by emanuele
Hi,

a process started in in an asynchronous thread, is a low priority process, so the download process could take much time.
You should try to call only the download process on main thread.
More
10 years 6 months ago #9559 by NovaRadaeePdf
I want to know do you have a way to solve this problem, asynchronous and fast.
More
10 years 6 months ago #9560 by emanuele
you can do all the operations in background, but, to avoid delays, the PDFOpenStream method and the UI activities should be called on main thread.
Something like:
Code:
[self performBlockOnMainThread:^{ [m_pdf PDFOpenStream:httpStream :@""]; m_pdf.hidesBottomBarWhenPushed = YES; [self.navigationController pushViewController:m_pdf animated:YES]; }];
Time to create page: 0.397 seconds
Powered by Kunena Forum