[英]Is it possible to wire up a custom UIImagePickerController class with a viewController on the storyboard
我希望這個課程與故事板場景相連。 目前的結果是我的故事板視圖控制器顯示我保存的照片相冊。 我想自定義這個類,以便它顯示相機。 有沒有辦法在這里做到這一點,而不必創建一個UIViewController類,並在其中創建和顯示UIImagePickerController? 原因是我正在使用UIPageController所以不想要調用模態imagepickervc。
class CameraViewController: UIImagePickerController {
override func viewDidLoad() {
super.viewDidLoad()
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
重要
UIImagePickerController類僅支持縱向模式。 此類旨在按原樣使用,不支持子類化。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.