我有一个UIPickerView
显示项目的数组。当我选择一个项目时,它可以传递给我所有的视图控制器。现在我的问题是移动到不同的view controllers
并返回到UIPIckerView
它显示第一个数组项目,而不是我选择的项目。我如何查看选定的项目?显示UIPickerview选定的值
//in viewDidLoad()
itemsArray = [[NSArray alloc] initWithObjects:@"5", @"10", @"20", @"30", @"50",@"100", nil];
// if i select 20 and moved to other pages of my controllers and
// return to the UIPickerView i can see the 5 as selected not the 20
有什么建议吗?
显示,如何在视图控制器之间传递数据。 – Kepler