1 Reply Latest reply: Feb 26, 2013 8:27 PM by optimusfromkerala
Kavishjuneja11 Level 1 (0 points)

Hi ,

 

I am creating an ipad application . When the app launches i am trying to get some data from server , and show it at the beggining .

It works perfectly fine when i run the app in simulator , and flash the build in ipad from Xcode .

 

However ,as soon i create an ipa file , install in ipad it doesnt works . Sometimes , it shows network issue , other times its able to give me the data but as soon i convert the data to JSON objet with NSJSONSerialization class , it returns nill .

 

Any clue on this abrupt issue ??


iPad, iOS 6.1
  • optimusfromkerala Level 1 (0 points)

    Hi,

     

    Are you loading the data in didFinishLaunching ??

    If yes then that is the problem.

     

    ios defines a specific time for app launch, if your app takes more than the allowed time, ios will crash the app.

     

    Possible solution might be move the webservice call from there to some other suitable place, this will ensure that you app will launch regardless of any network issue, which can be handled later.