Bu hatayı alıyorum: her iki düğmeyi aynı anda UIAlertView
üzerinde tıklatırsam UIAlertView
temsilci çağrılmayacak ve tüm ekran donuyor (uyarı görünmüyor olsa bile hiçbir şey devre dışı bırakılamaz).UIAlertView uygulamasında 2 düğmeyi aynı anda dokunma uygulaması
Bu hatayı daha önce gören oldu mu? UIAlertView
'u tek bir tuşa dokunmanın bir yolu var mı?
- (IBAction)logoutAction:(id)sender {
self.logoutAlertView = [[UIAlertView alloc] initWithTitle:@"Logout"
message:@"Are you sure you want to logout?"
delegate:self
cancelButtonTitle:@"No"
otherButtonTitles:@"Yes", nil];
[self.logoutAlertView show];
}
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex
{
if ([alertView isEqual:self.logoutAlertView]) {
if (buttonIndex == 0) {
NSLog(@"cancelled logout");
} else {
NSLog(@"user will logout");
[self performLogout];
}
self.logoutAlertView.delegate = nil;
}
}
Ne versiyonu? – trojanfoe
iOs 8.1, en son XCode – user1028028
kullanarak tam sürüm ve uyarı görüntüleme delegesinin düzgün bir şekilde korunuyor mu? – trojanfoe