questbeat/QBImagePickerController — pull request #10 by kelp404 (2013-07-05 03:14:34+00:00)
Title: fixed the crash.

Hello @questbeat,

If there are 3 photos in my iPhone and I set `maximumNumberOfSelection` equal 3, when I selected the last photo it will crash.

```objective-c
QBImagePickerController *imagePicker = [QBImagePickerController new];
imagePicker.delegate = self;
imagePicker.allowsMultipleSelection = YES;
imagePicker.limitsMaximumNumberOfSelection = YES;
imagePicker.maximumNumberOfSelection = 3;
imagePicker.fullScreenLayoutEnabled = NO;
imagePicker.filterType = QBImagePickerFilterTypeAllPhotos;

UINavigationController *navigation = [[UINavigationController alloc] initWithRootViewController:imagePicker];
navigation.modalPresentationStyle = UIModalPresentationFormSheet;
[self presentViewController:navigation animated:YES completion:NULL];
```

![2013-07-05 10 43 07](https://f.cloud.github.com/assets/1680868/751903/d9a64032-e520-11e2-9131-10a91771b1fc.png)

![2013-07-05 10 50 03](https://f.cloud.github.com/assets/1680868/751904/dd3d6f90-e520-11e2-9748-8cd6a35e4bb4.png)