Reputation: 446
When I test my app on simulator,
When user tap the phone's Home button, app goes inactive and when opens again by tapping the app icon, it become active by showing the same view which was shown before tapping Home button.
BUT When test on Device,
When user tap the phone's Home button, app goes inactive and when opens again by tapping the app icon, it become active but NOT showing the same view which was shown before tapping Home button and shows the first view (here Login view of app ).
Why it behaves differently?? What I can do here to make app behaves as on simulator??
Thanks :)
Upvotes: 0
Views: 945
Reputation: 13180
the reason is your simulator may be of 4.0 or 4.2. or latest version.
Hence , when you click on simulator home button app should not removed from background and app is running on background.
hence you clicked again app icon it will open same view.
while your iphone (device) may be 3.0 hence it is not multitasking.
hence , when clicked on home button app would not remain in background and removed from background . hence when you again touch on app icon it should open from begining.
MULTITASKING section from this link should help you..
http://www.differencebetween.com/difference-between-apple-iphone-ios-3-and-ios-4/
Upvotes: 2