ios - 无法让 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];
解决方案
推荐阅读
- save - 为什么我的网络在没有我调用优化器的情况下发生变化?
- python - 从张量数组中切片不均匀的列
- android - 如何修复tensorflow和android studio之间的图像预处理差异?
- javascript - 运行有关语法错误的nodejs代码时出错
- java - 泛型类型的 Guice 绑定不适用于“.class”
- android - 同步gradle的问题
- spring-boot - Spring Boot 中使用 url 编码字符的请求映射
- node.js - 验证节点的中间件
- javascript - 两个子组件之间的数据传输问题
- python - python中嵌套循环中的执行顺序