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];
Alert pokazuje:
iOS 8.1 iPod touch: [OK] [anuluj]
iOS 8.3 iPhone 6 Plus: [anuluj] [OK]UIAlertController niespójne stanowisko przycisków
Dlaczego pozycja przycisków różni się od iPoda i iPhone'a?
Więc twoje pytanie brzmi: "Dlaczego położenie przycisków różni się od iPoda i iPhone'a?" –
Przycisk Anuluj jest zazwyczaj umieszczany w lewo na Macu i iOS Wygląda jak błąd – kelin
To jest dziwne –