¡@

Home 

2014/10/15 ¤U¤È 10:11:09

iphone Programming Glossary: localpicker

UIPickerView: last value followed by first value

http://stackoverflow.com/questions/1291426/uipickerview-last-value-followed-by-first-value

its possible to really make it circular but you can fake it. #define kRowsInPicker 10000 void viewDidLoad NSArray localPickerData NSArray alloc initWithObjects @ Ottawa @ Toronto @ Montreal @ Winnipeg @ Saskatchewan @ Iqaluit @ Edomonton nil self.. initWithObjects @ Ottawa @ Toronto @ Montreal @ Winnipeg @ Saskatchewan @ Iqaluit @ Edomonton nil self setPickerData localPickerData localPickerData release UIPickerView localPicker UIPickerView alloc initWithFrame CGRectMake 0 0 320 216 localPicker.. @ Ottawa @ Toronto @ Montreal @ Winnipeg @ Saskatchewan @ Iqaluit @ Edomonton nil self setPickerData localPickerData localPickerData release UIPickerView localPicker UIPickerView alloc initWithFrame CGRectMake 0 0 320 216 localPicker setDelegate self..