You can also have a look at SSPhotoCropperViewController. It’s a custom view controller that provides a simple, configurable and easy-to-use UI for cropping and scaling photos in iPhone & iPod Touch apps.
For picking photos from the Photo Library, UIImagePickerController does well. However you cannot use it for the photos you get from another sources, say Flickr, FB etc.
发布评论
评论(4)
UIImagePickerController 应该可以解决问题。
然后我们需要实现委托方法:
UIImagePickerController should do the trick.
Then we need to implement the delegate method:
您可以使用 UIImagePickerController 让用户从照片库中选择图像。
You can use a
UIImagePickerController
to let the user select an image from the photos library.@denizen
这
[yourViewController PresentModalViewController:picker];
需要一个动画:BOOL。像:
[yourViewController PresentModalViewController:pickeranimated:YES];
@denizen
The
[yourViewController presentModalViewController:picker];
needs an animated:BOOL.Like:
[yourViewController presentModalViewController:picker animated:YES];
您还可以查看 SSPhotoCropperViewController。它是一个自定义视图控制器,提供简单、可配置且易于使用的 UI,用于在 iPhone 和 iPad 上裁剪和缩放照片。 iPod Touch 应用程序。
对于从照片库中挑选照片,UIImagePickerController 做得很好。但是,您不能将其用于从其他来源(例如 Flickr、FB 等)获取的照片。
这是 教程 和 GitHub 上的源代码。
You can also have a look at SSPhotoCropperViewController. It’s a custom view controller that provides a simple, configurable and easy-to-use UI for cropping and scaling photos in iPhone & iPod Touch apps.
For picking photos from the Photo Library, UIImagePickerController does well. However you cannot use it for the photos you get from another sources, say Flickr, FB etc.
Here is the tutorial and the source code on GitHub for SSPhotoCropperViewController.