让用户在iOS应用中裁剪照片 [英] Let User Crop Photo in iOS App
问题描述
关于在iPhone应用程序中裁剪图像/照片有几个问题(和答案)。
There are several questions (and answers) concerning cropping of images/photos within an iPhone app.
但我找不到涵盖常见任务的答案为用户提供一个矩形,可以通过捏合手势调整大小,让他调整区域大小。
But I couldn't find an answer covering the common task of giving the user a rectangle which can be resized with a pinch gesture to letting him resize the area to cut.
您可以在许多应用程序中找到此功能(Instagram,Twitter,等...)最有可能将用户照片剪切成正确的比例。所以我想有很多人都有同样的问题。
You can find this functionality in many apps (Instagram, Twitter, etc...) most likely to cut a user photo to the right proportions. So I guess there are many people with the same problem.
有没有人有代码或教程来说明如何完成这项任务?
Does anyone have code or tutorials to show how this task can be done?
推荐答案
尝试以下链接,例如项目:
Try Below links for example project :
https://github.com/iosdeveloper/ImageCropper
https://github.com/barrettj/BJImageCropper
https://github.com/ardalahmet/SSPhotoCropperViewController
这篇关于让用户在iOS应用中裁剪照片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!