Iphone Nsstring
iPhone ==> UIPickerView ==> Allocate and load Date????
I am trying to create a uipickerView on runtime, and add it to my viewcontroller, and setup the picker data from an array.
Am i missing something here?
//self @interface ToolBar : UIViewController
UIPickerView *pv = [[UIPickerView alloc] initWithFrame:myFrame];
pv.delegate = self;
pv.dataSource = self;
[self.view addSubview:pv];
[pv reloadAllComponents];
The below methods are not being called
- (NSInteger)pickerView:(UIPickerView *)thePickerView numberOfRowsInComponent:(NSInteger)component {
return 5;
}
- (NSString *)pickerView:(UIPickerView *)thePickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component {
return @”some data”;
}
Thank in advance
@urumate
You may go and fuck yourself
Sounds like the coding is bad. Check for a while loop.
iPhone Programming – Making a Google Search bar

|
|
Objective-C Editor $8.99 17+~~tsuyoshi hyuga~~tsuyoshi hyuga~~http://itunes.apple.com/app/objective-c-editor/id395554454?uo=5~~2010 Tsuyoshi Hyuga~~1.12~~3999242~~929759~~http://coe.sakura.ne.jp/~~http://coe.sakura.ne.jp/ |
|
|
V?deo Curso Objective C $84.99 4+~~Videocursos.es~~Enric Bala~~http://itunes.apple.com/app/video-curso-objective-c/id494705872?uo=5~~Videocursos.es~~1.0~~5870776~~584637~~http://www.videocursos.es~~http://www.videocursos.es/objcmac.aspx |
