views:

14

answers:

1

If I have a basic array such as:

NSArray *array = [[NSArray alloc]initWithObjects:@"Object1",@"Object2",@"Object3",nil];
self.pickerData = array;
[array release];

The picker will be on "Object1" when the view is loaded. How can I have the picker start off settled on "Object2"?

A: 

try [picker selectRow:1 inComponent:0 animated:YES];

Simon
if this was the right solution for you, please mark this as correct answer.
Simon