码迷,mamicode.com
首页 > Web开发 > 详细

Cast from XCUIElement to unrelated type '[AnyObject]' always fails while fetching JSON

时间:2017-04-17 18:35:11      阅读:295      评论:0      收藏:0      [点我收藏+]

标签:object   repr   element   over   tran   obj   fetch   err   fetching   

 

before

if let careProviders = providerJSON["care_providers"] as? [AnyObject]

after

if let careProviders = providerJSON["care_providers" as NSString] as? [AnyObject]

 

 

参考:

http://stackoverflow.com/questions/32715160/xcode-7-strange-cast-error-that-refers-to-xcuielement

Cast from XCUIElement to unrelated type '[AnyObject]' always fails while fetching JSON

标签:object   repr   element   over   tran   obj   fetch   err   fetching   

原文地址:http://www.cnblogs.com/qiutangfengmian/p/6724204.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!