Skip to content

Instantly share code, notes, and snippets.

@dutran90
Created August 28, 2015 11:52
Show Gist options
  • Save dutran90/331c6211ba45515e0e54 to your computer and use it in GitHub Desktop.
Save dutran90/331c6211ba45515e0e54 to your computer and use it in GitHub Desktop.
UIImagePickerView
#pragma mark - UIPickerView Datasource
- (int)numberOfComponentsInPickerView:(UIPickerView *)pickerView{
return 1;
}
- (int)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component{
return _clubNameArray.count;
}
- (NSString*)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component{
return _clubNameArray[row];
}
#pragma mark - UIPickerView Delegate
- (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component{
_clubNamePickerView.hidden = YES;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment