首页 > 解决方案 > 无法让 Popup 视图控制器在 iPhone 上工作

问题描述

所以我有一个可以在我的 iPhone 上运行的弹出视图控制器,而不是我的 iPhone

平板电脑:

苹果手机:

不知道我做错了什么。

代码:

self.imgPicker = [[UIImagePickerController alloc] init];
    //self.imgPicker.allowsImageEditing = YES;
    self.imgPicker.delegate = self;
    self.imgPicker.sourceType = 
 UIImagePickerControllerSourceTypePhotoLibrary;




locations=[[NSMutableArray alloc] initWithObjects:@"BOSTON",@"CHICAGO",@"DALLAS",@"DC",@"ORLANDO",@"PHILLY",@"VEGAS",@"NEWYORK",@"LA",@"SANFRAN",@"REPAIR", @"SUBRENTAL",@"MULTIPLE", nil];

if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
{
    [self buildPopover];

} else
    [self buildActionsheet];

标签: iosiphonepopover

解决方案


推荐阅读