Use this code it will help you, here we have to create two xib
file for using this code like (viewcontroller.xib and viewcontroller_5.xib),when you use the application in iphone4
call iphone4
screen else call iphone5
screen.
Thanks.
if([[UIScreen mainScreen] bounds].size.height == 568){
self.viewController = [[[ViewController alloc] initWithNibName:@"ViewController_5" bundle:nil] autorelease];
NSLog(@"iphone5");
}else
{
self.viewController = [[[ViewController alloc] initWithNibName:@"ViewController" bundle:nil] autorelease];
NSLog(@"iphone4");
}