- it is important to have the iPhone OS 4.0 SDK (iOS 4) installed on your development machine and have the Base SDK set to 4.0 in Xcode. This way your game will work well with multitasking on the iPhone/Touch (actually fast app switching) when iOS 4 is released.
If you set the Base SDK to “iPhone Device 4.0” and the Deployment Target to “iPhone OS 3.0”, your game will work with fast app switching (multitasking) on iPhones/Touches running iOS 4 and still work fine with devices that haven’t yet updated.
iPhoneKeyboard.autorotateToPortrait = false;
iPhoneKeyboard.autorotateToPortraitUpsideDown = false;
iPhoneKeyboard.autorotateToLandscapeLeft = false;
iPhoneKeyboard.autorotateToLandscapeRight = false;