UIPickerView issues - iphone

Posted by Rob J on Stack Overflow See other posts from Stack Overflow or by Rob J
Published on 2010-06-09T16:28:36Z Indexed on 2010/06/09 16:32 UTC
Read the original article Hit count: 317

Filed under:
|

I have the following:

- (NSInteger) numberOfComponentsInPickerView:(UIPickerView *)pickerView {
      return 2;
}

- (NSInteger) pickerView:(UIPickerView *) pickerView numberOfRowsInComponent:(NSInteger) component {
      return [genderPickerData count];
      return [agePickerData count];
}

When I do this, the UIPicker is split into 2 components, but the PickerData is only being represented for gender on both pickers. I am trying to figure out through Apple's confusing documentation on how I reference each individual component but can't seem to figure it out.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c