首页 > 代码库 > iOS模拟器URLWithString The operation couldn't be completed. (Cocoa error 256.)

iOS模拟器URLWithString The operation couldn't be completed. (Cocoa error 256.)

我遇到这个问题是在iPad Air的模拟器上使用NSURL的URLWithString方法从Flickr获取数据时,解决的方法是换一个模拟器,我换成iPad 2。就没有问题了。

iOS模拟器URLWithString The operation couldn't be completed. (Cocoa error 256.)