Skip to content

Instantly share code, notes, and snippets.

Created March 21, 2012 10:55
Show Gist options
  • Save anonymous/2146166 to your computer and use it in GitHub Desktop.
Save anonymous/2146166 to your computer and use it in GitHub Desktop.
look at these codes in colors array there are imageView but when ever pickerCountry call hich have string array it will call uiview delegate method of pickerview.
@Terminator @vijaysinghadhikari : - (NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component
{
if (pickerView == pickerCountry)
{
return [arrCountry objectAtIndex:row];
}
else
return [arrAge objectAtIndex:row];
}
- (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view
{
return [colorsArray objectAtIndex:row];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment