Will this code go well resizing for iPhone 5
view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
Will this code go well resizing for iPhone 5
view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
In order to get iPhone 5 simulator In Xcode 4.5 : Goto: iOS Simulator->Hardware-> Devices and then select iPhone retina 4-inch
In order for the app to use entire screen of iPhone 5 you just have to include launch image for 4" screen in your app. Otherwise it won't occupy the whole screen regardless of autoresizing masks.
There are 2 things that need to happen.
As @mifki said, you need to include the default launch image for the iPhone 5. This will enable the use of the full height in your app.
Setting the autosizing mask will only work if your code is set to position its view using the bounds of the view. If your code is using hardcoded coordinates simply by setting the autosizing mask won't work.