JaHelia
JaHelia

Reputation: 1221

tabBar app launches very slowly on iPhone device

I have a tab bar based app that runs like a charm on simulator and tested on instruments, the app contains 6 tabs, the first one that is been loaded contains only 8 round rect buttons (with a little png image on each one, image size is very small), each button when touched (up inside) will display a diferent view controller. each one of the other tabs contains a table view except for a one that contains a webView that loads a 25 MB PDF file. However, when I try to test the app on iphone device (iphone 1st genration the one that is before 3G, that runs ios 3.0.1) that app takes around a minute to load, how come that ??? what is the reason for this weird problem ?

Upvotes: 0

Views: 261

Answers (3)

user605317
user605317

Reputation: 11

Try changing the PDF to something that is tiny, 100KB maybe and see if it is still doing that. If not then it is due to the fact that the app is trying to load the PDF when it runs. Remember that the device may also be scanning the app to see what is in the bundle and that could also slow it down. Never the less, a 25MB PDF is far too large to have on any device, even a computer. Trying loading it on a computer zooming right in and scrolling about, it will undoubtably lag.

If you want to reduce the size of the PDF, use the Quartz Filter that comes in Preview as this should really reduce the file size.

Upvotes: 1

Ernő Simonyi
Ernő Simonyi

Reputation: 365

Its probably because the simulator uses your computer's resources, for it a 25mb pdf file might be nothing whereas it porbably is a huge strain for the iphone with its limited resource count. As has been stated above,try it with a smaller pdf , it should be much much faster on the iphone.

Upvotes: 1

slaphappy
slaphappy

Reputation: 6999

I guess that's because you're loading a 25MB PDF file. This is huge for a 1st generation iPhone.

Upvotes: 1

Related Questions