我正在实现相册,我想从相册中选择图像,然后去编辑图像页面并像 iphone 一样裁剪图像,就像在 iphone 4s 中一样制作矩形和显示矩阵,我可以调整它的大小,但我只看到一个大的长方形
我用这个代码
if([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypePhotoLibrary])
{
UIImagePickerController *picker=[[UIImagePickerController alloc]init];
picker.delegate=(id)self;
picker.allowsEditing=YES;
picker.sourceType=UIImagePickerControllerSourceTypePhotoLibrary;
[self presentModalViewController:picker animated:YES];
还有这个代表
- (void)imagePickerControllerUIImagePickerController *)picker didFinishPickingMediaWithInfoNSDictionary *)info {
}
Best Answer-推荐答案 strong>
查看 example .希望它对你有用..
关于iphone照片裁剪,我们在Stack Overflow上找到一个类似的问题:
https://stackoverflow.com/questions/11028169/
|