![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
swift+控件学习
文章平均质量分 71
ziyikongfu
这个作者很懒,什么都没留下…
展开
-
Swift_ uitableview使用自定义(xib)cell
新建cell: 使用: 向 tableview 注册 nib 全局变量 let cellIdentifier = "myCell" myTableView!.registerNib(UINib(nibName: "MyCell", bundle:nil), forCellReuseIdentifier: cellIdentifier) 然后原创 2016-05-24 10:33:52 · 1496 阅读 · 0 评论 -
Notification简单观察者模式例子
通知使用起来非常的简单: 首先定义回调,即发生通知了我应该做啥事。 - (void)callBack{ NSLog(@"我收到通知了!"); } 其次,注册通知,即告诉通知中心,我对啥通知感兴趣 [[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(callBack转载 2014-03-26 15:05:20 · 481 阅读 · 0 评论