Re: UIPicker
Re: UIPicker
- Subject: Re: UIPicker
- From: Diederik Meijer | Ten Horses <email@hidden>
- Date: Mon, 19 Jan 2015 22:59:52 +0100
I think you can call selectRow: inComponent: animated: in viewWillAppear to achieve an initial selection
Op 19 Jan 2015, om 21:58 heeft Alex Zavatone <email@hidden> het volgende geschreven:
> iOS UIPicker first display issues.
>
> Hi. Some of our users are having problems with the UIPicker when its initially displayed.
>
> Since the UIPicker displays with an item in the row already, many users instantly think that value displayed is the one selected and immediately dismiss the picker view.
>
> I've tried to call selectRow: inComponent: animated: and didSelectRow: inComponent: on the pickerView after I've allocated it, but these fail to actually select the row.
>
> Within didSelectRow: inComponent: is where I'm handling what is selected.
>
> When is the proper time to declare which row to show as selected?
>
> As it is now, I'm thinking of resorting to the dismissal of pickerView and checking to see if the selectedRowInComponent is equal to nil.
>
> Any advice on the proper location in the creation of the UIPicker to assign this is appreciated.
>
> Thanks,
> Alex
>
> Sent from my iPad. Please pardon typos.
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >UIPicker (From: Alex Zavatone <email@hidden>) |