Af Canada
Af Canada

Reputation: 1

Set selected row for a given value in UIPickerView iPhone

In my app, I ask a worker to choose a letter from the alphabet (for example A) and the alphabet will have some explications that will appear in a UIPickerView with 3 # rows.

I want my UIPickerView to be display contents based on the indicator that has been chosen by a worker.

How do I do this?

Upvotes: 0

Views: 1040

Answers (1)

Srinivas
Srinivas

Reputation: 983

selection. in this case, it means showing the appropriate row in the middle

- (void)selectRow:(NSInteger)row inComponent:(NSInteger)component animated:(BOOL)animated;  

scrolls the specified row to center.

please provide some code so That I can Get What exact issue is

Upvotes: 1

Related Questions