Zaktualizowałem Xcode 6.3 i ios8.3 sprawdź mój kod. to daje mi dziwny wynik.Klawiatura pojawi się automatycznie w ios 8.3 podczas wyświetlania alertview lub alertcontroller
to pierwszy ekran mojej aplikacji demonstracyjnej. tutaj jest jedno pole tekstowe. kiedy wpisuję coś w klawiaturze tekstowej otwartej.
po wpisaniu zakończone. Kliknąłem przycisk Pokaż alert. Wyświetliłem alarm, a wynik będzie następujący.
Po kliknięciu w przycisk Anuluj. Mam wyświetlone inne ostrzeżenie, potem dziwna klawiatura wyniku nie powinna się otwierać, ale kiedy kliknę przycisk anulowania. wyświetl inny alert, a klawiatura pojawi się automatycznie.
tutaj jest obok wyjście z ekranu
Poniżej przedstawiono kod
- (IBAction)MethodShowAlert:(id)sender
{
[tmptxtField resignFirstResponder];
UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"Check Alert textField" message:@"keyboard should not be open" delegate:self cancelButtonTitle:@"cancel" otherButtonTitles:nil];
[alert show];
}
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex
{
[self showCustomAlertWithTitle:nil];
}
-(void)showCustomAlertWithTitle:(NSString *)title{
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Now Check" message:nil delegate:nil cancelButtonTitle:nil otherButtonTitles:nil, nil];
[alertView show]
}
nie działa dla mnie, iOS 10 :( – ArtStyle