정지 : 내가 UIAlertView
UIAlertView
위임에 두 버튼을 동시에 눌러 경우가 호출되지 않습니다, 전체 화면 정지 (아무것도 경고보기를 해제 할 경우에도, tappable 없다).내가이 버그가 응용 프로그램
이전에이 버그를 본 사람이 있습니까? 단 하나의 버튼으로 도청 UIAlertView
을 제한하는 방법이 있습니까?
- (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;
}
}
버전은 무엇? – trojanfoe
iOS 8.1은 최신 XCode – user1028028
을 사용하는 완전한 버전입니다. 그리고 alertview 대리인이 올바르게 보존 되었습니까? – trojanfoe