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