ieri ho aggiornato a El Capitan beta 2 e Xcode 7 - beta è obbligatorio. Così ho aggiornato la mia app a Swift 2 e il nuovo errore arriva alla stringa json. Questo è il mio codice:Swift 2 jSON La chiamata può lanciare ma non è contrassegnata con try
let jsonData:NSDictionary = NSJSONSerialization.JSONObjectWithData(urlData!, options:NSJSONReadingOptions.MutableContainers) as! NSDictionary
e questo è l'errore: Call can throw , but it is not marked with 'try' and the error is not handled
la ringrazio per la risposta, comunque questo non risolve il problema: \ – markutus
ho cambiato con let 'jsonData = provare NSJSONSerialization.JSONObjectWithData (URLData !, opzioni: NSJSONReadingOptions. MutableContainers) as! NSDictionary' e funziona – markutus
@markutus Ah si; scuse per l'errore. – Droppy