自分のURLスキームをアプリに追加することに成功しました。アプリはスキームを使用して正しく起動します。
着信データを処理したいのですが、デリゲートが呼び出されません。これはユニバーサルアプリであり、両方のAppDelegatesに次の関数を追加しました。
- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url {
if (!url) { return NO; }
NSString *URLString = [url absoluteString];
UIAlertView *alert = [[UIAlertView alloc]
initWithTitle:NSLocalizedString(@"test message", nil)
message:URLString
delegate:self
cancelButtonTitle:nil otherButtonTitles:@"OK", nil];
[alert show];
[alert release];
return YES;
}
私は次のようなスキーマでテストしています:myapp://appalarm.com…そしてURLStringでappalarm.comになることを期待します
何が問題なのですか?
ご回答ありがとうございます!