![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
单例方法
walkerwqp
技术小牛 做事大牛
展开
-
Swift语言实现代理传值
需求:利用代理实现反响传值(以下例子采用点击第二个视图控制器中的按钮来改变第一个视图控制器中的Label的内容)一、创建RootViewControllerimport Foundationimport UIKitclass RootViewController:UIViewController,ChangeWordDelegate{ var qzLabel:UILabel?原创 2016-04-14 14:43:58 · 392 阅读 · 0 评论 -
swift (Singleton)模式
(Singleton)模式原创 2016-05-11 19:02:58 · 452 阅读 · 0 评论 -
iOS 时间选择器封装(含三种模式)
#import typedef enum : NSUInteger { DatePickerViewDateTimeMode,//年月日,时分 DatePickerViewDateMode,//年月日 DatePickerViewTimeMode//时分} DatePickerViewMode;@protoc原创 2017-12-22 17:24:51 · 2468 阅读 · 0 评论