0
iPhone SDK에서 대기 애니메이션을 쉽게 표시 할 수 있나요? 로드하는 데 몇 초가 걸리는 화면이 있으며 사용자에게 어떤 일이 일어나고 있다는 의견을 전하고 싶습니다. 어떤 제안?iPhone 앱에서 대기 커서
iPhone SDK에서 대기 애니메이션을 쉽게 표시 할 수 있나요? 로드하는 데 몇 초가 걸리는 화면이 있으며 사용자에게 어떤 일이 일어나고 있다는 의견을 전하고 싶습니다. 어떤 제안?iPhone 앱에서 대기 커서
[[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:YES];
또는
[[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:NO];
은 트릭을 할 것입니다!
편집 : 당신은 물론 당신의 클래스에 정의 된 UIAlertView *megaAlert;
을 필요
-(void)invokeMegaAnnoyingPopup
{
self.megaAlert = [[[UIAlertView alloc] initWithTitle:@"Please wait..."
message:nil delegate:self cancelButtonTitle:nil
otherButtonTitles: nil] autorelease];
[self.megaAlert show];
UIActivityIndicatorView *indicator = [[UIActivityIndicatorView alloc]
initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
indicator.center = CGPointMake(self.megaAlert.bounds.size.width/2,
self.megaAlert.bounds.size.height - 45);
[indicator startAnimating];
[self.megaAlert addSubview:indicator];
[indicator release];
}
-(void)dismissMegaAnnoyingPopup
{
[self.megaAlert dismissWithClickedButtonIndex:0 animated:YES];
self.megaAlert = nil;
}
: 이전 프로젝트에서이 하나 발견는, 클라이언트가 더 나은 가시성 지표를 요청했다.