Jac*_*cko 2 iphone objective-c nsurlconnection nsdata nsarray
我使用NSURLConnection从URL下拉一个plist,它返回一个NSData对象.我想将其转换为NSArray.谁能帮我?
我正在重构一个当前对URL执行同步请求的方法,使用arrayWithContentsOfURL:来获取NSArray.
谢谢!!
使用+[NSPropertyListSerialization dataWithPropertyList:format:options:error:]到的数据进行转换,然后检查结果-isKindOfClass:[NSArray class].