-
-
Notifications
You must be signed in to change notification settings - Fork 739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
configurePickerView for ActionSheetCustomPicker throws exception #10
Comments
It's the same thing Sent from my iPhone 5s
|
How is it the same thing? The way its currenltly written: if(self.initializeSelections) Will always evaluate to true, then the asserts within the if block will ... if (self.initialSelections && self.initialSelections.count > 0) to be safer. On Sat, Jul 19, 2014 at 10:58 AM, Gregory P. Moore, MD <
|
Hi. What for this check? Now the logic is: We already have initialiser without initialSelections So, I don't think that accept empty arrays is correct. It's not clear, what behaviour is right. |
This works as expected, thanks for the quick fix! I think this is the correct behavior, if you call showPickerWithTitle and do not pass initialSelections: i.e.
then it should NOT instantiate an NSArray and assign it to self.initialSelections. i.e. the fix:
Thanks! |
I think you want:
if (self.initialSelections.count > 0)
instead of:
if (self.initialSelections)
or only initialize the array in the initWithTitle method if intialSelections is not nill:
The text was updated successfully, but these errors were encountered: