매우 간단한 방법이 있습니다. 그러나 UIAlertView가 실행되지 않습니다 방법에 .... 여기 내 방법 :메서드 실행 안함 - iOS
-(void)post_result {
NSLog(@"Post Result");
post_now.enabled = YES;
[active stopAnimating];
[[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:NO];
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Success" message:@"You're post has been successfully uploaded." delegate:self cancelButtonTitle:@"Dismiss" otherButtonTitles:nil];
[alertView show];
success_post_facebook = 0;
success_post_youtube = 0;
success_post_googleplus = 0;
success_post_tumblr = 0;
success_post_twitter = 0;
NSLog(@"Post Result END");
}
이상한 것은입니다 코드 이전과 UIAlertView이 방법에서 실행 한 후 .... 그래서 접지 틀린거야 ??
감사합니다.
디버거의 내용은 무엇입니까? 이 "post_result"를 별도의 스레드에서 호출 하시겠습니까? 좋은 대답을 얻으 려한다면 더 많은 코드를 게시 할 것입니다. –
그것이 실행되지 않는다는 것을 의미합니까 - 표시되지 않습니까? – thegrinner
주 스레드에 경고가 표시되는지 확인하십시오. – rmaddy