码代码的李二狗

01 2018 档案
swiftlint 你所要知道的所有!!
摘要:swiftin Should the opening brace of a function or control flow statement be on a new line or not ?:) This and many other questions cross my mind when 阅读全文
posted @ 2018-01-19 20:34 timeToShow 阅读(3162) 评论(0) 推荐(0)
swiftlint swift代码规范检查神器
摘要:一大堆的你为什么要用swiftlint,你为什么要codereview,swiftlint到底在做什么,就不多说了,没意义,他就是帮助你写出规范漂亮代码的神器! 安装 官方提供了三种安装的方式 https://github.com/realm/SwiftLint/releases/tag/0.24. 阅读全文
posted @ 2018-01-19 20:30 timeToShow 阅读(1951) 评论(0) 推荐(0)
使用RxSwift 实现登录页面的条件绑定
摘要:我们在使用MVC建构进行开发时,对登录页面用户名密码等进行的处理一般是这样的,点击登录按钮判断用户框以及密码框输入的合法性,用一堆if真是屎一般!或者用textfield的代理来进行响应其实也是屎一般! 有了RxSwift,我们的响应式又多了一种可能! 以上代码很好理解,我们用到了shareRepl 阅读全文
posted @ 2018-01-04 11:57 timeToShow 阅读(546) 评论(0) 推荐(0)

thanks