Question: When I am using Xcode 5 and I set the deployment target as 7.0, the application runs perfectly with both 4-inch and 3.5-inch displays.

I have downloaded the iOS 6 SDK already.

When I change the base SDK to iOS 6 and set the deployment target as iOS 6.1 my GUI is affected in a way that changes every image, navigation bar, images and all other controls.

I am not using autolayout and have two `.xib` files for one `UIViewController` in each class.

So, how can I get fix this?

Thanks in advance.

Answer: 
Use this code:

```
if([[[UIDevice currentDevice] systemVersion] isEqualToString: @"7.0"])
{    
    //do stuff 
}
else
{ 
  // code here
}

```
If your application is working fine in iOS 7 and you need to run it iOS 6 then you need to manage the application using this method:

```
if ([currSysVer compare:reqSysVer options:NSNumericSearch] != NSOrderedAscending){
    //CGRect gridFrame;
    if ([[UIScreen mainScreen] bounds].size.height == 568) {
       // Do nothing if already managed
    }else{
       // Do nothing if already managed
    }
}else{
    //CGRect gridFrame for ios6;
    if ([[UIScree`enter code here`n mainScreen] bounds].size.height == 568) {
        //Manage frame here 
    }else{
       //Manage frame here 
    }
}

```