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 <z...@mac.com> 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 (Cocoa-dev@lists.apple.com)
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/diederik%40tenhorses.com
> 
> This email sent to diede...@tenhorses.com


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com
  • UIPicker Alex Zavatone
    • Re: UIPicker Diederik Meijer | Ten Horses

Reply via email to