
动画
canlanyangg
这个作者很懒,什么都没留下…
展开
-
图片拼接
interface ViewController ()@property (nonatomic, weak) IBOutlet UIView *coneView;@property (nonatomic, weak) IBOutlet UIView *shipView;@property (nonatomic, weak) IBOutlet UIView *iglooView;@prope原创 2016-11-23 18:13:42 · 390 阅读 · 0 评论 -
shouldRasterize
@interface ViewController ()@property (nonatomic, weak) IBOutlet UIView *containerView;@end@implementation ViewController- (UIButton *)customButton{ //create button CGRect frame = CGRectMak原创 2016-11-24 14:26:04 · 496 阅读 · 0 评论 -
CAShapeLayer 自定义圆角
//create shape layer CAShapeLayer *shapeLayer = [CAShapeLayer layer]; shapeLayer.strokeColor = [UIColor redColor].CGColor; shapeLayer.fillColor = [UIColor clearColor].CGColor; shap原创 2016-11-24 16:06:42 · 1304 阅读 · 0 评论 -
CAGradientLayer 处理颜色渐变
CAGradientLayer *gradientLayer = [CAGradientLayer layer]; gradientLayer.frame = view.bounds; [self.view.layer addSublayer:gradientLayer]; gradientLayer.colors = @[(__bridge id)[UI原创 2016-11-25 13:52:17 · 382 阅读 · 0 评论 -
CAReplicatorLayer ReflectionView
#import "ReflectionView.h"#import @implementation ReflectionView+ (Class)layerClass{ return [CAReplicatorLayer class];}- (void)setUp{ //configure replicator CAReplicatorLayer *la原创 2016-11-25 14:11:02 · 261 阅读 · 0 评论 -
CAEmitterLayer
在iOS 5中,苹果引入了一个新的CALayer子类叫做CAEmitterLayer。CAEmitterLayer是一个高性能的粒子引擎,被用来创建实时例子动画如:烟雾,火,雨等等这些效果。CAEmitterLayer看上去像是许多CAEmitterCell的容器,这些CAEmitierCell定义了一个例子效果。你将会为不同的例子效果定义一个或多个CAEmitterCell作为模版,同时CA原创 2016-11-25 14:29:43 · 282 阅读 · 0 评论 -
AVPlayerLayer
#import "ViewController.h"#import #import @interface ViewController ()@property (nonatomic, weak) IBOutlet UIView *containerView; @end@implementation ViewController- (void)viewDidLoad{原创 2016-11-25 14:31:41 · 2455 阅读 · 0 评论