“條件中的變量綁定需要初始化程序”Swift 2.0中的錯誤(“ in a an ” Error in Swift 2.0)
您好,Stackoverflow社區,
我正在尋找Swift 2.0的一些幫助。 我最近升級了我的Xcode for iOS9,在構建我的應用程序時,它失敗并出現以下錯誤。
“條件中的變量綁定需要初始化程序” - 這是參考以下代碼段:
private func isRedirectToApp(url: NSURL) -> Bool { if let NSURL(string: self.oauthState.redirectUri)?.scheme, redirectScheme = url.scheme { return NSURL == redirectScheme } return false }
有人可以幫我解決這個問題或指導我一些資源嗎? 我一直在尋求Apple 的幫助,但無濟于事。
Hi ,
I am for some help with Swift 2.0 . I have my Xcode for iOS9 and when my app, it fails with the error.
" in a an " - This is in to the :
private func isRedirectToApp(url: NSURL) -> Bool { if let NSURL(string: self.oauthState.redirectUri)?.scheme, redirectScheme = url.scheme { return NSURL == redirectScheme } return false }
Could help me this issue maybe or guide me to some ? I have for help from Apple but to no avail.
原文: