私はこのコードを持っています.ipad起動アプリの横向きまたは縦向きモードのiPhoneのみを検出する必要があります
NSString *deviceType = [UIDevice currentDevice].model;
if([deviceType isEqualToString:@"iPhone"])
{
NSLog(@"This is iPhone");
}
else
{
NSLog(@"This is iPad");
}