Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我会认为 UIImagePickerController 将允许您使用相机或从视图中的库中进行选择?看来我必须选择一个或另一个 cia sourceType?有没有办法在选择库视图中添加一个按钮来切换到相机?
您必须自己实施。您可以制作一个简单的 UISegmentedControl,当值更改时,您可以更改 UIImagePickerController 的源。