问题
I'm testing an iPhone app in both the simulator (XCode 3.2.3, iPhone SDK 4.0.1) and on the device (iPhone 4 and iOS 4.0.1). The simulator exhibits the expected "fast app switching" behavior while the device does not.
Simulator:
- click home button while app is running => go back to home screen
- click the app icon => app resumes where it left-off (app does not restart)
Device
- click home button while app is running => go back to home screen
- click the app icon => app restarts (does not resume from the user quit)
Why is this happening?
回答1:
Maybe your phone is low on memory.
来源:https://stackoverflow.com/questions/3323882/ios-4-0-1-fast-app-switching-behavior-in-simulator-vs-device-iphone-4