यहाँ देखने मैं एक pickerview programaticlyइस पिकर एक डेटा स्रोत
- (void)viewDidLoad {
[super viewDidLoad];
CGRect pickerFrame = CGRectMake(0,280,321,200);
UIPickerView *myPickerView = [[UIPickerView alloc] init]; //Not sure if this is the proper allocation/initialization procedure
//Set up the picker view as you need it
//Set up the display frame
myPickerView.frame = pickerFrame; //I recommend using IB just to get the proper width/height dimensions
//Add the picker to the view
[self.view addSubview:myPickerView];
}
द्वारा जोड़ा जा रहा लेकिन अब मैं वास्तव में यह सामग्री प्रदर्शित की है और किसी भी तरह बदले, तो उसे और क्या मूल्य इसे करने के लिए बदल गया है पता लगाने के लिए की जरूरत है देने के लिए कैसे। मैं यह कैसे करु?
उपयोग करने के लिए प्रतिनिधि में एक नजर है UIPickerView डेटासोर्स और प्रतिनिधियों के लिए xcode दस्तावेज़। – MCannon