ho una parte di codice che funziona come previsto su tutte le versioni di iOS, ma non su iOS 9:strano (bug?) Con Xcode 7/iOS 9 B5 con dataWithContentsOfURL
NSData *response = [NSData dataWithContentsOfURL: [NSURL URLWithString: url] options:NSDataReadingUncached error:&error];
E 'un testo semplice JSON .
ho ottenuto questo errore:
Error Domain=NSCocoaErrorDomain Code=256 "The file “xxx.php” couldn’t be opened." UserInfo={NSURL= http://xxx.xxx.com/xxx/xxx.php?lang=fr }
Come questo URL può essere interpretate come un file? Risposta = nil ...
Grazie.
Invia domanda su forum Apple. –
Chiedo di essere sicuro che non sarei manca qualcosa (per esempio: https obbligatorio dal iOS 9) – skrew