ting在UIImagePickerController中自定义

ting在UIImagePickerController中自定义

本文介绍了iPhone SDK - 如何使用allowEditing在UIImagePickerController中自定义crop rect?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法用相机图像选择器定义裁剪区域?

Is there any way to define the crop area rect using the camera image picker?

推荐答案

不幸的是,没有。

您必须实现自定义裁剪GUI以获取除默认值以外的任何内容,如iOS相机编程主题中所述:

You have to implement a custom cropping GUI to get anything other than the default, as stated in the Camera Programming Topics for iOS:

当使用内置编辑控件时,图像选择器控制器强制执行某些选项。对于静止图像,选择器强制执行方形裁剪以及最大像素尺寸。对于电影,选择器强制执行最大电影长度和如果您想让用户编辑全尺寸媒体或指定自定义裁剪,您必须提供自己的编辑用户界面。

"When using built-in editing controls, the image picker controller enforces certain options. For still images, the picker enforces a square cropping as well as a maximum pixel dimension. For movies, the picker enforces a maximum movie length and resolution. If you want to let the user edit full-size media, or specify custom cropping, you must provide your own editing UI."

这篇关于iPhone SDK - 如何使用allowEditing在UIImagePickerController中自定义crop rect?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-18 17:24