开发者

Different behavior of app while testing on device and simulator ?

When I test my app on simulator,

When user tap the phone's Home button, app goes inactive and when opens again by tapp开发者_StackOverflowing 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 :)


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/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜