2014年8月14日
摘要: 实现iOS漂亮的动画效果主要有两种方法, 一种是UIView层面的, 一种是使用CATransition进行更低层次的控制, 第一种是UIView,UIView方式可能在低层也是使用CATransition进行了封装,它只能用于一些简单的、常用的效果展现,这里写一个常用的示例代码,供大家参考。[UI... 阅读全文
posted @ 2014-08-14 17:02 airy99 阅读(135) 评论(0) 推荐(0) 编辑
摘要: _segment = [[UISegmentedControl alloc] initWithItems:@[@"aaaa", @"bbbb"]]; [_segment setFrame:CGRectMake(20, 300, 280, 30)]; [_segment setTintColor:... 阅读全文
posted @ 2014-08-14 17:00 airy99 阅读(249) 评论(0) 推荐(0) 编辑
摘要: CGFloat w = self.view.frame.size.width; UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 400, w, 0)]; [label setBackgroundColor:[UICol... 阅读全文
posted @ 2014-08-14 16:59 airy99 阅读(189) 评论(0) 推荐(0) 编辑