How to show all camera controls with/for UIImagePickerController?

╄→гoц情女王★ 提交于 2019-12-02 04:31:50

UIImagePickerController doesn't give you Apple's whole Camera app to use inside of your own app. Not all of the functionality of the Camera app is available. You can print available media types by calling -[UIImagePicker availableMediaTypesForSourceType:] and you'll find that you get kUTTypeImage and kUTTypeMovie.

Square, slo-mo, time-lapse, and panorama functionalities are not provided by UIImagePickerController.

UIImagePickerController came out in iOS 2.0, and was probably modern, in its time:

https://developer.apple.com/documentation/uikit/uiimagepickercontroller?language=objc

What you see are "standard controls".

Even today the modern documentation points to the legacy (Objective-C era docs)

The styling of the chrome has changed, but as they say: "the song remains the same."

There are hooks to hide standard controls, and then you can add your own customer controls to operate the camera programatically. I have a pet project to make a version of time-lapse, etc.

But for serious projects, Apple suggests using the AV frameworks, and although I haven't started using them, I certainly agree.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!