[英]Is it possible to wire up a custom UIImagePickerController class with a viewController on the storyboard
I want this class to wire up with a storyboard scene. 我希望这个课程与故事板场景相连。 The current result is that my storyboard view controller displays my saved photos album.
目前的结果是我的故事板视图控制器显示我保存的照片相册。 i want to customise this class so it displays the camera.
我想自定义这个类,以便它显示相机。 Is there a way to do this here without having to create a UIViewController class and create and display a UIImagePickerController within that?
有没有办法在这里做到这一点,而不必创建一个UIViewController类,并在其中创建和显示UIImagePickerController? Reason being is I am using a UIPageController so dont want to have to call a modal imagepickervc.
原因是我正在使用UIPageController所以不想要调用模态imagepickervc。
class CameraViewController: UIImagePickerController {
override func viewDidLoad() {
super.viewDidLoad()
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
From the UIImagePickerController class reference 来自UIImagePickerController类的引用
IMPORTANT
重要
The UIImagePickerController class supports portrait mode only.
UIImagePickerController类仅支持纵向模式。 This class is intended to be used as-is and does not support subclassing.
此类旨在按原样使用,不支持子类化。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.