在不关闭 UIImagePickerController 的情况下捕获 UIImage?
Capture a UIImage without dismissing the UIImagePickerController?
我在 UIImagePickerController
上使用自定义叠加视图来捕获 UIImage
。
自定义叠加视图只有一个按钮。单击此按钮我想捕获 UIImage
而不关闭 UIImagePickerController
?
如何在不使用 didFinishPickingMediaWithInfo
方法的情况下获得 UIImage
?
我认为 picker.takePicture()
可能会做你想做的...来自 docs:
Use this method in conjunction with a custom overlay view to initiate
the programmatic capture of a still image. This supports taking more
than one picture without leaving the interface, but requires that you
hide the default image picker controls.
您可以使用 didFinishPickingMediaWithInfo
委托方法。只是不要在委托方法中关闭图像选择器,图像选择器将留在视图中。
我在 UIImagePickerController
上使用自定义叠加视图来捕获 UIImage
。
自定义叠加视图只有一个按钮。单击此按钮我想捕获 UIImage
而不关闭 UIImagePickerController
?
如何在不使用 didFinishPickingMediaWithInfo
方法的情况下获得 UIImage
?
我认为 picker.takePicture()
可能会做你想做的...来自 docs:
Use this method in conjunction with a custom overlay view to initiate the programmatic capture of a still image. This supports taking more than one picture without leaving the interface, but requires that you hide the default image picker controls.
您可以使用 didFinishPickingMediaWithInfo
委托方法。只是不要在委托方法中关闭图像选择器,图像选择器将留在视图中。