【发布时间】:2014-02-08 22:33:26
【问题描述】:
我不擅长在代码中创建视图,所以这可能是一个简单的问题。
在我的 iPad 应用程序中,我有这个图像选择器,我想在屏幕中心的 500x500 模态视图或表单中心屏幕中显示它:
_imagePicker = [[UIImagePickerController alloc] init];
_imagePicker.delegate = self;
_imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
_imagePicker.allowsEditing = NO;
_imagePicker.navigationBar.tintColor = [UIColor redColor];
_imagePicker.navigationBar.backgroundColor = [UIColor greenColor];
现在我该怎么做才能创建模态视图或表单并在其中显示图像选择器?
(我查看了许多示例和问答,但找不到简单的答案。感谢您的帮助!)
【问题讨论】:
标签: ios7 uiimagepickercontroller modalviewcontroller