'UIImagePickerController' 和 'allowsEditing' 在编辑视图中隐藏这些行
'UIImagePickerController' and 'allowsEditing' hide those lines on editing view
如何确保 UIImagePickerController 总是 returns 方形图像? WhatsApp 做到了,但我还没有找到实现它的方法。
http://i.stack.imgur.com/8CVln.jpg
只需使用 ImagepickerView 并允许编辑即可完成
我的代码:-
// setting profile pic
let myImagePickerController = UIImagePickerController()
myImagePickerController.delegate = self
myImagePickerController.sourceType = UIImagePickerControllerSourceType.PhotoLibrary
// myImagePickerController.sourceType = UIImagePickerControllerSourceType.Camera
myImagePickerController.allowsEditing = true
self.presentViewController(myImagePickerController, animated: true, completion: nil)
我只想要同一个编辑器,但没有这些行,有什么可能的方法来实现这个目标吗?
P.S。这个问题已经有人问了,但还没有回答,所以我再问一次。
更好的是你应该使用自定义视图和 post 你从 segue 中选择的图像并且使用这个库之一 https://github.com/ruslanskorb/RSKImageCropper 很抱歉回答这个应该是评论但没有声誉那:/
如何确保 UIImagePickerController 总是 returns 方形图像? WhatsApp 做到了,但我还没有找到实现它的方法。
http://i.stack.imgur.com/8CVln.jpg
只需使用 ImagepickerView 并允许编辑即可完成
我的代码:-
// setting profile pic
let myImagePickerController = UIImagePickerController()
myImagePickerController.delegate = self
myImagePickerController.sourceType = UIImagePickerControllerSourceType.PhotoLibrary
// myImagePickerController.sourceType = UIImagePickerControllerSourceType.Camera
myImagePickerController.allowsEditing = true
self.presentViewController(myImagePickerController, animated: true, completion: nil)
我只想要同一个编辑器,但没有这些行,有什么可能的方法来实现这个目标吗?
P.S。这个问题已经有人问了,但还没有回答,所以我再问一次。
更好的是你应该使用自定义视图和 post 你从 segue 中选择的图像并且使用这个库之一 https://github.com/ruslanskorb/RSKImageCropper 很抱歉回答这个应该是评论但没有声誉那:/