Tuesday 2 August 2016

ImagePicker in iOS 8+ (objective-c)

Here is the Rocket repo for the image picker and simple code for open actionsheet.
[[ImagePicker sharedPicker] imagePickerOnViewController:self
                                                   withSize:CGSizeMake(150, 150)
                                                   andImage:^(UIImage *img) {
                                                       if (img) {
                                                           self.imgView.image = img;
                                                       } else {
                                                           NSLog(@"Image not available");
                                                       }
                                                   }];



No comments:

Post a Comment