...UIAlertView - 인터넷에 연결되어 있지 않음을 다시 약간의 도움이 필요하십니까
나는 현재 1 플리커 (Flickr)와 다른 트위터를 통해 사진 갤러리입니다, 인터넷 연결이 필요 내 응용 프로그램의 두 부분이있어 피드, 이것이 UIAlertView에 대한 올바른 코드인지 궁금 해서요 ... 버튼에서 작동하도록 할 수 있지만 그게 전부입니다!
{
-(void)didTap_roundedRectButton1:(id)sender forEvent:(UIEvent *)event {
UIAlertView *alertView = [[UIAlertView alloc] init];
alertView.title = @"You are not connected to the Internet!";
alertView.message = @"Please check your connection and try again...";
[alertView addButtonWithTitle:@"Ok"];
[alertView show];
[alertView release];
}
비행기 모드에있는 것과 같이 기기가 연결되지 않은 상태에서 앱이 네트워크 리소스에 액세스하려고하면 iOS에서 알림을 게시합니다. 이 경우 사용자에게 추가로 경고하지 않아도됩니다. – Patrick