A custom image picker designed for picking Panorama images in iOS6.
To use it, add the CRVPanoramaImagePicker
folder to your project. Be sure to #import "CRVPanoramaImagePicker.h"
.
To initialize the picker:
panoramaImagePicker = [[CRVPanoramaImagePicker alloc] init];
[panoramaImagePicker setDisablePortraitImages:NO];
[panoramaImagePicker setGotPanoramaImage:^(UIImage * image) {
NSLog(@"Got the image: %@", image);
[myImageView setImage:image];
[self dismissViewControllerAnimated:YES completion:nil];
}];
setGotPanoramaImage:^(UIImage * image){}
to set the callback performed on the image the user has selected.
You can also disable portrait panoramas via setDisablePortraitImages
.
To present the image picker:
[self presentViewController:panoramaImagePicker animated:YES completion:nil];