Swift 框架中修改协议名称导致编译错误如何解决?
在学习框架代码时,发现修改协议的名称导致编译错误,下面是测试过程1.使用xcode创建 swift (command line tool)项目,包含 A.swift, B.swift 文件2.编译出现错误:B.swift:20:37 Cannot convert value of type 'Data' to expected argument type 'DataResponseSerializer.SerializedObject'如图:3.如果修改协议 Json...
416 阅读
- (NSArray *)hooksAfterLoadView;
这么个函数,在主Controller 加载完毕后能自定义干点啥参考代码:
推荐一篇文章:
http://pizi.me/86
两个实现 Router 模式的库:
https://github.com/joeldev/JLRoutes
https://github.com/Huohua/HHRouter
一个运用 Router 思想的完整项目:
https://github.com/gaosboy/iOSSF