iphone - how to place previously selected value at UIPickerview bar -
i displaying array objects in pickerview.
my array contains {one,two,three,four,five}
when select value in picker view, getting value using
- (void)pickerview:(uipickerview *)thepickerview didselectrow:(nsinteger)row incomponent:(nsinteger)component {
if select two, exit picker view , next time display 1 in picker view bar.
but need display selected value.
i think understandable otherwise let me add comment.
- (void) viewdidappear:(bool)animated { [pickerview selectrow:selecteditem incomponent:0 animated:yes]; }
Comments
Post a Comment