UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"Alert"
message:@""
preferredStyle:UIAlertControllerStyleActionSheet];
UIAlertAction *firstAction = [UIAlertAction actionWithTitle:@"Select Image From Gallery"
style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) {
}];
UIAlertAction *secondAction = [UIAlertAction actionWithTitle:@"Capture Image"
style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) {
}];
UIAlertAction *thirdAction = [UIAlertAction actionWithTitle:@"Cancel"
style:UIAlertActionStyleCancel handler:^(UIAlertAction * action) {
}];
[alert addAction:firstAction];
[alert addAction:secondAction];
[alert addAction:thirdAction];
[self presentViewController:alert animated:YES completion:nil];
message:@""
preferredStyle:UIAlertControllerStyleActionSheet];
UIAlertAction *firstAction = [UIAlertAction actionWithTitle:@"Select Image From Gallery"
style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) {
}];
UIAlertAction *secondAction = [UIAlertAction actionWithTitle:@"Capture Image"
style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) {
}];
UIAlertAction *thirdAction = [UIAlertAction actionWithTitle:@"Cancel"
style:UIAlertActionStyleCancel handler:^(UIAlertAction * action) {
}];
[alert addAction:firstAction];
[alert addAction:secondAction];
[alert addAction:thirdAction];
[self presentViewController:alert animated:YES completion:nil];
Sign up here with your email
ConversionConversion EmoticonEmoticon