iOS - how to implement crop image like default photo album?

后端 未结 4 885
眼角桃花
眼角桃花 2021-02-09 09:42

The default crop function in iPhone photo album

\"enter

Does any one know how to i

4条回答
  •  不知归路
    2021-02-09 10:35

    If I understand your question correctly, you want to present a UIImagePickerController with the ability to crop the picture before picking it. This is built-in into UIImagePickerController, just set the allowsEditing property to YES. See the documentation for more info http://developer.apple.com/library/ios/#documentation/uikit/reference/UIImagePickerController_Class/UIImagePickerController/UIImagePickerController.html.

提交回复
热议问题