UIAlertController *alertController = [UIAlertController alertControllerWithTitle:nil message:@"hello" preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *ok = [UIAlertAction actionWithTitle:@"Ok" style:UIAlertActionStyleDefault handler:hander]
UIAlertAction *cancel = [UIAlertAction actionWithTitle:@"cancel" style:UIAlertActionStyleCancel handler:hander]
[alertController addAction:ok];
[alertController addAction:cancel];
アラートの表示:
iOS 8.1 iPod touch: [OK] [キャンセル]
iOS 8.3 iPhone 6 Plus: [キャンセル] [OK]
iPodやiPhoneとボタンの位置が違うのはなぜですか?