2

我正在实现相册,我想从相册中选择图像,然后去编辑图像页面并像 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)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {

}

4

1 回答 1

4

检查这个例子。希望它对你有用..

于 2012-06-14T07:08:42.543 回答