├── gif └── Animation.gif ├── CABasic ├── Assets.xcassets │ ├── Contents.json │ ├── sparkle.imageset │ │ ├── sparkle.png │ │ └── Contents.json │ ├── praise_select.imageset │ │ ├── praise_select@2x.png │ │ ├── praise_select@3x.png │ │ └── Contents.json │ ├── praise_default.imageset │ │ ├── praise_default@2x.png │ │ ├── praise_default@3x.png │ │ └── Contents.json │ └── AppIcon.appiconset │ │ └── Contents.json ├── EmitterBtn.h ├── ViewController.h ├── AppDelegate.h ├── main.m ├── Info.plist ├── Base.lproj │ ├── Main.storyboard │ └── LaunchScreen.storyboard ├── AppDelegate.m ├── ViewController.m └── EmitterBtn.m ├── README.md └── CABasic.xcodeproj ├── xcuserdata └── zhangwei.xcuserdatad │ ├── xcdebugger │ └── Breakpoints_v2.xcbkptlist │ └── xcschemes │ ├── xcschememanagement.plist │ └── CABasic.xcscheme ├── project.xcworkspace ├── contents.xcworkspacedata └── xcuserdata │ └── zhangwei.xcuserdatad │ └── UserInterfaceState.xcuserstate └── project.pbxproj /gif/Animation.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weizhangCoder/CABasic/HEAD/gif/Animation.gif -------------------------------------------------------------------------------- /CABasic/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CABasic 2 | 基础的点赞动画和音乐起伏只是器 3 | 4 | ![image](https://github.com/weizhangCoder/CABasic/blob/master/gif/Animation.gif) 5 | -------------------------------------------------------------------------------- /CABasic/Assets.xcassets/sparkle.imageset/sparkle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weizhangCoder/CABasic/HEAD/CABasic/Assets.xcassets/sparkle.imageset/sparkle.png -------------------------------------------------------------------------------- /CABasic/Assets.xcassets/praise_select.imageset/praise_select@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weizhangCoder/CABasic/HEAD/CABasic/Assets.xcassets/praise_select.imageset/praise_select@2x.png -------------------------------------------------------------------------------- /CABasic/Assets.xcassets/praise_select.imageset/praise_select@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weizhangCoder/CABasic/HEAD/CABasic/Assets.xcassets/praise_select.imageset/praise_select@3x.png -------------------------------------------------------------------------------- /CABasic.xcodeproj/xcuserdata/zhangwei.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /CABasic/Assets.xcassets/praise_default.imageset/praise_default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weizhangCoder/CABasic/HEAD/CABasic/Assets.xcassets/praise_default.imageset/praise_default@2x.png -------------------------------------------------------------------------------- /CABasic/Assets.xcassets/praise_default.imageset/praise_default@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weizhangCoder/CABasic/HEAD/CABasic/Assets.xcassets/praise_default.imageset/praise_default@3x.png -------------------------------------------------------------------------------- /CABasic.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /CABasic.xcodeproj/project.xcworkspace/xcuserdata/zhangwei.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weizhangCoder/CABasic/HEAD/CABasic.xcodeproj/project.xcworkspace/xcuserdata/zhangwei.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /CABasic/EmitterBtn.h: -------------------------------------------------------------------------------- 1 | // 2 | // EmitterBtn.h 3 | // CABasic 4 | // 5 | // Created by zhangwei on 17/4/28. 6 | // Copyright © 2017年 jyall. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface EmitterBtn : UIButton 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /CABasic/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // CABasic 4 | // 5 | // Created by zhangwei on 17/4/27. 6 | // Copyright © 2017年 jyall. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /CABasic/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // CABasic 4 | // 5 | // Created by zhangwei on 17/4/27. 6 | // Copyright © 2017年 jyall. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /CABasic/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // CABasic 4 | // 5 | // Created by zhangwei on 17/4/27. 6 | // Copyright © 2017年 jyall. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /CABasic/Assets.xcassets/sparkle.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "sparkle.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /CABasic/Assets.xcassets/praise_select.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "praise_select@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "praise_select@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /CABasic/Assets.xcassets/praise_default.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "praise_default@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "praise_default@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /CABasic.xcodeproj/xcuserdata/zhangwei.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | CABasic.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 72D6C8661EB1D20C00BE0A96 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /CABasic/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | } 43 | ], 44 | "info" : { 45 | "version" : 1, 46 | "author" : "xcode" 47 | } 48 | } -------------------------------------------------------------------------------- /CABasic/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /CABasic/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /CABasic/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /CABasic/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // CABasic 4 | // 5 | // Created by zhangwei on 17/4/27. 6 | // Copyright © 2017年 jyall. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 19 | // Override point for customization after application launch. 20 | return YES; 21 | } 22 | 23 | 24 | - (void)applicationWillResignActive:(UIApplication *)application { 25 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 26 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 27 | } 28 | 29 | 30 | - (void)applicationDidEnterBackground:(UIApplication *)application { 31 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 32 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 33 | } 34 | 35 | 36 | - (void)applicationWillEnterForeground:(UIApplication *)application { 37 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 38 | } 39 | 40 | 41 | - (void)applicationDidBecomeActive:(UIApplication *)application { 42 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 43 | } 44 | 45 | 46 | - (void)applicationWillTerminate:(UIApplication *)application { 47 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 48 | } 49 | 50 | 51 | @end 52 | -------------------------------------------------------------------------------- /CABasic/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // CABasic 4 | // 5 | // Created by zhangwei on 17/4/27. 6 | // Copyright © 2017年 jyall. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | 11 | #import "EmitterBtn.h" 12 | 13 | @interface ViewController () 14 | 15 | @property (nonatomic , strong) CABasicAnimation * anim; 16 | @property (nonatomic , strong) CAReplicatorLayer *musicLayer; 17 | @end 18 | 19 | @implementation ViewController 20 | 21 | - (void)viewDidLoad { 22 | [super viewDidLoad]; 23 | // Do any additional setup after loading the view, typically from a nib. 24 | // 25 | [self musicReplicatorLayer]; 26 | 27 | [self ThumbupLayer]; 28 | 29 | 30 | } 31 | - (void)musicReplicatorLayer 32 | { 33 | _musicLayer = [CAReplicatorLayer layer]; 34 | _musicLayer.frame = CGRectMake(0, 0, 60, 50); 35 | _musicLayer.position = self.view.center; 36 | //设置复制层里面包含的子层个数 37 | _musicLayer.instanceCount = 4; 38 | //设置下个子层相对于前一个的偏移量 39 | _musicLayer.instanceTransform = CATransform3DMakeTranslation(10, 0, 0); //每个layer的间距。 40 | //设置下一个层相对于前一个的延迟时间 41 | _musicLayer.instanceDelay = 0.2; 42 | _musicLayer.backgroundColor = [UIColor redColor].CGColor; 43 | _musicLayer.masksToBounds = YES; 44 | [self.view.layer addSublayer:_musicLayer]; 45 | 46 | CALayer *tLayer = [CALayer layer]; 47 | tLayer.frame = CGRectMake(10, 20, 5, 40); 48 | tLayer.backgroundColor = [UIColor whiteColor].CGColor; 49 | [_musicLayer addSublayer:tLayer]; 50 | 51 | CABasicAnimation *musicAnimation = [CABasicAnimation animationWithKeyPath:@"position.y"]; 52 | musicAnimation.duration = 0.35; 53 | musicAnimation.fromValue = @(tLayer.frame.size.height); 54 | // musicAnimation.toValue = @(tLayer.frame.size.height - 10); 55 | musicAnimation.byValue = @(20); 56 | musicAnimation.autoreverses = YES; 57 | musicAnimation.repeatCount = MAXFLOAT; 58 | 59 | [tLayer addAnimation:musicAnimation forKey:@"musicAnimation"]; 60 | } 61 | 62 | 63 | - (void)ThumbupLayer{ 64 | 65 | EmitterBtn *thumup = [EmitterBtn buttonWithType:UIButtonTypeCustom]; 66 | 67 | [self.view addSubview:thumup]; 68 | [thumup setImage:[UIImage imageNamed:@"praise_default"] forState:UIControlStateNormal]; 69 | [thumup setImage:[UIImage imageNamed:@"praise_select"] forState:UIControlStateSelected]; 70 | thumup.frame = CGRectMake(100, 100, 30, 30); 71 | [thumup addTarget:self action:@selector(Click:) forControlEvents:UIControlEventTouchUpInside]; 72 | 73 | 74 | } 75 | 76 | - (void)Click:(UIButton *)btn{ 77 | btn.selected = !btn.selected; 78 | 79 | } 80 | 81 | 82 | - (void)didReceiveMemoryWarning { 83 | [super didReceiveMemoryWarning]; 84 | // Dispose of any resources that can be recreated. 85 | } 86 | 87 | 88 | @end 89 | -------------------------------------------------------------------------------- /CABasic/EmitterBtn.m: -------------------------------------------------------------------------------- 1 | // 2 | // EmitterBtn.m 3 | // CABasic 4 | // 5 | // Created by zhangwei on 17/4/28. 6 | // Copyright © 2017年 jyall. All rights reserved. 7 | // 8 | 9 | #import "EmitterBtn.h" 10 | 11 | @interface EmitterBtn () 12 | @property (nonatomic , strong) CAEmitterLayer * explosionLayer; 13 | 14 | @end 15 | 16 | @implementation EmitterBtn 17 | 18 | - (instancetype)initWithFrame:(CGRect)frame{ 19 | if (self = [super initWithFrame:frame]) { 20 | [self setupExplosion]; 21 | } 22 | return self; 23 | } 24 | 25 | 26 | 27 | - (void)setupExplosion{ 28 | _explosionLayer = [CAEmitterLayer layer]; 29 | 30 | CAEmitterCell *explosionCell = [[CAEmitterCell alloc]init]; 31 | 32 | explosionCell.name = @"explosion"; 33 | // 设置粒子颜色alpha能改变的范围 34 | explosionCell.alphaRange = 0.10; 35 | // 粒子alpha的改变速度 36 | explosionCell.alphaSpeed = -1.0; 37 | // 粒子的生命周期 38 | explosionCell.lifetime = 0.7; 39 | // 粒子生命周期的范围; 40 | explosionCell.lifetimeRange = 0.3; 41 | 42 | // 粒子发射的初始速度 43 | explosionCell.birthRate = 2500; 44 | // 粒子的速度 45 | explosionCell.velocity = 40.00; 46 | // 粒子速度范围 47 | explosionCell.velocityRange = 10.00; 48 | 49 | // 粒子的缩放比例 50 | explosionCell.scale = 0.03; 51 | // 缩放比例范围 52 | explosionCell.scaleRange = 0.02; 53 | 54 | 55 | 56 | 57 | // 粒子要展现的图片 58 | explosionCell.contents = (id)([[UIImage imageNamed:@"sparkle"] CGImage]); 59 | 60 | _explosionLayer.name = @"explosionLayer"; 61 | 62 | // 发射源的形状 63 | _explosionLayer.emitterShape = kCAEmitterLayerCircle; 64 | // 发射模式 65 | _explosionLayer.emitterMode = kCAEmitterLayerOutline; 66 | // 发射源大小 67 | // _explosionLayer.emitterSize = CGSize.init(width: 10, height: 0); 68 | _explosionLayer.emitterSize = CGSizeMake(5, 0); 69 | 70 | // 发射源包含的粒子 71 | _explosionLayer.emitterCells = @[explosionCell]; 72 | // 渲染模式 73 | _explosionLayer.renderMode = kCAEmitterLayerOldestFirst; 74 | _explosionLayer.masksToBounds = false; 75 | _explosionLayer.birthRate = 0; 76 | 77 | 78 | 79 | _explosionLayer.zPosition = 0; 80 | [self.layer addSublayer:_explosionLayer]; 81 | 82 | } 83 | - (void)layoutSubviews{ 84 | [super layoutSubviews]; 85 | NSLog(@"=====%@",NSStringFromCGRect(self.frame)); 86 | // 发射位置 87 | _explosionLayer.position = CGPointMake(self.frame.size.width/2, self.frame.size.height/2); 88 | } 89 | 90 | - (void)setSelected:(BOOL)selected{ 91 | 92 | CAKeyframeAnimation * animation = [CAKeyframeAnimation animationWithKeyPath:@"transform.scale"]; 93 | if (selected) { 94 | animation.values = @[@1.5,@0.8,@1.0,@1.2,@1.0]; 95 | animation.duration = 0.5; 96 | [self startAnimation]; 97 | }else{ 98 | animation.values = @[@0.8,@1.0]; 99 | animation.duration = 0.4; 100 | } 101 | 102 | animation.calculationMode = kCAAnimationCubic; 103 | 104 | [self.layer addAnimation:animation forKey:@"transform.scale"]; 105 | } 106 | 107 | - (void)startAnimation{ 108 | _explosionLayer.beginTime = CACurrentMediaTime(); 109 | //每秒生成多少个粒子 110 | _explosionLayer.birthRate = 1; 111 | // perform(#selector(STPraiseEmitterBtn.stopAnimation), with: nil, afterDelay: 0.15); 112 | [self performSelector:@selector(stopAnimation) withObject:self afterDelay:0.15]; 113 | } 114 | - (void)stopAnimation{ 115 | _explosionLayer.birthRate = 0; 116 | } 117 | 118 | @end 119 | -------------------------------------------------------------------------------- /CABasic.xcodeproj/xcuserdata/zhangwei.xcuserdatad/xcschemes/CABasic.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /CABasic.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 72D6C86C1EB1D20C00BE0A96 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 72D6C86B1EB1D20C00BE0A96 /* main.m */; }; 11 | 72D6C86F1EB1D20C00BE0A96 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 72D6C86E1EB1D20C00BE0A96 /* AppDelegate.m */; }; 12 | 72D6C8721EB1D20C00BE0A96 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 72D6C8711EB1D20C00BE0A96 /* ViewController.m */; }; 13 | 72D6C8751EB1D20C00BE0A96 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 72D6C8731EB1D20C00BE0A96 /* Main.storyboard */; }; 14 | 72D6C8771EB1D20C00BE0A96 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 72D6C8761EB1D20C00BE0A96 /* Assets.xcassets */; }; 15 | 72D6C87A1EB1D20C00BE0A96 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 72D6C8781EB1D20C00BE0A96 /* LaunchScreen.storyboard */; }; 16 | 72D6C8831EB2D5F500BE0A96 /* EmitterBtn.m in Sources */ = {isa = PBXBuildFile; fileRef = 72D6C8821EB2D5F500BE0A96 /* EmitterBtn.m */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXFileReference section */ 20 | 72D6C8671EB1D20C00BE0A96 /* CABasic.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CABasic.app; sourceTree = BUILT_PRODUCTS_DIR; }; 21 | 72D6C86B1EB1D20C00BE0A96 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 22 | 72D6C86D1EB1D20C00BE0A96 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 23 | 72D6C86E1EB1D20C00BE0A96 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 24 | 72D6C8701EB1D20C00BE0A96 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 25 | 72D6C8711EB1D20C00BE0A96 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 26 | 72D6C8741EB1D20C00BE0A96 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 27 | 72D6C8761EB1D20C00BE0A96 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 28 | 72D6C8791EB1D20C00BE0A96 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 29 | 72D6C87B1EB1D20C00BE0A96 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 30 | 72D6C8811EB2D5F500BE0A96 /* EmitterBtn.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EmitterBtn.h; sourceTree = ""; }; 31 | 72D6C8821EB2D5F500BE0A96 /* EmitterBtn.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EmitterBtn.m; sourceTree = ""; }; 32 | /* End PBXFileReference section */ 33 | 34 | /* Begin PBXFrameworksBuildPhase section */ 35 | 72D6C8641EB1D20C00BE0A96 /* Frameworks */ = { 36 | isa = PBXFrameworksBuildPhase; 37 | buildActionMask = 2147483647; 38 | files = ( 39 | ); 40 | runOnlyForDeploymentPostprocessing = 0; 41 | }; 42 | /* End PBXFrameworksBuildPhase section */ 43 | 44 | /* Begin PBXGroup section */ 45 | 72D6C85E1EB1D20C00BE0A96 = { 46 | isa = PBXGroup; 47 | children = ( 48 | 72D6C8691EB1D20C00BE0A96 /* CABasic */, 49 | 72D6C8681EB1D20C00BE0A96 /* Products */, 50 | ); 51 | sourceTree = ""; 52 | }; 53 | 72D6C8681EB1D20C00BE0A96 /* Products */ = { 54 | isa = PBXGroup; 55 | children = ( 56 | 72D6C8671EB1D20C00BE0A96 /* CABasic.app */, 57 | ); 58 | name = Products; 59 | sourceTree = ""; 60 | }; 61 | 72D6C8691EB1D20C00BE0A96 /* CABasic */ = { 62 | isa = PBXGroup; 63 | children = ( 64 | 72D6C86D1EB1D20C00BE0A96 /* AppDelegate.h */, 65 | 72D6C86E1EB1D20C00BE0A96 /* AppDelegate.m */, 66 | 72D6C8701EB1D20C00BE0A96 /* ViewController.h */, 67 | 72D6C8711EB1D20C00BE0A96 /* ViewController.m */, 68 | 72D6C8811EB2D5F500BE0A96 /* EmitterBtn.h */, 69 | 72D6C8821EB2D5F500BE0A96 /* EmitterBtn.m */, 70 | 72D6C8731EB1D20C00BE0A96 /* Main.storyboard */, 71 | 72D6C8761EB1D20C00BE0A96 /* Assets.xcassets */, 72 | 72D6C8781EB1D20C00BE0A96 /* LaunchScreen.storyboard */, 73 | 72D6C87B1EB1D20C00BE0A96 /* Info.plist */, 74 | 72D6C86A1EB1D20C00BE0A96 /* Supporting Files */, 75 | ); 76 | path = CABasic; 77 | sourceTree = ""; 78 | }; 79 | 72D6C86A1EB1D20C00BE0A96 /* Supporting Files */ = { 80 | isa = PBXGroup; 81 | children = ( 82 | 72D6C86B1EB1D20C00BE0A96 /* main.m */, 83 | ); 84 | name = "Supporting Files"; 85 | sourceTree = ""; 86 | }; 87 | /* End PBXGroup section */ 88 | 89 | /* Begin PBXNativeTarget section */ 90 | 72D6C8661EB1D20C00BE0A96 /* CABasic */ = { 91 | isa = PBXNativeTarget; 92 | buildConfigurationList = 72D6C87E1EB1D20C00BE0A96 /* Build configuration list for PBXNativeTarget "CABasic" */; 93 | buildPhases = ( 94 | 72D6C8631EB1D20C00BE0A96 /* Sources */, 95 | 72D6C8641EB1D20C00BE0A96 /* Frameworks */, 96 | 72D6C8651EB1D20C00BE0A96 /* Resources */, 97 | ); 98 | buildRules = ( 99 | ); 100 | dependencies = ( 101 | ); 102 | name = CABasic; 103 | productName = CABasic; 104 | productReference = 72D6C8671EB1D20C00BE0A96 /* CABasic.app */; 105 | productType = "com.apple.product-type.application"; 106 | }; 107 | /* End PBXNativeTarget section */ 108 | 109 | /* Begin PBXProject section */ 110 | 72D6C85F1EB1D20C00BE0A96 /* Project object */ = { 111 | isa = PBXProject; 112 | attributes = { 113 | LastUpgradeCheck = 0820; 114 | ORGANIZATIONNAME = jyall; 115 | TargetAttributes = { 116 | 72D6C8661EB1D20C00BE0A96 = { 117 | CreatedOnToolsVersion = 8.2.1; 118 | ProvisioningStyle = Automatic; 119 | }; 120 | }; 121 | }; 122 | buildConfigurationList = 72D6C8621EB1D20C00BE0A96 /* Build configuration list for PBXProject "CABasic" */; 123 | compatibilityVersion = "Xcode 3.2"; 124 | developmentRegion = English; 125 | hasScannedForEncodings = 0; 126 | knownRegions = ( 127 | en, 128 | Base, 129 | ); 130 | mainGroup = 72D6C85E1EB1D20C00BE0A96; 131 | productRefGroup = 72D6C8681EB1D20C00BE0A96 /* Products */; 132 | projectDirPath = ""; 133 | projectRoot = ""; 134 | targets = ( 135 | 72D6C8661EB1D20C00BE0A96 /* CABasic */, 136 | ); 137 | }; 138 | /* End PBXProject section */ 139 | 140 | /* Begin PBXResourcesBuildPhase section */ 141 | 72D6C8651EB1D20C00BE0A96 /* Resources */ = { 142 | isa = PBXResourcesBuildPhase; 143 | buildActionMask = 2147483647; 144 | files = ( 145 | 72D6C87A1EB1D20C00BE0A96 /* LaunchScreen.storyboard in Resources */, 146 | 72D6C8771EB1D20C00BE0A96 /* Assets.xcassets in Resources */, 147 | 72D6C8751EB1D20C00BE0A96 /* Main.storyboard in Resources */, 148 | ); 149 | runOnlyForDeploymentPostprocessing = 0; 150 | }; 151 | /* End PBXResourcesBuildPhase section */ 152 | 153 | /* Begin PBXSourcesBuildPhase section */ 154 | 72D6C8631EB1D20C00BE0A96 /* Sources */ = { 155 | isa = PBXSourcesBuildPhase; 156 | buildActionMask = 2147483647; 157 | files = ( 158 | 72D6C8721EB1D20C00BE0A96 /* ViewController.m in Sources */, 159 | 72D6C8831EB2D5F500BE0A96 /* EmitterBtn.m in Sources */, 160 | 72D6C86F1EB1D20C00BE0A96 /* AppDelegate.m in Sources */, 161 | 72D6C86C1EB1D20C00BE0A96 /* main.m in Sources */, 162 | ); 163 | runOnlyForDeploymentPostprocessing = 0; 164 | }; 165 | /* End PBXSourcesBuildPhase section */ 166 | 167 | /* Begin PBXVariantGroup section */ 168 | 72D6C8731EB1D20C00BE0A96 /* Main.storyboard */ = { 169 | isa = PBXVariantGroup; 170 | children = ( 171 | 72D6C8741EB1D20C00BE0A96 /* Base */, 172 | ); 173 | name = Main.storyboard; 174 | sourceTree = ""; 175 | }; 176 | 72D6C8781EB1D20C00BE0A96 /* LaunchScreen.storyboard */ = { 177 | isa = PBXVariantGroup; 178 | children = ( 179 | 72D6C8791EB1D20C00BE0A96 /* Base */, 180 | ); 181 | name = LaunchScreen.storyboard; 182 | sourceTree = ""; 183 | }; 184 | /* End PBXVariantGroup section */ 185 | 186 | /* Begin XCBuildConfiguration section */ 187 | 72D6C87C1EB1D20C00BE0A96 /* Debug */ = { 188 | isa = XCBuildConfiguration; 189 | buildSettings = { 190 | ALWAYS_SEARCH_USER_PATHS = NO; 191 | CLANG_ANALYZER_NONNULL = YES; 192 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 193 | CLANG_CXX_LIBRARY = "libc++"; 194 | CLANG_ENABLE_MODULES = YES; 195 | CLANG_ENABLE_OBJC_ARC = YES; 196 | CLANG_WARN_BOOL_CONVERSION = YES; 197 | CLANG_WARN_CONSTANT_CONVERSION = YES; 198 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 199 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 200 | CLANG_WARN_EMPTY_BODY = YES; 201 | CLANG_WARN_ENUM_CONVERSION = YES; 202 | CLANG_WARN_INFINITE_RECURSION = YES; 203 | CLANG_WARN_INT_CONVERSION = YES; 204 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 205 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 206 | CLANG_WARN_UNREACHABLE_CODE = YES; 207 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 208 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 209 | COPY_PHASE_STRIP = NO; 210 | DEBUG_INFORMATION_FORMAT = dwarf; 211 | ENABLE_STRICT_OBJC_MSGSEND = YES; 212 | ENABLE_TESTABILITY = YES; 213 | GCC_C_LANGUAGE_STANDARD = gnu99; 214 | GCC_DYNAMIC_NO_PIC = NO; 215 | GCC_NO_COMMON_BLOCKS = YES; 216 | GCC_OPTIMIZATION_LEVEL = 0; 217 | GCC_PREPROCESSOR_DEFINITIONS = ( 218 | "DEBUG=1", 219 | "$(inherited)", 220 | ); 221 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 222 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 223 | GCC_WARN_UNDECLARED_SELECTOR = YES; 224 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 225 | GCC_WARN_UNUSED_FUNCTION = YES; 226 | GCC_WARN_UNUSED_VARIABLE = YES; 227 | IPHONEOS_DEPLOYMENT_TARGET = 10.2; 228 | MTL_ENABLE_DEBUG_INFO = YES; 229 | ONLY_ACTIVE_ARCH = YES; 230 | SDKROOT = iphoneos; 231 | }; 232 | name = Debug; 233 | }; 234 | 72D6C87D1EB1D20C00BE0A96 /* Release */ = { 235 | isa = XCBuildConfiguration; 236 | buildSettings = { 237 | ALWAYS_SEARCH_USER_PATHS = NO; 238 | CLANG_ANALYZER_NONNULL = YES; 239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 240 | CLANG_CXX_LIBRARY = "libc++"; 241 | CLANG_ENABLE_MODULES = YES; 242 | CLANG_ENABLE_OBJC_ARC = YES; 243 | CLANG_WARN_BOOL_CONVERSION = YES; 244 | CLANG_WARN_CONSTANT_CONVERSION = YES; 245 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 246 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 247 | CLANG_WARN_EMPTY_BODY = YES; 248 | CLANG_WARN_ENUM_CONVERSION = YES; 249 | CLANG_WARN_INFINITE_RECURSION = YES; 250 | CLANG_WARN_INT_CONVERSION = YES; 251 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 252 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 253 | CLANG_WARN_UNREACHABLE_CODE = YES; 254 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 255 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 256 | COPY_PHASE_STRIP = NO; 257 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 258 | ENABLE_NS_ASSERTIONS = NO; 259 | ENABLE_STRICT_OBJC_MSGSEND = YES; 260 | GCC_C_LANGUAGE_STANDARD = gnu99; 261 | GCC_NO_COMMON_BLOCKS = YES; 262 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 263 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 264 | GCC_WARN_UNDECLARED_SELECTOR = YES; 265 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 266 | GCC_WARN_UNUSED_FUNCTION = YES; 267 | GCC_WARN_UNUSED_VARIABLE = YES; 268 | IPHONEOS_DEPLOYMENT_TARGET = 10.2; 269 | MTL_ENABLE_DEBUG_INFO = NO; 270 | SDKROOT = iphoneos; 271 | VALIDATE_PRODUCT = YES; 272 | }; 273 | name = Release; 274 | }; 275 | 72D6C87F1EB1D20C00BE0A96 /* Debug */ = { 276 | isa = XCBuildConfiguration; 277 | buildSettings = { 278 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 279 | INFOPLIST_FILE = CABasic/Info.plist; 280 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 281 | PRODUCT_BUNDLE_IDENTIFIER = jyall.CABasic; 282 | PRODUCT_NAME = "$(TARGET_NAME)"; 283 | }; 284 | name = Debug; 285 | }; 286 | 72D6C8801EB1D20C00BE0A96 /* Release */ = { 287 | isa = XCBuildConfiguration; 288 | buildSettings = { 289 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 290 | INFOPLIST_FILE = CABasic/Info.plist; 291 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 292 | PRODUCT_BUNDLE_IDENTIFIER = jyall.CABasic; 293 | PRODUCT_NAME = "$(TARGET_NAME)"; 294 | }; 295 | name = Release; 296 | }; 297 | /* End XCBuildConfiguration section */ 298 | 299 | /* Begin XCConfigurationList section */ 300 | 72D6C8621EB1D20C00BE0A96 /* Build configuration list for PBXProject "CABasic" */ = { 301 | isa = XCConfigurationList; 302 | buildConfigurations = ( 303 | 72D6C87C1EB1D20C00BE0A96 /* Debug */, 304 | 72D6C87D1EB1D20C00BE0A96 /* Release */, 305 | ); 306 | defaultConfigurationIsVisible = 0; 307 | defaultConfigurationName = Release; 308 | }; 309 | 72D6C87E1EB1D20C00BE0A96 /* Build configuration list for PBXNativeTarget "CABasic" */ = { 310 | isa = XCConfigurationList; 311 | buildConfigurations = ( 312 | 72D6C87F1EB1D20C00BE0A96 /* Debug */, 313 | 72D6C8801EB1D20C00BE0A96 /* Release */, 314 | ); 315 | defaultConfigurationIsVisible = 0; 316 | }; 317 | /* End XCConfigurationList section */ 318 | }; 319 | rootObject = 72D6C85F1EB1D20C00BE0A96 /* Project object */; 320 | } 321 | --------------------------------------------------------------------------------