I'm developing an IPad application that use a prefeatched database with a synchronisation feature of course, when the app start, it checks for the existence of its database on Docum开发者_如何学Goent directory, if database doesn't exists the application copy its database from ressource file to document directory.
when I start testing the application with a smaller database (< 300 MB) the application start correctly, but when I test it with the real database (5 GB) the application is stopped due to timeout
can anyone have an idea of how to increase the launch timeout for the application? is there another approch to do database copy without having to deal with this problem?
Thank's in advance
Regards
You should present the UI to the user as soon as possible and then start copying the database on background thread.
5 GB is quite a sizable database. If you intend to distribute this app over the App Store, then you should be aware that the download limit for App Store apps is 2 GB.
You cannot change the launch timeout because that is a system function. Instead, you need to change when you do the load as fichek suggested.
精彩评论