IOS versions prior to 8 allowed me to create a UIActionsheet that displays a group of buttons, some space and a cancel button. Something like that:

However, in iOS 8, when I try to create the same look, I get something similar to this:

The code in iOS 8 is as follows:
UIAlertController *alertVC = [UIAlertController alertControllerWithTitle:nil message:nil preferredStyle:UIAlertControllerStyleActionSheet]; [alertVC.view setTintColor:[UIColor copperColor]]; UIAlertAction* notifyViaPush = [UIAlertAction actionWithTitle:@"Send Alert to my phone" style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) { [alertVC dismissViewControllerAnimated:YES completion:nil]; }]; UIAlertAction* notifyViaEmail = [UIAlertAction actionWithTitle:@"Notify me by email" style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) { [alertVC dismissViewControllerAnimated:YES completion:nil]; }]; UIAlertAction* cancel = [UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleCancel handler:^(UIAlertAction * action) { [alertVC dismissViewControllerAnimated:YES completion:nil]; }]; [alertVC addAction:notifyViaPush]; [alertVC addAction:notifyViaEmail]; [alertVC addAction:cancel]; [self presentViewController:alertVC animated:YES completion:nil];
How can I group my buttons and have a space between actions and the cancel button using UIAlertController?
source share