下载一个demo学习发现这个错误
Property 'children' with type '[BottomTabChildren]' cannot override a property with type '[UIViewController]'.
代码如下:
var children = [BottomTabChildren]()
struct BottomTabChildren: HandyJSON {
var schema_href: String = "" // sslocal://webview?url=http%3A%2F%2Fwww.guanfumuseum.org.cn%2F
var type: String = "" // href
var name: String = ""
var value: String = "" // http://www.guanfumuseum.org.cn/
}
看了当前类发现在父类中有了一个属性children,所以就报错了!
解决方法:
var bChildren = [BottomTabChildren]()
然后再改对应的地方即可!
END.