VIPER_vip_Counter
2017-10-24 10:21:34 3 举报
iOS counter的demo为原型,体现VIPER中vip架构模式
作者其他创作
大纲/内容
ICNTInteractorOutput
+ updateCount(count)
ICNTCountView
+ setCountText(countText)+ setDecrementEnabled:(enabled)
实现
CNTCountInteractor
+ output:- count:int
- requestCount()- increment()- decrement()- sendCount()
CNTCountViewController
- countLabel:UILabel- decrementButton:UIButton- incrementButton:UIButton+ presenter:CNTCountPresenter
- setCountText()- setDecrementEnabled()- incrementClick()- decrementClick()
依赖
CNTCountPresenter
+ view:+ interactor:
- updateView()- increment()- decrement()- updateCount(count)
ICNTInteractorInput
+ requestCount()+ increment()+ decrement()
0 条评论
下一页