where do you use the uipickerview value??
i suppose you have an action like this:
Code:
- (IBAction)buttonPressed {
NSInteger row = [myPicker selectedRowInComponent:0];
if (row==0){
NSString *selected = [myPicker objectAtIndex:row];
NSString *title = [[NSString alloc] initWithFormat:@"you selected: %@",selected];
UIAlertView *alert = [[UIAlertView alloc]
initWithTitle:title
message:@"FOO"
delegate:nil
cancelButtonTitle:@"OK"
otherButtonTitles:nil ];
[alert show];
//release
[alert release];
[title release];
}
}