iOSアプリケーションをURLから開きたいのですが、NSURLを資金アプリケーションに入れたときにprint()が動作しません。Appendlegate print()が動作しません
そのが呼び出さ得ていないので、
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
var openUrl:NSURL? //This is used when to save state when App is not running before the url trigered
func application(_ application: UIApplication, openURL url: NSURL, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
//print("Host: \(url.host!)")
//let url = url.standardized
//NotificationCenter.default.post(name: NSNotification.Name(rawValue: "HANDLEOPENURL"), object:url!)
print("bbb")
return true
}
}
を使用し、iOS版にウェブからのリンクに対応するために? –
あなたは何を意味していますか? "application print()は動作しません。"あなたは何を見たいですか?あなたは実際に何を見ていますか? –
@AshleyMillsのコメントに加えて、警告/問題はありますか?このエラーを再現できません –