简体   繁体   中英

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? Reason being is I am using a UIPageController so dont want to have to call a modal 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

IMPORTANT

The UIImagePickerController class supports portrait mode only. This class is intended to be used as-is and does not support subclassing.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM