Navi
Navi

Reputation: 1686

iOS App crashing at startup

I tried to run my app in ipad 1 (iOS 5.0) but at the startup sometime app crashing(during splash screen image) .So i run a profile check and then the total memory usage is near to 5.0Mb and it crashed during launch image .I got a alert from profile that "low memory" .Then i checked the memory allocation and i saw its also using 6.0 mb to get app open and then suddenly it drop to 4.0 Mb and after sometime app crashed.Please check the attached image along with this.

Memory allocation check

Upvotes: 0

Views: 2908

Answers (1)

Marcel
Marcel

Reputation: 6579

When your app launches, application:didFinishLaunchingWithOptions: gets called. It is your job to return from this method as soon as possible. Only do strictly necessary things that your need for your app before your present something to the user.

Do not do ANY synchronous networking at this moment. You can kick off async calls to the network, but you have to return from this method immediately. If you do not, the system will kill your app before it even got to present it's first view.

Upvotes: 2

Related Questions