I added [email protected] image to existing iphone4 code for iphone5 and i used autoresizingMask. But i settted frame for iphone4 is 320,480 using initWithFrame. Also i setframe for navigationBarButton is based on iphone4 screen size. Now im running my code to iphone5, the iphone4 frame size only displayed all subview's frames. For example: I used button frame is (280,5,30,30) in iphone4. This same size only displayed in iphone5?
You should NEVER set frames manually based on a hard coded size for the screen.
Look at using [UIScreen mainScreen].size