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];
L'avviso indica:
iOS 8.1 iPod touch: [OK] [annullare]
iOS 8.3 iPhone 6 Plus: [annullare] [OK]UIAlertController posizione incoerente di pulsanti
Perché la posizione dei pulsanti è diversa da un iPod e un iPhone?
Quindi la tua domanda è "Perché la posizione dei pulsanti è diversa da un iPod e un iPhone"? –
Il pulsante Annulla di solito è posizionato a sinistra su Mac e iOS: sembra un bug – kelin
Sì, è strano –