B-Sides / ELCImagePickerController

A clone of the UIImagePickerController using the Assets Library Framework allowing for multiple asset selection
http://www.icodeblog.com
1.65k stars 469 forks source link

[ELCImagePickerController setMaximumImagesCount:]: unrecognized selector sent to instance #64

Closed mal3k closed 11 years ago

mal3k commented 11 years ago

Hi,

I am using version 0.1.2 via cocoapods. When I run my app the following instance variable is crashing my app:

ELCAlbumPickerController *albumController = [[ELCAlbumPickerController alloc] init];
ELCImagePickerController *imagePicker = [[ELCImagePickerController alloc] initWithRootViewController:albumController];
[imagePicker setMaximumImagesCount:4];//crash here
[albumController setParent:imagePicker];
[imagePicker setDelegate:self];

// Present modally
[self presentViewController:imagePicker
                   animated:YES
                 completion:nil];

the following way is also not working:

imagePicker.maximumImagesCount = 4;//not working either

the iVar maximumImagesCount is there in ELCImagePickerController. So why the code is crashing?

Thanx.

iOS target = 5.1

jvanmetre commented 11 years ago

setMaximumImagesCount wasn't introduced until after the 0.1.2 tag. I'll go ahead and create a 0.1.3 tag to introduce it.