├── README.md ├── FYWaveView ├── FYWaveView.xcodeproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ ├── xcuserdata │ │ └── andy.xcuserdatad │ │ │ └── xcschemes │ │ │ ├── xcschememanagement.plist │ │ │ └── FYWaveView.xcscheme │ └── project.pbxproj ├── FYWaveView │ ├── ViewController.h │ ├── AppDelegate.h │ ├── main.m │ ├── FYWaveView.h │ ├── UIImage+Color.h │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Tools.h │ ├── Info.plist │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── AppDelegate.m │ ├── UIImage+Color.m │ ├── Tools.m │ ├── FYWaveView.m │ └── ViewController.m ├── FYWaveViewTests │ ├── Info.plist │ └── FYWaveViewTests.m └── FYWaveViewUITests │ ├── Info.plist │ └── FYWaveViewUITests.m └── .gitignore /README.md: -------------------------------------------------------------------------------- 1 | # FYWaveView -------------------------------------------------------------------------------- /FYWaveView/FYWaveView.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /FYWaveView/FYWaveView/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // FYWaveView 4 | // 5 | // Created by Andy on 2016/11/17. 6 | // Copyright © 2016年 Andy. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | 13 | @interface ViewController : UIViewController 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /FYWaveView/FYWaveView/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // FYWaveView 4 | // 5 | // Created by Andy on 2016/11/17. 6 | // Copyright © 2016年 Andy. 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 | -------------------------------------------------------------------------------- /FYWaveView/FYWaveView/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // FYWaveView 4 | // 5 | // Created by Andy on 2016/11/17. 6 | // Copyright © 2016年 Andy. 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 | -------------------------------------------------------------------------------- /FYWaveView/FYWaveView/FYWaveView.h: -------------------------------------------------------------------------------- 1 | // 2 | // FYWaveView.h 3 | // MaShangLiCai 4 | // 5 | // Created by hua zhang on 3/9/16. 6 | // Copyright © 2016 MaShangFeiYang. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface FYWaveView : UIView 12 | 13 | - (id)initWithRadius:(CGFloat)radius color:(UIColor *)color; 14 | - (id)initWithRadius:(CGFloat)radius color:(UIColor *)color adjustSize:(BOOL)adjustSize; 15 | 16 | - (void)startAnimation; 17 | - (void)stopAnimation; 18 | @end 19 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | .LSOverride 22 | 23 | *.xcuserstate 24 | project.xcworkspace 25 | xcuserdata 26 | UserInterfaceState.xcuserstate 27 | project.xcworkspace/ 28 | xcuserdata/ 29 | UserInterface.xcuserstate 30 | 31 | # CocoaPods 32 | Pods 33 | -------------------------------------------------------------------------------- /FYWaveView/FYWaveView/UIImage+Color.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIImage+Color.h 3 | // Vidie 4 | // 5 | // Created by hua zhang on 9/26/14. 6 | // Copyright (c) 2014 hua zhang. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface UIImage (Color) 12 | 13 | /** 14 | * @brief 将颜色变成图片 15 | * 16 | * @param color 图片的颜色 17 | * @param size 图片大小 18 | * 19 | * @return 图片 20 | */ 21 | + (UIImage *)imageWithColor:(UIColor *)color size:(CGSize)size; 22 | 23 | /** 24 | * @brief 改变图片颜色 25 | * 26 | * @param color 图片的颜色 27 | * 28 | * @return 图片 29 | */ 30 | + (UIImage *)imageWithColor:(UIColor *)color; 31 | 32 | 33 | - (UIImage *)imageToColor:(UIColor *)color; 34 | - (UIImage *)grayImage; 35 | @end 36 | -------------------------------------------------------------------------------- /FYWaveView/FYWaveViewTests/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 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /FYWaveView/FYWaveViewUITests/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 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /FYWaveView/FYWaveView/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /FYWaveView/FYWaveView/Tools.h: -------------------------------------------------------------------------------- 1 | // 2 | // Tools.h 3 | // MaShangLiCai 4 | // 5 | // Created by JasonLu on 14/12/3. 6 | // Copyright (c) 2014年 JasonLu. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | typedef NS_ENUM(NSUInteger, FYPhoneModel) { 12 | FYPhoneModeliPhone4, 13 | FYPhoneModeliPhone5, 14 | FYPhoneModeliPhone6, 15 | FYPhoneModeliPhone6p, 16 | }; 17 | 18 | @interface Tools : NSObject 19 | 20 | + (FYPhoneModel)currentPhoneModel; 21 | + (CGFloat)fitCGFloatFive:(CGFloat)five six:(CGFloat)six sixp:(CGFloat)sixp; 22 | 23 | + (UIColor *)colorWithHexValue:(uint)hexValue alpha:(float)alpha; 24 | 25 | + (UIColor *)colorWithHexString:(NSString *)hexStr alpha:(float)alpha; 26 | 27 | + (UIColor *)colorWithHexString:(NSString *)hexStr ; 28 | 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /FYWaveView/FYWaveView.xcodeproj/xcuserdata/andy.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | FYWaveView.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | A119751A1DDD4A5C006118C2 16 | 17 | primary 18 | 19 | 20 | A11975331DDD4A5C006118C2 21 | 22 | primary 23 | 24 | 25 | A119753E1DDD4A5C006118C2 26 | 27 | primary 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /FYWaveView/FYWaveViewTests/FYWaveViewTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // FYWaveViewTests.m 3 | // FYWaveViewTests 4 | // 5 | // Created by Andy on 2016/11/17. 6 | // Copyright © 2016年 Andy. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface FYWaveViewTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation FYWaveViewTests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | // Put setup code here. This method is called before the invocation of each test method in the class. 20 | } 21 | 22 | - (void)tearDown { 23 | // Put teardown code here. This method is called after the invocation of each test method in the class. 24 | [super tearDown]; 25 | } 26 | 27 | - (void)testExample { 28 | // This is an example of a functional test case. 29 | // Use XCTAssert and related functions to verify your tests produce the correct results. 30 | } 31 | 32 | - (void)testPerformanceExample { 33 | // This is an example of a performance test case. 34 | [self measureBlock:^{ 35 | // Put the code you want to measure the time of here. 36 | }]; 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /FYWaveView/FYWaveView/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 | -------------------------------------------------------------------------------- /FYWaveView/FYWaveViewUITests/FYWaveViewUITests.m: -------------------------------------------------------------------------------- 1 | // 2 | // FYWaveViewUITests.m 3 | // FYWaveViewUITests 4 | // 5 | // Created by Andy on 2016/11/17. 6 | // Copyright © 2016年 Andy. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface FYWaveViewUITests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation FYWaveViewUITests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | 22 | // In UI tests it is usually best to stop immediately when a failure occurs. 23 | self.continueAfterFailure = NO; 24 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 25 | [[[XCUIApplication alloc] init] launch]; 26 | 27 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 28 | } 29 | 30 | - (void)tearDown { 31 | // Put teardown code here. This method is called after the invocation of each test method in the class. 32 | [super tearDown]; 33 | } 34 | 35 | - (void)testExample { 36 | // Use recording to get started writing UI tests. 37 | // Use XCTAssert and related functions to verify your tests produce the correct results. 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /FYWaveView/FYWaveView/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 | -------------------------------------------------------------------------------- /FYWaveView/FYWaveView/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // FYWaveView 4 | // 5 | // Created by Andy on 2016/11/17. 6 | // Copyright © 2016年 Andy. 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 | -------------------------------------------------------------------------------- /FYWaveView/FYWaveView/UIImage+Color.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIImage+Color.m 3 | // Vidie 4 | // 5 | // Created by hua zhang on 9/26/14. 6 | // Copyright (c) 2014 hua zhang. All rights reserved. 7 | // 8 | 9 | #import "UIImage+Color.h" 10 | 11 | @implementation UIImage (Color) 12 | 13 | + (UIImage *)imageWithColor:(UIColor *)color size:(CGSize)size { 14 | CGRect rect = CGRectMake(0, 0, size.width, size.height); 15 | 16 | // create a 1 by 1 pixel context 17 | UIGraphicsBeginImageContextWithOptions(rect.size, NO, 0); 18 | [color setFill]; 19 | UIRectFill(rect); 20 | 21 | UIImage *image = UIGraphicsGetImageFromCurrentImageContext(); 22 | UIGraphicsEndImageContext(); 23 | 24 | return image; 25 | } 26 | 27 | + (UIImage *)imageWithColor:(UIColor *)color { 28 | return [self imageWithColor:color size:CGSizeMake(1, 1)]; 29 | } 30 | 31 | - (UIImage *)imageToColor:(UIColor *)color { 32 | UIGraphicsBeginImageContextWithOptions(self.size, NO, self.scale); 33 | CGContextRef context = UIGraphicsGetCurrentContext(); 34 | CGContextTranslateCTM(context, 0, self.size.height); 35 | CGContextScaleCTM(context, 1.0, -1.0);//字体翻转 36 | CGContextSetBlendMode(context, kCGBlendModeNormal); 37 | CGRect rect = CGRectMake(0, 0, self.size.width, self.size.height); 38 | CGContextClipToMask(context, rect, self.CGImage); 39 | [color setFill]; 40 | CGContextFillRect(context, rect); 41 | UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext(); 42 | UIGraphicsEndImageContext(); 43 | return newImage; 44 | } 45 | 46 | - (UIImage *)grayImage { 47 | UIGraphicsBeginImageContextWithOptions(self.size, NO, self.scale); 48 | CGRect imageRect = CGRectMake(0.0f, 0.0f, self.size.width, self.size.height); 49 | 50 | CGContextRef ctx = UIGraphicsGetCurrentContext(); 51 | 52 | // Draw a white background 53 | CGContextSetRGBFillColor(ctx, 1.0f, 1.0f, 1.0f, 1.0f); 54 | CGContextFillRect(ctx, imageRect); 55 | 56 | // Draw the luminosity on top of the white background to get grayscale 57 | [self drawInRect:imageRect blendMode:kCGBlendModeLuminosity alpha:1.0f]; 58 | 59 | // Apply the source image's alpha 60 | [self drawInRect:imageRect blendMode:kCGBlendModeDestinationIn alpha:1.0f]; 61 | 62 | UIImage* grayscaleImage = UIGraphicsGetImageFromCurrentImageContext(); 63 | UIGraphicsEndImageContext(); 64 | 65 | return grayscaleImage; 66 | } 67 | @end 68 | -------------------------------------------------------------------------------- /FYWaveView/FYWaveView/Tools.m: -------------------------------------------------------------------------------- 1 | // 2 | // Tools.m 3 | // MaShangLiCai 4 | // 5 | // Created by JasonLu on 14/12/3. 6 | // Copyright (c) 2014年 JasonLu. All rights reserved. 7 | // 8 | 9 | #import "Tools.h" 10 | #import 11 | 12 | #define SCREEN_SIZE [UIScreen mainScreen].bounds.size 13 | 14 | @implementation Tools 15 | 16 | + (FYPhoneModel)currentPhoneModel { 17 | if (SCREEN_SIZE.width>375.0) { 18 | return FYPhoneModeliPhone6p; 19 | } else if (SCREEN_SIZE.width>320.0 && SCREEN_SIZE.width <= 375.0) { 20 | return FYPhoneModeliPhone6; 21 | } else { 22 | if (SCREEN_SIZE.height > 480) { 23 | return FYPhoneModeliPhone5; 24 | } else { 25 | return FYPhoneModeliPhone4; 26 | } 27 | } 28 | } 29 | 30 | + (CGFloat)fitCGFloatFive:(CGFloat)five six:(CGFloat)six sixp:(CGFloat)sixp{ 31 | if ([self currentPhoneModel] == FYPhoneModeliPhone6) { 32 | return six; 33 | }else if ([self currentPhoneModel] == FYPhoneModeliPhone6p){ 34 | return sixp; 35 | }else{ 36 | return five; 37 | } 38 | } 39 | 40 | + (UIColor *)colorWithHexValue:(uint)hexValue alpha:(float)alpha 41 | { 42 | return [UIColor 43 | colorWithRed:((float)((hexValue & 0xFF0000) >> 16))/255.0 44 | green:((float)((hexValue & 0xFF00) >> 8))/255.0 45 | blue:((float)(hexValue & 0xFF))/255.0 46 | alpha:alpha]; 47 | } 48 | 49 | + (UIColor *)colorWithHexString:(NSString *)hexStr alpha:(float)alpha 50 | { 51 | if (hexStr == nil || (id)hexStr == [NSNull null]) { 52 | return nil; 53 | } 54 | else{ 55 | UIColor *color; 56 | hexStr = [hexStr stringByReplacingOccurrencesOfString:@"#" withString:@"0x"]; 57 | 58 | uint hexValue; 59 | if ([[NSScanner scannerWithString:hexStr] scanHexInt:&hexValue]) { 60 | color = [self colorWithHexValue:hexValue alpha:alpha]; 61 | } 62 | else { 63 | // invalid hex string 64 | color = [UIColor clearColor]; 65 | } 66 | return color; 67 | } 68 | } 69 | 70 | + (UIColor *)colorWithHexString:(NSString *)hexStr { 71 | 72 | if (hexStr == nil || (id)hexStr == [NSNull null]) { 73 | return nil; 74 | } 75 | else{ 76 | UIColor *color; 77 | hexStr = [hexStr stringByReplacingOccurrencesOfString:@"#" withString:@"0x"]; 78 | 79 | uint hexValue; 80 | if ([[NSScanner scannerWithString:hexStr] scanHexInt:&hexValue]) { 81 | color = [self colorWithHexValue:hexValue alpha:1.0]; 82 | } 83 | else { 84 | // invalid hex string 85 | color = [UIColor clearColor]; 86 | } 87 | return color; 88 | } 89 | } 90 | 91 | 92 | 93 | @end 94 | -------------------------------------------------------------------------------- /FYWaveView/FYWaveView/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 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /FYWaveView/FYWaveView/FYWaveView.m: -------------------------------------------------------------------------------- 1 | // 2 | // FYWaveView.m 3 | // MaShangLiCai 4 | // 5 | // Created by hua zhang on 3/9/16. 6 | // Copyright © 2016 MaShangFeiYang. All rights reserved. 7 | // 8 | 9 | #import "FYWaveView.h" 10 | 11 | #define degreesToRadians(x) (M_PI*(x)/180.0) //把角度转换成PI的方式 12 | 13 | @interface FYWaveView () { 14 | CGFloat _curRadius; 15 | BOOL _adjustSize; 16 | BOOL _enabled; 17 | } 18 | @property (nonatomic, assign) CGFloat radius; 19 | @property (nonatomic, strong) UIColor *color; 20 | @property (nonatomic, strong) CAShapeLayer *circleLayer; 21 | @end 22 | 23 | @implementation FYWaveView 24 | 25 | - (id)initWithRadius:(CGFloat)radius color:(UIColor *)color { 26 | return [self initWithRadius:radius color:color adjustSize:YES]; 27 | } 28 | 29 | - (id)initWithRadius:(CGFloat)radius color:(UIColor *)color adjustSize:(BOOL)adjustSize { 30 | self = [super initWithFrame:CGRectMake(0, 0, radius*2, radius*2)]; 31 | if (self) { 32 | 33 | self.radius = radius; 34 | self.color = color; 35 | _adjustSize = adjustSize; 36 | [self drawLayer:adjustSize]; 37 | } 38 | 39 | return self; 40 | } 41 | 42 | - (CGPoint)dotPositionForRadius:(CGFloat)radius degree:(CGFloat)degree { 43 | CGFloat x = self.radius+radius*cos(M_PI*2-degreesToRadians(degree)); 44 | CGFloat y = self.radius-radius*sin(M_PI*2-degreesToRadians(degree)); 45 | 46 | return CGPointMake(x, y); 47 | } 48 | 49 | 50 | - (void)drawLayer:(BOOL)adjustSize { 51 | self.circleLayer = [CAShapeLayer layer]; 52 | self.circleLayer.frame = self.bounds; 53 | [self.layer addSublayer:self.circleLayer]; 54 | 55 | self.circleLayer.fillColor = self.color.CGColor; 56 | CGFloat r = 0; 57 | if (adjustSize) { 58 | r = arc4random_uniform(15); 59 | } 60 | _curRadius = self.radius-r; 61 | self.circleLayer.path = [UIBezierPath bezierPathWithOvalInRect:CGRectMake(r, r, _curRadius*2, _curRadius*2)].CGPath; 62 | 63 | } 64 | 65 | - (void)resetAnimation:(BOOL)first { 66 | 67 | UIBezierPath *path = [UIBezierPath bezierPath]; 68 | CGFloat degree = arc4random_uniform(360); 69 | CGFloat r = arc4random_uniform(15)+5; 70 | if (!_adjustSize) { 71 | r = 5; 72 | } 73 | 74 | CGPoint startPoint = [self dotPositionForRadius:self.radius-_curRadius degree:degree]; 75 | if (!first) { 76 | [path moveToPoint:startPoint]; 77 | } else { 78 | CGFloat d = arc4random_uniform(3)+2; 79 | [path moveToPoint:[self dotPositionForRadius:self.radius-_curRadius+d degree:degree]]; 80 | } 81 | [path addLineToPoint:[self dotPositionForRadius:self.radius-_curRadius+r degree:degree]]; 82 | [path addLineToPoint:startPoint]; 83 | 84 | CAKeyframeAnimation *animation = [CAKeyframeAnimation animationWithKeyPath:@"position"]; 85 | animation.path = path.CGPath; 86 | animation.autoreverses = NO; 87 | animation.removedOnCompletion = YES; 88 | animation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseOut]; 89 | animation.duration = arc4random_uniform(5)+4; 90 | animation.delegate = self; 91 | 92 | [self.circleLayer addAnimation:animation forKey:@"position"]; 93 | } 94 | 95 | - (void)startAnimation { 96 | _enabled = YES; 97 | 98 | [self resetAnimation:YES]; 99 | } 100 | 101 | - (void)stopAnimation { 102 | _enabled = NO; 103 | [self.circleLayer removeAllAnimations]; 104 | } 105 | 106 | - (void)animationDidStop:(CAAnimation *)anim finished:(BOOL)flag { 107 | [self.circleLayer removeAllAnimations]; 108 | 109 | if (_enabled) { 110 | [self resetAnimation:NO]; 111 | } 112 | } 113 | 114 | @end 115 | -------------------------------------------------------------------------------- /FYWaveView/FYWaveView.xcodeproj/xcuserdata/andy.xcuserdatad/xcschemes/FYWaveView.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 43 | 49 | 50 | 51 | 52 | 53 | 59 | 60 | 61 | 62 | 63 | 64 | 74 | 76 | 82 | 83 | 84 | 85 | 89 | 90 | 91 | 92 | 93 | 94 | 100 | 102 | 108 | 109 | 110 | 111 | 113 | 114 | 117 | 118 | 119 | -------------------------------------------------------------------------------- /FYWaveView/FYWaveView/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // FYWaveView 4 | // 5 | // Created by Andy on 2016/11/17. 6 | // Copyright © 2016年 Andy. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | #import "FYWaveView.h" 11 | #import "Tools.h" 12 | #import "UIImage+Color.h" 13 | #define SCREEN_SIZE [UIScreen mainScreen].bounds.size 14 | 15 | #define iOS9orAbove ([[[UIDevice currentDevice] systemVersion] floatValue] >= 9.0) 16 | 17 | #define COLOR_RGB(r,g,b) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:1.0] 18 | #define COLOR_RGBA(r,g,b,a) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:(a)] 19 | 20 | //红色#FF6060 21 | #define RED_COLOR COLOR_RGB(255,96,96) 22 | //中灰色#AAAAAA 23 | #define MIDDLE_GRAY_COLOR COLOR_RGB(153, 153, 153) 24 | 25 | //不同屏幕适配给定数字 26 | #define FIT_CGFloat(a,b,c) [Tools fitCGFloatFive:(a) six:(b) sixp:(c)] 27 | //字体定义 28 | 29 | #define FONT_BOLD(x) [UIFont fontWithName:iOS9orAbove?@"PingFangSC-Medium":@"HelveticaNeue-Bold" size:(x)] 30 | #define FONT_REGULAR(x) [UIFont fontWithName:iOS9orAbove?@"PingFangSC-Regular":@"HelveticaNeue" size:(x)] 31 | #define FONT_LIGHT(x) [UIFont fontWithName:iOS9orAbove?@"PingFangSC-Light":@"HelveticaNeue-Light" size:(x)] 32 | #define FONT_THIN(x) [UIFont fontWithName:iOS9orAbove?@"PingFangSC-Thin":@"HelveticaNeue-Thin" size:(x)] 33 | 34 | #define FIT_FONT_LIGHT(a,b,c) FONT_LIGHT(FIT_CGFloat(a, b, c)) 35 | #define FIT_FONT_REGULAR(a,b,c) FONT_REGULAR(FIT_CGFloat(a, b, c)) 36 | #define FIT_FONT_BOLD(a,b,c) FONT_BOLD(FIT_CGFloat(a, b, c)) 37 | #define FIT_FONT_THIN(a,b,c) FONT_THIN(FIT_CGFloat(a, b, c)) 38 | @interface ViewController () 39 | 40 | @end 41 | 42 | @implementation ViewController 43 | - (void)viewDidLoad { 44 | [super viewDidLoad]; 45 | // Do any additional setup after loading the view. 46 | self.title = @"定制理财"; 47 | self.view.backgroundColor = [UIColor whiteColor]; 48 | 49 | [self initViews]; 50 | } 51 | 52 | - (void)viewWillAppear:(BOOL)animated { 53 | [super viewWillAppear:animated]; 54 | 55 | for (UIView *view in self.view.subviews) { 56 | if ([view isKindOfClass:[FYWaveView class]]) { 57 | [(FYWaveView *)view startAnimation]; 58 | } 59 | } 60 | 61 | } 62 | 63 | - (void)viewWillDisappear:(BOOL)animated { 64 | [super viewWillDisappear:animated]; 65 | 66 | for (UIView *view in self.view.subviews) { 67 | if ([view isKindOfClass:[FYWaveView class]]) { 68 | [(FYWaveView *)view stopAnimation]; 69 | } 70 | } 71 | } 72 | 73 | - (void)didReceiveMemoryWarning { 74 | [super didReceiveMemoryWarning]; 75 | // Dispose of any resources that can be recreated. 76 | } 77 | 78 | - (void)initViews { 79 | 80 | CGFloat bottomMargin = FIT_CGFloat(30, 45, 45); 81 | CGFloat buttonHeight = FIT_CGFloat(50, 60, 60); 82 | UIButton *customButton = [UIButton buttonWithType:UIButtonTypeCustom]; 83 | customButton.frame = CGRectMake(15, self.view.bounds.size.height-bottomMargin-buttonHeight-49, 84 | self.view.bounds.size.width-30, 85 | buttonHeight); 86 | customButton.clipsToBounds = YES; 87 | customButton.layer.cornerRadius = buttonHeight/2; 88 | customButton.layer.borderColor = RED_COLOR.CGColor; 89 | customButton.layer.borderWidth = 0.5; 90 | customButton.titleLabel.font = FONT_LIGHT(16); 91 | customButton.titleEdgeInsets = UIEdgeInsetsMake(-buttonHeight/2+8, 0, 0, 0); 92 | [customButton setTitle:@"最优化您的银行理财收益" forState:UIControlStateNormal]; 93 | [customButton setTitleColor:[Tools colorWithHexString:@"#FF6060"] forState:UIControlStateNormal]; 94 | [customButton setTitleColor:[Tools colorWithHexString:@"#FF6060" alpha:0.5] forState:UIControlStateHighlighted]; 95 | [customButton addTarget:self action:@selector(customButtonPressed:) forControlEvents:UIControlEventTouchUpInside]; 96 | [self.view addSubview:customButton]; 97 | 98 | NSAttributedString *attributedString =[[NSAttributedString alloc] initWithString:@"最优化您的银行理财收益" attributes:@{NSForegroundColorAttributeName : RED_COLOR,NSKernAttributeName : @(4.f)}]; 99 | [customButton setAttributedTitle:attributedString forState:UIControlStateNormal]; 100 | 101 | UILabel *tipLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, buttonHeight/2+2, customButton.bounds.size.width, 20)]; 102 | tipLabel.font = FONT_LIGHT(12); 103 | tipLabel.textAlignment = NSTextAlignmentCenter; 104 | tipLabel.textColor = MIDDLE_GRAY_COLOR; 105 | tipLabel.text = @"点击开启定制之旅"; 106 | [customButton addSubview:tipLabel]; 107 | //设置字间距 108 | attributedString =[[NSAttributedString alloc] initWithString:@"点击开启定制之旅" attributes:@{NSForegroundColorAttributeName : MIDDLE_GRAY_COLOR,NSKernAttributeName : @(4.f)}]; 109 | 110 | [tipLabel setAttributedText:attributedString]; 111 | 112 | CGFloat centerY = 64+(SCREEN_SIZE.height-64-49-buttonHeight-bottomMargin)/2; 113 | 114 | CGFloat d1 = FIT_CGFloat(150, 190, 210); 115 | UIView *centerView = [[UIView alloc] initWithFrame:CGRectMake((self.view.bounds.size.width-d1)/2, 116 | centerY-d1/2, d1, d1)]; 117 | centerView.clipsToBounds = NO; 118 | centerView.layer.cornerRadius = d1/2; 119 | centerView.backgroundColor = [UIColor whiteColor]; 120 | centerView.layer.shadowColor = COLOR_RGBA(0, 0, 0, 0.3).CGColor; 121 | centerView.layer.shadowOffset = CGSizeMake(0, 4); 122 | centerView.layer.shadowRadius = 5; 123 | centerView.layer.shadowOpacity = 1; 124 | // [centerView.layer setMasksToBounds:YES]; 125 | 126 | UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleTap:)]; 127 | tapGesture.numberOfTapsRequired = 1; 128 | [centerView addGestureRecognizer:tapGesture]; 129 | centerView.userInteractionEnabled = YES; 130 | 131 | [self.view addSubview:centerView]; 132 | 133 | // 134 | FYWaveView *waveView = [[FYWaveView alloc] initWithRadius:d1/2 color:[Tools colorWithHexString:@"#4CBED4" alpha:0.65]]; 135 | waveView.center = centerView.center; 136 | [self.view insertSubview:waveView belowSubview:centerView]; 137 | 138 | waveView = [[FYWaveView alloc] initWithRadius:d1/2 color:[Tools colorWithHexString:@"#4CBED4" alpha:0.2]]; 139 | waveView.center = centerView.center; 140 | [self.view insertSubview:waveView belowSubview:centerView]; 141 | 142 | waveView = [[FYWaveView alloc] initWithRadius:d1/2 color:[Tools colorWithHexString:@"#4CBED4" alpha:0.5]]; 143 | waveView.center = centerView.center; 144 | [self.view insertSubview:waveView belowSubview:centerView]; 145 | 146 | waveView = [[FYWaveView alloc] initWithRadius:d1/2 color:[Tools colorWithHexString:@"#FF6060" alpha:0.1]]; 147 | waveView.center = centerView.center; 148 | [self.view insertSubview:waveView belowSubview:centerView]; 149 | 150 | waveView = [[FYWaveView alloc] initWithRadius:d1/2 color:[Tools colorWithHexString:@"#FF6060" alpha:0.33]]; 151 | waveView.center = centerView.center; 152 | [self.view insertSubview:waveView belowSubview:centerView]; 153 | 154 | waveView = [[FYWaveView alloc] initWithRadius:d1/2 color:[Tools colorWithHexString:@"#FF6060" alpha:1.0]]; 155 | waveView.center = centerView.center; 156 | [self.view insertSubview:waveView belowSubview:centerView]; 157 | 158 | 159 | waveView = [[FYWaveView alloc] initWithRadius:d1/2 color:[Tools colorWithHexString:@"#FF9600" alpha:0.2]]; 160 | waveView.center = centerView.center; 161 | 162 | [self.view insertSubview:waveView belowSubview:centerView]; 163 | 164 | waveView = [[FYWaveView alloc] initWithRadius:d1/2 color:[Tools colorWithHexString:@"#FF9600" alpha:0.7]]; 165 | waveView.center = centerView.center; 166 | [self.view insertSubview:waveView belowSubview:centerView]; 167 | 168 | 169 | UILabel *userCountLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, centerView.bounds.size.height/2-30, centerView.bounds.size.width, 30)]; 170 | userCountLabel.textAlignment = NSTextAlignmentCenter; 171 | userCountLabel.font = FONT_REGULAR(27); 172 | userCountLabel.textColor = RED_COLOR; 173 | userCountLabel.adjustsFontSizeToFitWidth = YES; 174 | NSNumberFormatter *formatter = [NSNumberFormatter new]; 175 | formatter.numberStyle = kCFNumberFormatterDecimalStyle; 176 | userCountLabel.text = [formatter stringFromNumber:@(1234567)]; 177 | 178 | [centerView addSubview:userCountLabel]; 179 | 180 | UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, centerView.bounds.size.height/2+10, centerView.bounds.size.width, 25)]; 181 | label.textAlignment = NSTextAlignmentCenter; 182 | label.font = FONT_LIGHT(14); 183 | label.textColor = COLOR_RGB(170, 170, 170); 184 | label.text = @"用户正在体验中"; 185 | [centerView addSubview:label]; 186 | 187 | 188 | 189 | UIView *view = [[UIView alloc] initWithFrame:CGRectMake(CGRectGetMinX(centerView.frame)-26, CGRectGetMaxY(centerView.frame), 26, 26)]; 190 | view.clipsToBounds = YES; 191 | view.layer.cornerRadius = 13; 192 | view.backgroundColor = [Tools colorWithHexString:@"#4CBED4"]; 193 | [self.view addSubview:view]; 194 | 195 | 196 | CGFloat d2 = FIT_CGFloat(70, 86, 96); 197 | UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; 198 | button.frame = CGRectMake(CGRectGetMinX(centerView.frame)-d2/2, CGRectGetMinY(centerView.frame)-d2-10, d2, d2); 199 | button.clipsToBounds = YES; 200 | button.layer.cornerRadius = d2/2; 201 | [button setBackgroundImage:[UIImage imageWithColor:[Tools colorWithHexString:@"#FACD50"]] forState:UIControlStateNormal]; 202 | button.titleLabel.numberOfLines = 2; 203 | button.titleLabel.font = FIT_FONT_REGULAR(15, 16, 16); 204 | [button setTitle:@"随便\n逛逛" forState:UIControlStateNormal]; 205 | [button addTarget:self action:@selector(lookAroundButtonPressed:) forControlEvents:UIControlEventTouchUpInside]; 206 | [self.view addSubview:button]; 207 | 208 | waveView = [[FYWaveView alloc] initWithRadius:d2/2 color:[Tools colorWithHexString:@"#FACD50" alpha:0.4] adjustSize:NO]; 209 | waveView.center = button.center; 210 | [self.view insertSubview:waveView belowSubview:button]; 211 | 212 | 213 | view = [[UIView alloc] initWithFrame:CGRectMake(CGRectGetMaxX(button.frame)+10, CGRectGetMaxY(button.frame)-5-16, 16, 16)]; 214 | view.clipsToBounds = YES; 215 | view.layer.cornerRadius = 8; 216 | view.backgroundColor = [Tools colorWithHexString:@"#FBEBBE"]; 217 | [self.view addSubview:view]; 218 | 219 | CGFloat d3 = FIT_CGFloat(74, 80, 90); 220 | button = [UIButton buttonWithType:UIButtonTypeCustom]; 221 | button.frame = CGRectMake(CGRectGetMaxX(centerView.frame)-20, CGRectGetMaxY(centerView.frame)-10, d3, d3); 222 | button.clipsToBounds = YES; 223 | button.layer.cornerRadius = d3/2; 224 | [button setBackgroundImage:[UIImage imageWithColor:[Tools colorWithHexString:@"#6980A2"]] forState:UIControlStateNormal]; 225 | button.titleLabel.numberOfLines = 2; 226 | button.titleLabel.textAlignment = NSTextAlignmentCenter; 227 | button.titleLabel.font = FONT_LIGHT(13); 228 | [button setTitle:@"理财精选\n推荐" forState:UIControlStateNormal]; 229 | [button addTarget:self action:@selector(recommendButtonPressed:) forControlEvents:UIControlEventTouchUpInside]; 230 | [self.view addSubview:button]; 231 | 232 | waveView = [[FYWaveView alloc] initWithRadius:d3/2 color:[Tools colorWithHexString:@"#6980A2" alpha:0.4] adjustSize:NO]; 233 | waveView.center = button.center; 234 | [self.view insertSubview:waveView belowSubview:button]; 235 | 236 | 237 | CGFloat d4 = FIT_CGFloat(54, 60, 70); 238 | button = [UIButton buttonWithType:UIButtonTypeCustom]; 239 | button.frame = CGRectMake(CGRectGetMinX(centerView.frame)-d4, CGRectGetMinY(centerView.frame)-d4/2+5, d4, d4); 240 | button.clipsToBounds = YES; 241 | button.layer.cornerRadius = d4/2; 242 | [button setBackgroundColor:COLOR_RGBA(76, 190, 212, .8f)]; 243 | button.titleLabel.numberOfLines = 2; 244 | button.titleLabel.font = FONT_LIGHT(13); 245 | [button setTitle:@"猜你\n喜欢" forState:UIControlStateNormal]; 246 | [button addTarget:self action:@selector(guessYouLikeButtonPressed:) forControlEvents:UIControlEventTouchUpInside]; 247 | [self.view addSubview:button]; 248 | 249 | waveView = [[FYWaveView alloc] initWithRadius:d4/2 color:[Tools colorWithHexString:@"#4CBED4" alpha:0.4] adjustSize:NO]; 250 | waveView.center = button.center; 251 | [self.view insertSubview:waveView belowSubview:button]; 252 | } 253 | 254 | - (void)handleTap:(UITapGestureRecognizer *)gesture { 255 | if (gesture.state == UIGestureRecognizerStateRecognized) { 256 | [self customButtonPressed:nil]; 257 | } 258 | } 259 | 260 | // 定制理财 261 | - (void)customButtonPressed:(id)sender { 262 | 263 | 264 | } 265 | 266 | // 随便看看 267 | - (void)lookAroundButtonPressed:(id)sender { 268 | 269 | } 270 | 271 | // 理财精选推荐 272 | - (void)recommendButtonPressed:(id)sender { 273 | 274 | } 275 | 276 | //猜你喜欢 277 | -(void)guessYouLikeButtonPressed:(id)sender { 278 | 279 | } 280 | 281 | 282 | 283 | @end 284 | -------------------------------------------------------------------------------- /FYWaveView/FYWaveView.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | A11975201DDD4A5C006118C2 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = A119751F1DDD4A5C006118C2 /* main.m */; }; 11 | A11975231DDD4A5C006118C2 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = A11975221DDD4A5C006118C2 /* AppDelegate.m */; }; 12 | A11975261DDD4A5C006118C2 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A11975251DDD4A5C006118C2 /* ViewController.m */; }; 13 | A11975291DDD4A5C006118C2 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A11975271DDD4A5C006118C2 /* Main.storyboard */; }; 14 | A119752B1DDD4A5C006118C2 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A119752A1DDD4A5C006118C2 /* Assets.xcassets */; }; 15 | A119752E1DDD4A5C006118C2 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A119752C1DDD4A5C006118C2 /* LaunchScreen.storyboard */; }; 16 | A11975391DDD4A5C006118C2 /* FYWaveViewTests.m in Sources */ = {isa = PBXBuildFile; fileRef = A11975381DDD4A5C006118C2 /* FYWaveViewTests.m */; }; 17 | A11975441DDD4A5C006118C2 /* FYWaveViewUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = A11975431DDD4A5C006118C2 /* FYWaveViewUITests.m */; }; 18 | A11975531DDD4A66006118C2 /* FYWaveView.m in Sources */ = {isa = PBXBuildFile; fileRef = A11975521DDD4A66006118C2 /* FYWaveView.m */; }; 19 | A11975561DDD4B38006118C2 /* Tools.m in Sources */ = {isa = PBXBuildFile; fileRef = A11975551DDD4B38006118C2 /* Tools.m */; }; 20 | A11975591DDD4DAA006118C2 /* UIImage+Color.m in Sources */ = {isa = PBXBuildFile; fileRef = A11975581DDD4DAA006118C2 /* UIImage+Color.m */; }; 21 | /* End PBXBuildFile section */ 22 | 23 | /* Begin PBXContainerItemProxy section */ 24 | A11975351DDD4A5C006118C2 /* PBXContainerItemProxy */ = { 25 | isa = PBXContainerItemProxy; 26 | containerPortal = A11975131DDD4A5C006118C2 /* Project object */; 27 | proxyType = 1; 28 | remoteGlobalIDString = A119751A1DDD4A5C006118C2; 29 | remoteInfo = FYWaveView; 30 | }; 31 | A11975401DDD4A5C006118C2 /* PBXContainerItemProxy */ = { 32 | isa = PBXContainerItemProxy; 33 | containerPortal = A11975131DDD4A5C006118C2 /* Project object */; 34 | proxyType = 1; 35 | remoteGlobalIDString = A119751A1DDD4A5C006118C2; 36 | remoteInfo = FYWaveView; 37 | }; 38 | /* End PBXContainerItemProxy section */ 39 | 40 | /* Begin PBXFileReference section */ 41 | A119751B1DDD4A5C006118C2 /* FYWaveView.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = FYWaveView.app; sourceTree = BUILT_PRODUCTS_DIR; }; 42 | A119751F1DDD4A5C006118C2 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 43 | A11975211DDD4A5C006118C2 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 44 | A11975221DDD4A5C006118C2 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 45 | A11975241DDD4A5C006118C2 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 46 | A11975251DDD4A5C006118C2 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 47 | A11975281DDD4A5C006118C2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 48 | A119752A1DDD4A5C006118C2 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 49 | A119752D1DDD4A5C006118C2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 50 | A119752F1DDD4A5C006118C2 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 51 | A11975341DDD4A5C006118C2 /* FYWaveViewTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = FYWaveViewTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | A11975381DDD4A5C006118C2 /* FYWaveViewTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FYWaveViewTests.m; sourceTree = ""; }; 53 | A119753A1DDD4A5C006118C2 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 54 | A119753F1DDD4A5C006118C2 /* FYWaveViewUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = FYWaveViewUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 55 | A11975431DDD4A5C006118C2 /* FYWaveViewUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FYWaveViewUITests.m; sourceTree = ""; }; 56 | A11975451DDD4A5C006118C2 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 57 | A11975511DDD4A66006118C2 /* FYWaveView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FYWaveView.h; sourceTree = ""; }; 58 | A11975521DDD4A66006118C2 /* FYWaveView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FYWaveView.m; sourceTree = ""; }; 59 | A11975541DDD4B38006118C2 /* Tools.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Tools.h; sourceTree = ""; }; 60 | A11975551DDD4B38006118C2 /* Tools.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Tools.m; sourceTree = ""; }; 61 | A11975571DDD4DAA006118C2 /* UIImage+Color.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIImage+Color.h"; sourceTree = ""; }; 62 | A11975581DDD4DAA006118C2 /* UIImage+Color.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIImage+Color.m"; sourceTree = ""; }; 63 | /* End PBXFileReference section */ 64 | 65 | /* Begin PBXFrameworksBuildPhase section */ 66 | A11975181DDD4A5C006118C2 /* Frameworks */ = { 67 | isa = PBXFrameworksBuildPhase; 68 | buildActionMask = 2147483647; 69 | files = ( 70 | ); 71 | runOnlyForDeploymentPostprocessing = 0; 72 | }; 73 | A11975311DDD4A5C006118C2 /* Frameworks */ = { 74 | isa = PBXFrameworksBuildPhase; 75 | buildActionMask = 2147483647; 76 | files = ( 77 | ); 78 | runOnlyForDeploymentPostprocessing = 0; 79 | }; 80 | A119753C1DDD4A5C006118C2 /* Frameworks */ = { 81 | isa = PBXFrameworksBuildPhase; 82 | buildActionMask = 2147483647; 83 | files = ( 84 | ); 85 | runOnlyForDeploymentPostprocessing = 0; 86 | }; 87 | /* End PBXFrameworksBuildPhase section */ 88 | 89 | /* Begin PBXGroup section */ 90 | A11975121DDD4A5C006118C2 = { 91 | isa = PBXGroup; 92 | children = ( 93 | A119751D1DDD4A5C006118C2 /* FYWaveView */, 94 | A11975371DDD4A5C006118C2 /* FYWaveViewTests */, 95 | A11975421DDD4A5C006118C2 /* FYWaveViewUITests */, 96 | A119751C1DDD4A5C006118C2 /* Products */, 97 | ); 98 | sourceTree = ""; 99 | }; 100 | A119751C1DDD4A5C006118C2 /* Products */ = { 101 | isa = PBXGroup; 102 | children = ( 103 | A119751B1DDD4A5C006118C2 /* FYWaveView.app */, 104 | A11975341DDD4A5C006118C2 /* FYWaveViewTests.xctest */, 105 | A119753F1DDD4A5C006118C2 /* FYWaveViewUITests.xctest */, 106 | ); 107 | name = Products; 108 | sourceTree = ""; 109 | }; 110 | A119751D1DDD4A5C006118C2 /* FYWaveView */ = { 111 | isa = PBXGroup; 112 | children = ( 113 | A11975571DDD4DAA006118C2 /* UIImage+Color.h */, 114 | A11975581DDD4DAA006118C2 /* UIImage+Color.m */, 115 | A11975541DDD4B38006118C2 /* Tools.h */, 116 | A11975551DDD4B38006118C2 /* Tools.m */, 117 | A11975511DDD4A66006118C2 /* FYWaveView.h */, 118 | A11975521DDD4A66006118C2 /* FYWaveView.m */, 119 | A11975211DDD4A5C006118C2 /* AppDelegate.h */, 120 | A11975221DDD4A5C006118C2 /* AppDelegate.m */, 121 | A11975241DDD4A5C006118C2 /* ViewController.h */, 122 | A11975251DDD4A5C006118C2 /* ViewController.m */, 123 | A11975271DDD4A5C006118C2 /* Main.storyboard */, 124 | A119752A1DDD4A5C006118C2 /* Assets.xcassets */, 125 | A119752C1DDD4A5C006118C2 /* LaunchScreen.storyboard */, 126 | A119752F1DDD4A5C006118C2 /* Info.plist */, 127 | A119751E1DDD4A5C006118C2 /* Supporting Files */, 128 | ); 129 | path = FYWaveView; 130 | sourceTree = ""; 131 | }; 132 | A119751E1DDD4A5C006118C2 /* Supporting Files */ = { 133 | isa = PBXGroup; 134 | children = ( 135 | A119751F1DDD4A5C006118C2 /* main.m */, 136 | ); 137 | name = "Supporting Files"; 138 | sourceTree = ""; 139 | }; 140 | A11975371DDD4A5C006118C2 /* FYWaveViewTests */ = { 141 | isa = PBXGroup; 142 | children = ( 143 | A11975381DDD4A5C006118C2 /* FYWaveViewTests.m */, 144 | A119753A1DDD4A5C006118C2 /* Info.plist */, 145 | ); 146 | path = FYWaveViewTests; 147 | sourceTree = ""; 148 | }; 149 | A11975421DDD4A5C006118C2 /* FYWaveViewUITests */ = { 150 | isa = PBXGroup; 151 | children = ( 152 | A11975431DDD4A5C006118C2 /* FYWaveViewUITests.m */, 153 | A11975451DDD4A5C006118C2 /* Info.plist */, 154 | ); 155 | path = FYWaveViewUITests; 156 | sourceTree = ""; 157 | }; 158 | /* End PBXGroup section */ 159 | 160 | /* Begin PBXNativeTarget section */ 161 | A119751A1DDD4A5C006118C2 /* FYWaveView */ = { 162 | isa = PBXNativeTarget; 163 | buildConfigurationList = A11975481DDD4A5C006118C2 /* Build configuration list for PBXNativeTarget "FYWaveView" */; 164 | buildPhases = ( 165 | A11975171DDD4A5C006118C2 /* Sources */, 166 | A11975181DDD4A5C006118C2 /* Frameworks */, 167 | A11975191DDD4A5C006118C2 /* Resources */, 168 | ); 169 | buildRules = ( 170 | ); 171 | dependencies = ( 172 | ); 173 | name = FYWaveView; 174 | productName = FYWaveView; 175 | productReference = A119751B1DDD4A5C006118C2 /* FYWaveView.app */; 176 | productType = "com.apple.product-type.application"; 177 | }; 178 | A11975331DDD4A5C006118C2 /* FYWaveViewTests */ = { 179 | isa = PBXNativeTarget; 180 | buildConfigurationList = A119754B1DDD4A5C006118C2 /* Build configuration list for PBXNativeTarget "FYWaveViewTests" */; 181 | buildPhases = ( 182 | A11975301DDD4A5C006118C2 /* Sources */, 183 | A11975311DDD4A5C006118C2 /* Frameworks */, 184 | A11975321DDD4A5C006118C2 /* Resources */, 185 | ); 186 | buildRules = ( 187 | ); 188 | dependencies = ( 189 | A11975361DDD4A5C006118C2 /* PBXTargetDependency */, 190 | ); 191 | name = FYWaveViewTests; 192 | productName = FYWaveViewTests; 193 | productReference = A11975341DDD4A5C006118C2 /* FYWaveViewTests.xctest */; 194 | productType = "com.apple.product-type.bundle.unit-test"; 195 | }; 196 | A119753E1DDD4A5C006118C2 /* FYWaveViewUITests */ = { 197 | isa = PBXNativeTarget; 198 | buildConfigurationList = A119754E1DDD4A5C006118C2 /* Build configuration list for PBXNativeTarget "FYWaveViewUITests" */; 199 | buildPhases = ( 200 | A119753B1DDD4A5C006118C2 /* Sources */, 201 | A119753C1DDD4A5C006118C2 /* Frameworks */, 202 | A119753D1DDD4A5C006118C2 /* Resources */, 203 | ); 204 | buildRules = ( 205 | ); 206 | dependencies = ( 207 | A11975411DDD4A5C006118C2 /* PBXTargetDependency */, 208 | ); 209 | name = FYWaveViewUITests; 210 | productName = FYWaveViewUITests; 211 | productReference = A119753F1DDD4A5C006118C2 /* FYWaveViewUITests.xctest */; 212 | productType = "com.apple.product-type.bundle.ui-testing"; 213 | }; 214 | /* End PBXNativeTarget section */ 215 | 216 | /* Begin PBXProject section */ 217 | A11975131DDD4A5C006118C2 /* Project object */ = { 218 | isa = PBXProject; 219 | attributes = { 220 | LastUpgradeCheck = 0800; 221 | ORGANIZATIONNAME = Andy; 222 | TargetAttributes = { 223 | A119751A1DDD4A5C006118C2 = { 224 | CreatedOnToolsVersion = 8.0; 225 | DevelopmentTeam = 8VZFY5J7D9; 226 | ProvisioningStyle = Automatic; 227 | }; 228 | A11975331DDD4A5C006118C2 = { 229 | CreatedOnToolsVersion = 8.0; 230 | DevelopmentTeam = 8VZFY5J7D9; 231 | ProvisioningStyle = Automatic; 232 | TestTargetID = A119751A1DDD4A5C006118C2; 233 | }; 234 | A119753E1DDD4A5C006118C2 = { 235 | CreatedOnToolsVersion = 8.0; 236 | DevelopmentTeam = 8VZFY5J7D9; 237 | ProvisioningStyle = Automatic; 238 | TestTargetID = A119751A1DDD4A5C006118C2; 239 | }; 240 | }; 241 | }; 242 | buildConfigurationList = A11975161DDD4A5C006118C2 /* Build configuration list for PBXProject "FYWaveView" */; 243 | compatibilityVersion = "Xcode 3.2"; 244 | developmentRegion = English; 245 | hasScannedForEncodings = 0; 246 | knownRegions = ( 247 | en, 248 | Base, 249 | ); 250 | mainGroup = A11975121DDD4A5C006118C2; 251 | productRefGroup = A119751C1DDD4A5C006118C2 /* Products */; 252 | projectDirPath = ""; 253 | projectRoot = ""; 254 | targets = ( 255 | A119751A1DDD4A5C006118C2 /* FYWaveView */, 256 | A11975331DDD4A5C006118C2 /* FYWaveViewTests */, 257 | A119753E1DDD4A5C006118C2 /* FYWaveViewUITests */, 258 | ); 259 | }; 260 | /* End PBXProject section */ 261 | 262 | /* Begin PBXResourcesBuildPhase section */ 263 | A11975191DDD4A5C006118C2 /* Resources */ = { 264 | isa = PBXResourcesBuildPhase; 265 | buildActionMask = 2147483647; 266 | files = ( 267 | A119752E1DDD4A5C006118C2 /* LaunchScreen.storyboard in Resources */, 268 | A119752B1DDD4A5C006118C2 /* Assets.xcassets in Resources */, 269 | A11975291DDD4A5C006118C2 /* Main.storyboard in Resources */, 270 | ); 271 | runOnlyForDeploymentPostprocessing = 0; 272 | }; 273 | A11975321DDD4A5C006118C2 /* Resources */ = { 274 | isa = PBXResourcesBuildPhase; 275 | buildActionMask = 2147483647; 276 | files = ( 277 | ); 278 | runOnlyForDeploymentPostprocessing = 0; 279 | }; 280 | A119753D1DDD4A5C006118C2 /* Resources */ = { 281 | isa = PBXResourcesBuildPhase; 282 | buildActionMask = 2147483647; 283 | files = ( 284 | ); 285 | runOnlyForDeploymentPostprocessing = 0; 286 | }; 287 | /* End PBXResourcesBuildPhase section */ 288 | 289 | /* Begin PBXSourcesBuildPhase section */ 290 | A11975171DDD4A5C006118C2 /* Sources */ = { 291 | isa = PBXSourcesBuildPhase; 292 | buildActionMask = 2147483647; 293 | files = ( 294 | A11975531DDD4A66006118C2 /* FYWaveView.m in Sources */, 295 | A11975561DDD4B38006118C2 /* Tools.m in Sources */, 296 | A11975261DDD4A5C006118C2 /* ViewController.m in Sources */, 297 | A11975591DDD4DAA006118C2 /* UIImage+Color.m in Sources */, 298 | A11975231DDD4A5C006118C2 /* AppDelegate.m in Sources */, 299 | A11975201DDD4A5C006118C2 /* main.m in Sources */, 300 | ); 301 | runOnlyForDeploymentPostprocessing = 0; 302 | }; 303 | A11975301DDD4A5C006118C2 /* Sources */ = { 304 | isa = PBXSourcesBuildPhase; 305 | buildActionMask = 2147483647; 306 | files = ( 307 | A11975391DDD4A5C006118C2 /* FYWaveViewTests.m in Sources */, 308 | ); 309 | runOnlyForDeploymentPostprocessing = 0; 310 | }; 311 | A119753B1DDD4A5C006118C2 /* Sources */ = { 312 | isa = PBXSourcesBuildPhase; 313 | buildActionMask = 2147483647; 314 | files = ( 315 | A11975441DDD4A5C006118C2 /* FYWaveViewUITests.m in Sources */, 316 | ); 317 | runOnlyForDeploymentPostprocessing = 0; 318 | }; 319 | /* End PBXSourcesBuildPhase section */ 320 | 321 | /* Begin PBXTargetDependency section */ 322 | A11975361DDD4A5C006118C2 /* PBXTargetDependency */ = { 323 | isa = PBXTargetDependency; 324 | target = A119751A1DDD4A5C006118C2 /* FYWaveView */; 325 | targetProxy = A11975351DDD4A5C006118C2 /* PBXContainerItemProxy */; 326 | }; 327 | A11975411DDD4A5C006118C2 /* PBXTargetDependency */ = { 328 | isa = PBXTargetDependency; 329 | target = A119751A1DDD4A5C006118C2 /* FYWaveView */; 330 | targetProxy = A11975401DDD4A5C006118C2 /* PBXContainerItemProxy */; 331 | }; 332 | /* End PBXTargetDependency section */ 333 | 334 | /* Begin PBXVariantGroup section */ 335 | A11975271DDD4A5C006118C2 /* Main.storyboard */ = { 336 | isa = PBXVariantGroup; 337 | children = ( 338 | A11975281DDD4A5C006118C2 /* Base */, 339 | ); 340 | name = Main.storyboard; 341 | sourceTree = ""; 342 | }; 343 | A119752C1DDD4A5C006118C2 /* LaunchScreen.storyboard */ = { 344 | isa = PBXVariantGroup; 345 | children = ( 346 | A119752D1DDD4A5C006118C2 /* Base */, 347 | ); 348 | name = LaunchScreen.storyboard; 349 | sourceTree = ""; 350 | }; 351 | /* End PBXVariantGroup section */ 352 | 353 | /* Begin XCBuildConfiguration section */ 354 | A11975461DDD4A5C006118C2 /* Debug */ = { 355 | isa = XCBuildConfiguration; 356 | buildSettings = { 357 | ALWAYS_SEARCH_USER_PATHS = NO; 358 | CLANG_ANALYZER_NONNULL = YES; 359 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 360 | CLANG_CXX_LIBRARY = "libc++"; 361 | CLANG_ENABLE_MODULES = YES; 362 | CLANG_ENABLE_OBJC_ARC = YES; 363 | CLANG_WARN_BOOL_CONVERSION = YES; 364 | CLANG_WARN_CONSTANT_CONVERSION = YES; 365 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 366 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 367 | CLANG_WARN_EMPTY_BODY = YES; 368 | CLANG_WARN_ENUM_CONVERSION = YES; 369 | CLANG_WARN_INFINITE_RECURSION = YES; 370 | CLANG_WARN_INT_CONVERSION = YES; 371 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 372 | CLANG_WARN_SUSPICIOUS_MOVES = YES; 373 | CLANG_WARN_UNREACHABLE_CODE = YES; 374 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 375 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 376 | COPY_PHASE_STRIP = NO; 377 | DEBUG_INFORMATION_FORMAT = dwarf; 378 | ENABLE_STRICT_OBJC_MSGSEND = YES; 379 | ENABLE_TESTABILITY = YES; 380 | GCC_C_LANGUAGE_STANDARD = gnu99; 381 | GCC_DYNAMIC_NO_PIC = NO; 382 | GCC_NO_COMMON_BLOCKS = YES; 383 | GCC_OPTIMIZATION_LEVEL = 0; 384 | GCC_PREPROCESSOR_DEFINITIONS = ( 385 | "DEBUG=1", 386 | "$(inherited)", 387 | ); 388 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 389 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 390 | GCC_WARN_UNDECLARED_SELECTOR = YES; 391 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 392 | GCC_WARN_UNUSED_FUNCTION = YES; 393 | GCC_WARN_UNUSED_VARIABLE = YES; 394 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 395 | MTL_ENABLE_DEBUG_INFO = YES; 396 | ONLY_ACTIVE_ARCH = YES; 397 | SDKROOT = iphoneos; 398 | }; 399 | name = Debug; 400 | }; 401 | A11975471DDD4A5C006118C2 /* Release */ = { 402 | isa = XCBuildConfiguration; 403 | buildSettings = { 404 | ALWAYS_SEARCH_USER_PATHS = NO; 405 | CLANG_ANALYZER_NONNULL = YES; 406 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 407 | CLANG_CXX_LIBRARY = "libc++"; 408 | CLANG_ENABLE_MODULES = YES; 409 | CLANG_ENABLE_OBJC_ARC = YES; 410 | CLANG_WARN_BOOL_CONVERSION = YES; 411 | CLANG_WARN_CONSTANT_CONVERSION = YES; 412 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 413 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 414 | CLANG_WARN_EMPTY_BODY = YES; 415 | CLANG_WARN_ENUM_CONVERSION = YES; 416 | CLANG_WARN_INFINITE_RECURSION = YES; 417 | CLANG_WARN_INT_CONVERSION = YES; 418 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 419 | CLANG_WARN_SUSPICIOUS_MOVES = YES; 420 | CLANG_WARN_UNREACHABLE_CODE = YES; 421 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 422 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 423 | COPY_PHASE_STRIP = NO; 424 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 425 | ENABLE_NS_ASSERTIONS = NO; 426 | ENABLE_STRICT_OBJC_MSGSEND = YES; 427 | GCC_C_LANGUAGE_STANDARD = gnu99; 428 | GCC_NO_COMMON_BLOCKS = YES; 429 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 430 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 431 | GCC_WARN_UNDECLARED_SELECTOR = YES; 432 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 433 | GCC_WARN_UNUSED_FUNCTION = YES; 434 | GCC_WARN_UNUSED_VARIABLE = YES; 435 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 436 | MTL_ENABLE_DEBUG_INFO = NO; 437 | SDKROOT = iphoneos; 438 | VALIDATE_PRODUCT = YES; 439 | }; 440 | name = Release; 441 | }; 442 | A11975491DDD4A5C006118C2 /* Debug */ = { 443 | isa = XCBuildConfiguration; 444 | buildSettings = { 445 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 446 | DEVELOPMENT_TEAM = 8VZFY5J7D9; 447 | INFOPLIST_FILE = FYWaveView/Info.plist; 448 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 449 | PRODUCT_BUNDLE_IDENTIFIER = com.andy.FYWaveView; 450 | PRODUCT_NAME = "$(TARGET_NAME)"; 451 | }; 452 | name = Debug; 453 | }; 454 | A119754A1DDD4A5C006118C2 /* Release */ = { 455 | isa = XCBuildConfiguration; 456 | buildSettings = { 457 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 458 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 459 | DEVELOPMENT_TEAM = 8VZFY5J7D9; 460 | INFOPLIST_FILE = FYWaveView/Info.plist; 461 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 462 | PRODUCT_BUNDLE_IDENTIFIER = com.andy.FYWaveView; 463 | PRODUCT_NAME = "$(TARGET_NAME)"; 464 | }; 465 | name = Release; 466 | }; 467 | A119754C1DDD4A5C006118C2 /* Debug */ = { 468 | isa = XCBuildConfiguration; 469 | buildSettings = { 470 | BUNDLE_LOADER = "$(TEST_HOST)"; 471 | DEVELOPMENT_TEAM = 8VZFY5J7D9; 472 | INFOPLIST_FILE = FYWaveViewTests/Info.plist; 473 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 474 | PRODUCT_BUNDLE_IDENTIFIER = com.andy.FYWaveViewTests; 475 | PRODUCT_NAME = "$(TARGET_NAME)"; 476 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/FYWaveView.app/FYWaveView"; 477 | }; 478 | name = Debug; 479 | }; 480 | A119754D1DDD4A5C006118C2 /* Release */ = { 481 | isa = XCBuildConfiguration; 482 | buildSettings = { 483 | BUNDLE_LOADER = "$(TEST_HOST)"; 484 | DEVELOPMENT_TEAM = 8VZFY5J7D9; 485 | INFOPLIST_FILE = FYWaveViewTests/Info.plist; 486 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 487 | PRODUCT_BUNDLE_IDENTIFIER = com.andy.FYWaveViewTests; 488 | PRODUCT_NAME = "$(TARGET_NAME)"; 489 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/FYWaveView.app/FYWaveView"; 490 | }; 491 | name = Release; 492 | }; 493 | A119754F1DDD4A5C006118C2 /* Debug */ = { 494 | isa = XCBuildConfiguration; 495 | buildSettings = { 496 | DEVELOPMENT_TEAM = 8VZFY5J7D9; 497 | INFOPLIST_FILE = FYWaveViewUITests/Info.plist; 498 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 499 | PRODUCT_BUNDLE_IDENTIFIER = com.andy.FYWaveViewUITests; 500 | PRODUCT_NAME = "$(TARGET_NAME)"; 501 | TEST_TARGET_NAME = FYWaveView; 502 | }; 503 | name = Debug; 504 | }; 505 | A11975501DDD4A5C006118C2 /* Release */ = { 506 | isa = XCBuildConfiguration; 507 | buildSettings = { 508 | DEVELOPMENT_TEAM = 8VZFY5J7D9; 509 | INFOPLIST_FILE = FYWaveViewUITests/Info.plist; 510 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 511 | PRODUCT_BUNDLE_IDENTIFIER = com.andy.FYWaveViewUITests; 512 | PRODUCT_NAME = "$(TARGET_NAME)"; 513 | TEST_TARGET_NAME = FYWaveView; 514 | }; 515 | name = Release; 516 | }; 517 | /* End XCBuildConfiguration section */ 518 | 519 | /* Begin XCConfigurationList section */ 520 | A11975161DDD4A5C006118C2 /* Build configuration list for PBXProject "FYWaveView" */ = { 521 | isa = XCConfigurationList; 522 | buildConfigurations = ( 523 | A11975461DDD4A5C006118C2 /* Debug */, 524 | A11975471DDD4A5C006118C2 /* Release */, 525 | ); 526 | defaultConfigurationIsVisible = 0; 527 | defaultConfigurationName = Release; 528 | }; 529 | A11975481DDD4A5C006118C2 /* Build configuration list for PBXNativeTarget "FYWaveView" */ = { 530 | isa = XCConfigurationList; 531 | buildConfigurations = ( 532 | A11975491DDD4A5C006118C2 /* Debug */, 533 | A119754A1DDD4A5C006118C2 /* Release */, 534 | ); 535 | defaultConfigurationIsVisible = 0; 536 | defaultConfigurationName = Release; 537 | }; 538 | A119754B1DDD4A5C006118C2 /* Build configuration list for PBXNativeTarget "FYWaveViewTests" */ = { 539 | isa = XCConfigurationList; 540 | buildConfigurations = ( 541 | A119754C1DDD4A5C006118C2 /* Debug */, 542 | A119754D1DDD4A5C006118C2 /* Release */, 543 | ); 544 | defaultConfigurationIsVisible = 0; 545 | defaultConfigurationName = Release; 546 | }; 547 | A119754E1DDD4A5C006118C2 /* Build configuration list for PBXNativeTarget "FYWaveViewUITests" */ = { 548 | isa = XCConfigurationList; 549 | buildConfigurations = ( 550 | A119754F1DDD4A5C006118C2 /* Debug */, 551 | A11975501DDD4A5C006118C2 /* Release */, 552 | ); 553 | defaultConfigurationIsVisible = 0; 554 | defaultConfigurationName = Release; 555 | }; 556 | /* End XCConfigurationList section */ 557 | }; 558 | rootObject = A11975131DDD4A5C006118C2 /* Project object */; 559 | } 560 | --------------------------------------------------------------------------------