UIImagePickerController 总是拍摄 640x640 的图像
当我在 iPhone 应用程序中呈现 UIImagePickerController 时,它总是会出现一个周围有框架的白色方块,用户可以放大和缩小图像并使其适合白色方块。无论它们在白色方块中的大小,都会返回:
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)img editingInfo:(NSDictionary *)info
并且始终为 640x640。
为什么用户不能选择整个图像?为什么这个白色方块会出现?
When I present a UIImagePickerController in my iPhone App, it always comes up with a white square with a frame around it, and the user has can zoom in and out of an image and make it fit within the white square. Whatever they fit in the white square is what is returned to:
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)img editingInfo:(NSDictionary *)info
and it is always 640x640.
Why can't the user select an entire image? Why does this white square even come up?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
内置编辑非常有限。以下是 Apple文档 说:
Built in editing is very limited. Here is what the Apple documentation says:
确保您没有启用 UIImagePickerController 的编辑功能。
你只需要这个:
Make sure you're not enable editing for the UIImagePickerController.
You just need this: