iphone photo crop

i am implementing photoalbum and i want to select image from album and then go to edit image page and crop image like iphone do like make rectangle and show matrix same like in iphone 4s and i can resize that but i only see a big rectangle i use this code

if([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypePhotoLibrary])
{
    UIImagePickerController *picker=[[UIImagePickerController alloc]init];
    picker.delegate=(id)self;
    picker.allowsEditing=YES;

    picker.sourceType=UIImagePickerControllerSourceTypePhotoLibrary;
    [self presentModalViewController:picker animated:YES];

and this delegate

- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {

}

Answers


Check this example . hope its works for you..


Need Your Help

How to create custom config for custom Module in openerp 7

openerp-7

How can i create the custom config for cuatom module in openerp 7as shown below