会员
周边
新闻
博问
闪存
众包
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
浪漫紫微星
CnBlogs
Home
New Post
Contact
Admin
Subscription
2016年8月26日
Runtime和Runloop的区别
一.RunLoop: Runloop是事件接收和分发机制的一个实现。 Runloop提供了一种异步执行代码的机制,不能并行执行任务。 在主队列中,Main RunLoop直接配合任务的执行,负责处理UI事件、定时器以及其他内核相关事件。 (1).RunLoop的主要目的: 保证程序执行的线程不会被系
Read More
posted @ 2016-08-26 14:45 浪漫紫薇星
Views(1186)
Comments(0)
Diggs(0)
2016年2月12日
UICollectionView介绍使用
UICollectionView是一种类似于UITableView但又比UITableView功能更强大、更灵活的视图,这是源于它将UICollectionView对cell的布局交给了UICollectionViewLayout,而且允许用户自定义layout来进行布局。 下面是UICollect
Read More
posted @ 2016-02-12 22:01 浪漫紫薇星
Views(249)
Comments(0)
Diggs(0)
2016年1月24日
用KVO监听控件属性的改变(observeValueForKeyPath)
创建一个测试的UIButton#import "ViewController.h"@interface ViewController ()@property(nonatomic, strong)UIButton *button;@end@implementation ViewController- ...
Read More
posted @ 2016-01-24 22:41 浪漫紫薇星
Views(769)
Comments(0)
Diggs(0)
公告