다음보기 컨트롤러가 "데이터로드 중"이라는 것을 사용자에게 경고해야하는 상황이 있습니다. 경고보기를 삽입했지만 작동하지 않습니다.
은 내가 FirstViewController 버튼 액션이 추가 : 그것은 작동하지 않습니다- (IBAction)showCurl:(id)sender {
UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"Please Wait" message:@"Acquiring data from server" delegate:self cancelButtonTitle:@"OK!" otherButtonTitles:nil];
[alert show];
SecondViewController *sampleView = [[SecondViewController alloc] init];
[sampleView setModalTransitionStyle:UIModalTransitionStylePartialCurl];
[self presentModalViewController:sampleView animated:YES];
}
. SecondViewController에로드되고 SecondViewController가로드 된 후에 만 팝업됩니다.
그래서 SecondViewController 자체에서 시도했습니다. SecondViewController는 원격 서버에서 데이터를 추출하여 인터넷 연결에 따라 다운로드하는 데 시간이 걸릴 수 있습니다. 그래서 함수에 UIAlertView를 추가하기로 결정했습니다.
이 방법도 효과가 없습니다. 그리고 두 번째 경고가 인터넷에 연결되어 있지 않음을 사용자에게 알려주기 위해 인터넷 연결을 해제하려고 시도했습니다. 두 번째 경고가 작동하지 않습니다.
왜 'UIActivityIndicatorView'를 사용하지 않으시겠습니까? 사용자 친화적입니다. – sooper
어떻게 안내 할 수 있습니까? –