Created
March 21, 2012 10:55
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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