- 博客(4)
- 收藏
- 关注
原创 用CAEmitterLayer实现粒子动画飘雪花效果
// Configure the particle emitter to the top edge of the screen CAEmitterLayer *snowEmitter = [CAEmitterLayer layer]; snowEmitter.emitterPosition = CGPointMake(self.view.bounds.size.width /
2015-03-24 23:02:37
322
原创 圆形button和image view
UIButton *button = [[UIButton alloc]initWithFrame:CGRectMake(x, y, 50, 50)]; button.layer.masksToBounds = YES; //圆角,cornerRadius的值就是正方形的内切圆半径 button.layer.cornerR
2015-03-24 23:00:04
241
原创 自定义UIView实现在屏幕上画画并记录路径
#import "paint.h" @implementation paint - (void)awakeFromNib { 这个方法只会执行一次 self.path = [[UIBezierPath alloc] init]; self.path.lineJoinStyle = kCGLineJoinRound; self.path.li
2015-03-24 22:53:11
235
原创 scrollview+pagecontrol实现滑动界面
//初始化scrollview _scrollView = [[UIScrollView alloc]initWithFrame:(self.view.frame)]; self.scrollView.delegate = self; [self.view addSubview:_scrollView]; NSMutabl
2015-03-24 14:17:22
259
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人