現在開いているビューでURLスキームを取得するために、UIApplication Notificationsを処理しようとしています。いくつかの通知を試しましたが、どのオブジェクトにURLスキームが含まれているのかわかりません。UIApplication handleOpenURL通知の使用方法
NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];
//[nc addObserver:self selector:@selector(DocumentToDropboxDelegate) name:UIApplicationWillResignActiveNotification object:nil];
[nc addObserver:self selector:@selector(DocumentToDropboxDelegate) name:UIApplicationDidFinishLaunchingNotification object:nil];
誰かがこの問題を助けることができますか?
へのURLを渡すことができますありがとうm0rt1m3r、私はあなたが儀式のソリューション上にあることを知っているが、私はもう一つの問題があります。問題は、私は現在の開いているビューでURLが必要です。どのビューが現在開いているか確認できますか? –
ビューのウィンドウプロパティを確認してみてください。 – m0rt1m3r
Appleは 'application:handleOpenURL:'は非推奨で、 'application:openURL:sourceApplication:annotation:'を使用すると言っています。 – ToddB