Skip to content

llSourcell/Pano

Repository files navigation

CRVPanoramaImagePicker

A custom image picker designed for picking Panorama images in iOS6.

  !

Usage

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];

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published