phoneid / phoneid_iOS

phone.id iOS SDK
Apache License 2.0
3 stars 0 forks source link

After update Xcode to version Version 7.3 (7D175) "Ambguod use of subscript" #6

Closed chiarotto closed 8 years ago

chiarotto commented 8 years ago

After updating Xcode I get the following error during compilation: "Ambiguos use of subscript". I fix the issue modifying the code:

func prefferedLocale() -> NSLocale {
        let langs:[String] = NSLocale.preferredLanguages()
        let identifier: String = langs[0] as! String
        let locale = NSLocale(localeIdentifier: identifier)
        return locale
    }
fedepo commented 8 years ago

fixed, thanks!