02 2016 档案

摘要:#iOS开发 #OC 阅读全文
posted @ 2016-02-25 21:33 aRenOuBa 阅读(300) 评论(0) 推荐(0)
摘要:1.创建继承自UICollectionViewCell的l类ImageCell,将imageView和label声明成属性,然后重写- initWithFrame:方法,初始化内部控件 - (id)initWithFrame:(CGRect)frame { self = [super initWit 阅读全文
posted @ 2016-02-25 17:44 aRenOuBa 阅读(320) 评论(0) 推荐(0)
摘要:#iOS #OC 阅读全文
posted @ 2016-02-25 15:52 aRenOuBa 阅读(293) 评论(0) 推荐(0)
摘要:1.UISegmentControl 1)先创建一个数组用来存放标题 NSArray *array = @[@"1",@"2",@"3",nil]; UISegmentedControl *segmented = [[UISegmentedControl alloc] initWithItems:a 阅读全文
posted @ 2016-02-05 21:18 aRenOuBa 阅读(266) 评论(0) 推荐(0)
摘要:1.//当手指在屏幕上滑动时 - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{ UITouch *touch = [touches anyObject]; CGPoint previousPoint = [touch 阅读全文
posted @ 2016-02-05 20:38 aRenOuBa 阅读(581) 评论(0) 推荐(0)
摘要:1.首先在自定义的视图中重写layoutSubviews方法 - (void)layoutSubviews{ UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation ;// 阅读全文
posted @ 2016-02-05 16:29 aRenOuBa 阅读(418) 评论(0) 推荐(0)