TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Oct 2015 |
Maintained by Ulyanov Dima.
MTPhotoPicker is an imessage style photo picker for your application with customization and rotation support
To run the example project, clone the repo, and run pod install
from the Example directory first.
or
create photo picker object
MTPhotoPicker * _pickerView = [MTPhotoPicker pickerWithTitle:@"Choose Photo" alternateTitle:@"Attach photos (%ld)" otherTitles:@[@"Choose video",@"Capture"] cancelTitle:@"Cancel"];
implement delegate methods
#pragma mark - MTPhotoPickerDelegate
-(BOOL)photoPickerShouldDismissWithAssets:(NSArray *)assets{
return YES;
}
-(void)photoPickerAssetsSelected:(NSArray *)assets{
//use ALAsset array
}
-(void)photoPickerDidDismiss{
_pickerView = nil;
}
-(void)photoPickerButtonItemClicked:(NSInteger)itemInedx{
//handle custom buttons click
}
Show picker
[_pickerView loadAssets:^{
[self.pickerView showInView:self.view];
}];
MTPhotoPicker is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "MTPhotoPicker"
Ulyanov Dmitry, [email protected]
MTPhotoPicker is available under the MIT license. See the LICENSE file for more info.