Try this one.
In your AppDelegate
method first define this one:
#define IPHONE_STORYBOARD_NAME @"Main_iPhone";
#define IPAD_STORYBOARD_NAME @"Main_iPad";
Then declare this method:
+ (NSString *)storyboardName
{
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
return IPHONE_STORYBOARD_NAME;
} else {
return IPAD_STORYBOARD_NAME;
}
}
Where you want call this storyboardName
method
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:[AppDelegate storyboardName] bundle:nil];
I think this will helps you :)