Tyrone Prude
Tyrone Prude

Reputation: 382

Application run different in debugger

Currently working on an application and when run on the simulator or device behaves normally. When you close and reopen the application is behaving strangely.

For example I want to upload the application on the device (iPad), the first run everything is proceeding normally, then I close the application and it is open in the background and behaves strangely, cells no longer have same order.

If you delete the application and run it again after the device from Xcode everything returns to normal.

I tried both ways: Release and Debug. I checked the code and did deallocate.   Can someone help me with more advice? Thanks in advance!

Upvotes: 0

Views: 48

Answers (1)

Ivan Nikitin
Ivan Nikitin

Reputation: 4143

I suppose you mean pressing the Home button when saying "close". iOS transforms your app in a special suspended state and it seems you don't restore from it correctly. iOS sends a applicationWillEnterForeground notification when your app is being restored from the suspended state and you may need to behave differently than app being launched the first time.

Here you can find more info about this method.

Upvotes: 1

Related Questions