Present Image Picker like Instagram, crop photo and video with GPUImage.
With CocoaPods, add this line to your Podfile.
pod 'InstagramAssetsPicker'
#import "IGAssetsPicker.h"
IGAssetsPickerViewController *picker = [[IGAssetsPickerViewController alloc] init];
picker.delegate = self;
picker.cropAfterSelect = true;
[self presentViewController:picker animated:YES completion:NULL];
If you want to crop the asset later, set cropAfterSelect
to false
on the IGAssetsPickerViewController
instance.
InstagramAssetsPicker is available under the MIT license. See the LICENSE file for more info.