簡體   English   中英

當我嘗試在設備中啟動我的應用程序時,在xcode中由於啟動選項nil出現錯誤?

[英]when I am trying to launch my app in my device and I am getting the error as launch option nil in my xcode?

我在以下方法中對launchOptions表示零。

  func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
   return true     
   }

應用程序崩潰了,我現在該怎么辦? 如果有人知道幫我!

我已附上控制台的屏幕截圖。

控制台的屏幕截圖

請使用以下方法:

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
        // Override point for customization after application launch.
        return true
    }

launchoptions具有UIApplicationLaunchOptionsKey,它表示您的應用程序通過諸如openURL,notification等操作啟動時的值。

請查看鏈接http://nshipster.com/launch-options/了解更多信息。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM