一.RunLoop: Runloop是事件接收和分发机制的一个实现。 Runloop提供了一种异步执行代码的机制,不能并行执行任务。 在主队列中,Main RunLoop直接配合任务的执行,负责处理UI事件、定时器以及其他内核相关事件。 (1).RunLoop的主要目的: 保证程序执行的线程不会被系 Read More
posted @ 2016-08-26 14:45 浪漫紫薇星 Views(1186) Comments(0) Diggs(0)
UICollectionView是一种类似于UITableView但又比UITableView功能更强大、更灵活的视图,这是源于它将UICollectionView对cell的布局交给了UICollectionViewLayout,而且允许用户自定义layout来进行布局。 下面是UICollect Read More
posted @ 2016-02-12 22:01 浪漫紫薇星 Views(249) Comments(0) Diggs(0)
创建一个测试的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)