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
// Show actionsheet | |
NSString *actionSheetTitle = @"Add Photo"; //Action Sheet Title | |
NSString *other1 = @"Take Photo"; | |
NSString *other2 = @"Choose from Gallery"; | |
NSString *cancelTitle = @"Cancel"; | |
UIActionSheet *actionSheet = [[UIActionSheet alloc] | |
initWithTitle:actionSheetTitle | |
delegate:self | |
cancelButtonTitle:cancelTitle |
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
#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]; | |
} |
OlderNewer