NSURL *url = [NSURL URLWithString:@"valid_webcal_url"];
if (![[UIApplication sharedApplication] openURL:url])
{
// failure callback
NSLog(@"%@%@",@"Failed to open url:",[url description]);
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:LCHLocalizedString(@"SUBSCRIBE_ERROR", nil) message:nil delegate:self cancelButtonTitle:@"Okay" otherButtonTitles: nil];
[alert show];
}
それで、webcalのロード中にエラーが発生したかどうかを確認する方法を理解しましたが、webcalが正常にロードされたことをどのように知ることができますか?「サブスクライブ」ボタンをタップするとローダーが表示され、いつオフにするかを知る必要があります。