开发者

Need help installing ELCImagePickerController?

开发者 https://www.devze.com 2023-03-06 08:05 出处:网络
I was excited when I ran across ELCImagePickerController. When following the instructions on their website and github, it crashes when开发者_运维问答 I try to show it. I coppied the ELC Image Picker f

I was excited when I ran across ELCImagePickerController. When following the instructions on their website and github, it crashes when开发者_运维问答 I try to show it. I coppied the ELC Image Picker folder inside my app, and I have changed the following in my .h:

#import "ELCImagePickerController.h" 
@interface DetailViewController : UIViewController <OHGridViewDelegate, OHGridViewDataSource, UIActionSheetDelegate, ELCImagePickerControllerDelegate, UINavigationControllerDelegate, UIScrollViewDelegate> {

And in my .m

#import "ELCImagePickerController.h"
#import "ELCAlbumPickerController.h"

ELCImagePickerController *controller = [[ELCImagePickerController alloc] initImagePicker];
        [controller setDelegate:self];
        [self presentModalViewController:controller animated:YES];
        [controller release];

When trying to build, it gives me the warning No '-initImagePicker' method found. Am I missing something simple here?

Please help! Thanks.


Please ensure that the initImagePicker method is present in ELCImagePickerController.h.

Also, I guess the Readme in Github is not updated.

Try using the -(void)selectedAssets:(NSArray*)_assets method implemented in ELCImagePickerController.m.

0

精彩评论

暂无评论...
验证码 换一张
取 消