MTPhotoPicker 0.1.1

MTPhotoPicker 0.1.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Oct 2015

Maintained by Ulyanov Dima.




  • By
  • Ulyanov Dmitry

MTPhotoPicker is an imessage style photo picker for your application with customization and rotation support

Features

  • automatically parse photolibrary
  • you can customize buttons/add your own
  • smooth animation and iMessage style design
  • support screen rotation

ScreenShots

enter image description here

Usage

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

Requirements

Installation

MTPhotoPicker is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "MTPhotoPicker"

Author

Ulyanov Dmitry, [email protected]

License

MTPhotoPicker is available under the MIT license. See the LICENSE file for more info.