I am new to iPhone development i want to make my code compatible with iPhone 4s and iPhone5
but when i apply image to background view of 4S its size 320*480 but it changes in iPhone 5.
How to manage this compatibility?
Also do i need manage compatibility for buttons and their position in iPhone 4s and iPhone 5.
If yes? then how to handle position of button pro-grammatically...
I found this solution ..
if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone){
CGSize result = [[UIScreen mainScreen] bounds].size;
if(result.height == 480)
{
// iPhone Classic }
if(result.height == 568)
{
// iPhone 5
}}
Does it works?