├── RYCuteViewDemo
├── .DS_Store
├── RYCuteViewDemo.xcodeproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcuserdata
│ │ │ └── billionsfinance.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ ├── xcuserdata
│ │ └── billionsfinance.xcuserdatad
│ │ │ └── xcschemes
│ │ │ ├── xcschememanagement.plist
│ │ │ └── RYCuteViewDemo.xcscheme
│ └── project.pbxproj
├── RYCuteView
│ ├── RYCuteView.h
│ └── RYCuteView.m
├── RYCuteViewDemo
│ ├── ViewController.h
│ ├── AppDelegate.h
│ ├── main.m
│ ├── Assets.xcassets
│ │ └── AppIcon.appiconset
│ │ │ └── Contents.json
│ ├── ViewController.m
│ ├── Info.plist
│ ├── Base.lproj
│ │ ├── Main.storyboard
│ │ └── LaunchScreen.storyboard
│ └── AppDelegate.m
├── RYCuteViewDemoTests
│ ├── Info.plist
│ └── RYCuteViewDemoTests.m
└── RYCuteViewDemoUITests
│ ├── Info.plist
│ └── RYCuteViewDemoUITests.m
├── README.md
└── LICENSE
/RYCuteViewDemo/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Resory/RYCuteView/HEAD/RYCuteViewDemo/.DS_Store
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # RYCuteView
2 | #### 思路请查看[用UIBezierPath实现果冻效果](http://www.jianshu.com/p/21db20189c40)
3 |
--------------------------------------------------------------------------------
/RYCuteViewDemo/RYCuteViewDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/RYCuteViewDemo/RYCuteViewDemo.xcodeproj/project.xcworkspace/xcuserdata/billionsfinance.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Resory/RYCuteView/HEAD/RYCuteViewDemo/RYCuteViewDemo.xcodeproj/project.xcworkspace/xcuserdata/billionsfinance.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/RYCuteViewDemo/RYCuteView/RYCuteView.h:
--------------------------------------------------------------------------------
1 | //
2 | // shapeView.h
3 | // testUIBezierPath
4 | //
5 | // Created by billionsfinance-resory on 15/11/2.
6 | // Copyright © 2015年 Resory. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface RYCuteView : UIView
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/RYCuteViewDemo/RYCuteViewDemo/ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.h
3 | // RYCuteViewDemo
4 | //
5 | // Created by billionsfinance-resory on 15/11/5.
6 | // Copyright © 2015年 Resory. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController : UIViewController
12 |
13 |
14 | @end
15 |
16 |
--------------------------------------------------------------------------------
/RYCuteViewDemo/RYCuteViewDemo/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // RYCuteViewDemo
4 | //
5 | // Created by billionsfinance-resory on 15/11/5.
6 | // Copyright © 2015年 Resory. 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 |
--------------------------------------------------------------------------------
/RYCuteViewDemo/RYCuteViewDemo/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // RYCuteViewDemo
4 | //
5 | // Created by billionsfinance-resory on 15/11/5.
6 | // Copyright © 2015年 Resory. 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 |
--------------------------------------------------------------------------------
/RYCuteViewDemo/RYCuteViewDemo/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 | }
--------------------------------------------------------------------------------
/RYCuteViewDemo/RYCuteViewDemoTests/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 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/RYCuteViewDemo/RYCuteViewDemoUITests/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 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/RYCuteViewDemo/RYCuteViewDemo/ViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.m
3 | // RYCuteViewDemo
4 | //
5 | // Created by billionsfinance-resory on 15/11/5.
6 | // Copyright © 2015年 Resory. All rights reserved.
7 | //
8 |
9 | #import "ViewController.h"
10 | #import "RYCuteView.h"
11 |
12 | @interface ViewController ()
13 |
14 | @end
15 |
16 | @implementation ViewController
17 |
18 | - (void)viewDidLoad {
19 | [super viewDidLoad];
20 |
21 | RYCuteView *cuteView = [[RYCuteView alloc] initWithFrame:CGRectMake(0, 0, 320, 568)];
22 | cuteView.backgroundColor = [UIColor whiteColor];
23 | [self.view addSubview:cuteView];
24 |
25 | // Do any additional setup after loading the view, typically from a nib.
26 | }
27 |
28 | - (void)didReceiveMemoryWarning {
29 | [super didReceiveMemoryWarning];
30 | // Dispose of any resources that can be recreated.
31 | }
32 |
33 | @end
34 |
--------------------------------------------------------------------------------
/RYCuteViewDemo/RYCuteViewDemo.xcodeproj/xcuserdata/billionsfinance.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | RYCuteViewDemo.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 0332D2D81BEB29220051642D
16 |
17 | primary
18 |
19 |
20 | 0332D2F11BEB29230051642D
21 |
22 | primary
23 |
24 |
25 | 0332D2FC1BEB29230051642D
26 |
27 | primary
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/RYCuteViewDemo/RYCuteViewDemoTests/RYCuteViewDemoTests.m:
--------------------------------------------------------------------------------
1 | //
2 | // RYCuteViewDemoTests.m
3 | // RYCuteViewDemoTests
4 | //
5 | // Created by billionsfinance-resory on 15/11/5.
6 | // Copyright © 2015年 Resory. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface RYCuteViewDemoTests : XCTestCase
12 |
13 | @end
14 |
15 | @implementation RYCuteViewDemoTests
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 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 Resory
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/RYCuteViewDemo/RYCuteViewDemo/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 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/RYCuteViewDemo/RYCuteViewDemoUITests/RYCuteViewDemoUITests.m:
--------------------------------------------------------------------------------
1 | //
2 | // RYCuteViewDemoUITests.m
3 | // RYCuteViewDemoUITests
4 | //
5 | // Created by billionsfinance-resory on 15/11/5.
6 | // Copyright © 2015年 Resory. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface RYCuteViewDemoUITests : XCTestCase
12 |
13 | @end
14 |
15 | @implementation RYCuteViewDemoUITests
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 |
--------------------------------------------------------------------------------
/RYCuteViewDemo/RYCuteViewDemo/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 |
--------------------------------------------------------------------------------
/RYCuteViewDemo/RYCuteViewDemo/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 |
--------------------------------------------------------------------------------
/RYCuteViewDemo/RYCuteViewDemo/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // RYCuteViewDemo
4 | //
5 | // Created by billionsfinance-resory on 15/11/5.
6 | // Copyright © 2015年 Resory. 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 | - (void)applicationWillResignActive:(UIApplication *)application {
24 | // 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.
25 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
26 | }
27 |
28 | - (void)applicationDidEnterBackground:(UIApplication *)application {
29 | // 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.
30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
31 | }
32 |
33 | - (void)applicationWillEnterForeground:(UIApplication *)application {
34 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
35 | }
36 |
37 | - (void)applicationDidBecomeActive:(UIApplication *)application {
38 | // 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.
39 | }
40 |
41 | - (void)applicationWillTerminate:(UIApplication *)application {
42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
43 | }
44 |
45 | @end
46 |
--------------------------------------------------------------------------------
/RYCuteViewDemo/RYCuteViewDemo.xcodeproj/xcuserdata/billionsfinance.xcuserdatad/xcschemes/RYCuteViewDemo.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 |
86 |
87 |
93 |
95 |
101 |
102 |
103 |
104 |
106 |
107 |
110 |
111 |
112 |
--------------------------------------------------------------------------------
/RYCuteViewDemo/RYCuteView/RYCuteView.m:
--------------------------------------------------------------------------------
1 | //
2 | // shapeView.m
3 | // testUIBezierPath
4 | //
5 | // Created by billionsfinance-resory on 15/11/2.
6 | // Copyright © 2015年 Resory. All rights reserved.
7 | //
8 |
9 | #import "RYCuteView.h"
10 |
11 | #define SYS_DEVICE_WIDTH ([[UIScreen mainScreen] bounds].size.width) // 屏幕宽度
12 | #define SYS_DEVICE_HEIGHT ([[UIScreen mainScreen] bounds].size.height) // 屏幕长度
13 | #define MIN_HEIGHT 100 // 图形最小高度
14 |
15 | @interface RYCuteView ()
16 |
17 | @property (nonatomic, assign) CGFloat mHeight;
18 | @property (nonatomic, assign) CGFloat curveX; // r5点x坐标
19 | @property (nonatomic, assign) CGFloat curveY; // r5点y坐标
20 | @property (nonatomic, strong) UIView *curveView; // r5红点
21 | @property (nonatomic, strong) CAShapeLayer *shapeLayer;
22 | @property (nonatomic, strong) CADisplayLink *displayLink;
23 | @property (nonatomic, assign) BOOL isAnimating;
24 |
25 | @end
26 |
27 | @implementation RYCuteView
28 |
29 | static NSString *kX = @"curveX";
30 | static NSString *kY = @"curveY";
31 |
32 | - (instancetype)initWithFrame:(CGRect)frame
33 | {
34 | self = [super initWithFrame:frame];
35 |
36 | if(self)
37 | {
38 | [self addObserver:self forKeyPath:kX options:NSKeyValueObservingOptionNew context:nil];
39 | [self addObserver:self forKeyPath:kY options:NSKeyValueObservingOptionNew context:nil];
40 | [self configShapeLayer];
41 | [self configCurveView];
42 | [self configAction];
43 | }
44 |
45 | return self;
46 | }
47 |
48 | - (void)dealloc {
49 | [self removeObserver:self forKeyPath:kX];
50 | [self removeObserver:self forKeyPath:kY];
51 | }
52 |
53 | - (void)drawRect:(CGRect)rect
54 | {
55 |
56 | }
57 |
58 | -(void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context {
59 | if ([keyPath isEqualToString:kX] || [keyPath isEqualToString:kY]) {
60 | [self updateShapeLayerPath];
61 | }
62 | }
63 |
64 | #pragma mark -
65 | #pragma mark - Configuration
66 |
67 | - (void)configAction
68 | {
69 | _mHeight = 100; // 手势移动时相对高度
70 | _isAnimating = NO; // 是否处于动效状态
71 |
72 | // 手势
73 | UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(handlePanAction:)];
74 | self.userInteractionEnabled = YES;
75 | [self addGestureRecognizer:pan];
76 |
77 | // CADisplayLink默认每秒运行60次calculatePath是算出在运行期间_curveView的坐标,从而确定_shapeLayer的形状
78 | _displayLink = [CADisplayLink displayLinkWithTarget:self selector:@selector(calculatePath)];
79 | [_displayLink addToRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode];
80 | _displayLink.paused = YES;
81 | }
82 |
83 | - (void)configShapeLayer
84 | {
85 | _shapeLayer = [CAShapeLayer layer];
86 | _shapeLayer.fillColor = [UIColor colorWithRed:57/255.0 green:67/255.0 blue:89/255.0 alpha:1.0].CGColor;
87 | [self.layer addSublayer:_shapeLayer];
88 | }
89 |
90 | - (void)configCurveView
91 | {
92 | // _curveView就是r5点
93 | self.curveX = SYS_DEVICE_WIDTH/2.0; // r5点x坐标
94 | self.curveY = MIN_HEIGHT; // r5点y坐标
95 | _curveView = [[UIView alloc] initWithFrame:CGRectMake(_curveX, _curveY, 3, 3)];
96 | _curveView.backgroundColor = [UIColor redColor];
97 | [self addSubview:_curveView];
98 | }
99 |
100 | #pragma mark -
101 | #pragma mark - Action
102 |
103 | - (void)handlePanAction:(UIPanGestureRecognizer *)pan
104 | {
105 | if(!_isAnimating)
106 | {
107 | if(pan.state == UIGestureRecognizerStateChanged)
108 | {
109 | // 手势移动时,_shapeLayer跟着手势向下扩大区域
110 | CGPoint point = [pan translationInView:self];
111 |
112 | // 这部分代码使r5红点跟着手势走
113 | _mHeight = point.y*0.7 + MIN_HEIGHT;
114 | self.curveX = SYS_DEVICE_WIDTH/2.0 + point.x;
115 | self.curveY = _mHeight > MIN_HEIGHT ? _mHeight : MIN_HEIGHT;
116 | _curveView.frame = CGRectMake(_curveX,
117 | _curveY,
118 | _curveView.frame.size.width,
119 | _curveView.frame.size.height);
120 | }
121 | else if (pan.state == UIGestureRecognizerStateCancelled ||
122 | pan.state == UIGestureRecognizerStateEnded ||
123 | pan.state == UIGestureRecognizerStateFailed)
124 | {
125 | // 手势结束时,_shapeLayer返回原状并产生弹簧动效
126 | _isAnimating = YES;
127 | _displayLink.paused = NO; //开启displaylink,会执行方法calculatePath.
128 |
129 | // 弹簧动效
130 | [UIView animateWithDuration:1.0
131 | delay:0.0
132 | usingSpringWithDamping:0.5
133 | initialSpringVelocity:0
134 | options:UIViewAnimationOptionCurveEaseInOut
135 | animations:^{
136 |
137 | // 曲线点(r5点)是一个view.所以在block中有弹簧效果.然后根据他的动效路径,在calculatePath中计算弹性图形的形状
138 | _curveView.frame = CGRectMake(SYS_DEVICE_WIDTH/2.0, MIN_HEIGHT, 3, 3);
139 |
140 | } completion:^(BOOL finished) {
141 |
142 | if(finished)
143 | {
144 | _displayLink.paused = YES;
145 | _isAnimating = NO;
146 | }
147 |
148 | }];
149 | }
150 | }
151 | }
152 |
153 | - (void)updateShapeLayerPath
154 | {
155 | // 更新_shapeLayer形状
156 | UIBezierPath *tPath = [UIBezierPath bezierPath];
157 | [tPath moveToPoint:CGPointMake(0, 0)]; // r1点
158 | [tPath addLineToPoint:CGPointMake(SYS_DEVICE_WIDTH, 0)]; // r2点
159 | [tPath addLineToPoint:CGPointMake(SYS_DEVICE_WIDTH, MIN_HEIGHT)]; // r4点
160 | [tPath addQuadCurveToPoint:CGPointMake(0, MIN_HEIGHT)
161 | controlPoint:CGPointMake(_curveX, _curveY)]; // r3,r4,r5确定的一个弧线
162 | [tPath closePath];
163 | _shapeLayer.path = tPath.CGPath;
164 | }
165 |
166 |
167 | - (void)calculatePath
168 | {
169 | // 由于手势结束时,r5执行了一个UIView的弹簧动画,把这个过程的坐标记录下来,并相应的画出_shapeLayer形状
170 | CALayer *layer = _curveView.layer.presentationLayer;
171 | self.curveX = layer.position.x;
172 | self.curveY = layer.position.y;
173 | }
174 |
175 | @end
176 |
--------------------------------------------------------------------------------
/RYCuteViewDemo/RYCuteViewDemo.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 0332D2DE1BEB29220051642D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 0332D2DD1BEB29220051642D /* main.m */; };
11 | 0332D2E11BEB29220051642D /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 0332D2E01BEB29220051642D /* AppDelegate.m */; };
12 | 0332D2E41BEB29220051642D /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0332D2E31BEB29220051642D /* ViewController.m */; };
13 | 0332D2E71BEB29220051642D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0332D2E51BEB29220051642D /* Main.storyboard */; };
14 | 0332D2E91BEB29220051642D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0332D2E81BEB29220051642D /* Assets.xcassets */; };
15 | 0332D2EC1BEB29220051642D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0332D2EA1BEB29220051642D /* LaunchScreen.storyboard */; };
16 | 0332D2F71BEB29230051642D /* RYCuteViewDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 0332D2F61BEB29230051642D /* RYCuteViewDemoTests.m */; };
17 | 0332D3021BEB29230051642D /* RYCuteViewDemoUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 0332D3011BEB29230051642D /* RYCuteViewDemoUITests.m */; };
18 | 0332D3121BEB29560051642D /* RYCuteView.m in Sources */ = {isa = PBXBuildFile; fileRef = 0332D3111BEB29560051642D /* RYCuteView.m */; settings = {ASSET_TAGS = (); }; };
19 | /* End PBXBuildFile section */
20 |
21 | /* Begin PBXContainerItemProxy section */
22 | 0332D2F31BEB29230051642D /* PBXContainerItemProxy */ = {
23 | isa = PBXContainerItemProxy;
24 | containerPortal = 0332D2D11BEB29220051642D /* Project object */;
25 | proxyType = 1;
26 | remoteGlobalIDString = 0332D2D81BEB29220051642D;
27 | remoteInfo = RYCuteViewDemo;
28 | };
29 | 0332D2FE1BEB29230051642D /* PBXContainerItemProxy */ = {
30 | isa = PBXContainerItemProxy;
31 | containerPortal = 0332D2D11BEB29220051642D /* Project object */;
32 | proxyType = 1;
33 | remoteGlobalIDString = 0332D2D81BEB29220051642D;
34 | remoteInfo = RYCuteViewDemo;
35 | };
36 | /* End PBXContainerItemProxy section */
37 |
38 | /* Begin PBXFileReference section */
39 | 0332D2D91BEB29220051642D /* RYCuteViewDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RYCuteViewDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
40 | 0332D2DD1BEB29220051642D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
41 | 0332D2DF1BEB29220051642D /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
42 | 0332D2E01BEB29220051642D /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
43 | 0332D2E21BEB29220051642D /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; };
44 | 0332D2E31BEB29220051642D /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; };
45 | 0332D2E61BEB29220051642D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
46 | 0332D2E81BEB29220051642D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
47 | 0332D2EB1BEB29220051642D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
48 | 0332D2ED1BEB29220051642D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
49 | 0332D2F21BEB29230051642D /* RYCuteViewDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RYCuteViewDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
50 | 0332D2F61BEB29230051642D /* RYCuteViewDemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RYCuteViewDemoTests.m; sourceTree = ""; };
51 | 0332D2F81BEB29230051642D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
52 | 0332D2FD1BEB29230051642D /* RYCuteViewDemoUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RYCuteViewDemoUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
53 | 0332D3011BEB29230051642D /* RYCuteViewDemoUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RYCuteViewDemoUITests.m; sourceTree = ""; };
54 | 0332D3031BEB29230051642D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
55 | 0332D3101BEB29560051642D /* RYCuteView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RYCuteView.h; sourceTree = ""; };
56 | 0332D3111BEB29560051642D /* RYCuteView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RYCuteView.m; sourceTree = ""; };
57 | /* End PBXFileReference section */
58 |
59 | /* Begin PBXFrameworksBuildPhase section */
60 | 0332D2D61BEB29220051642D /* Frameworks */ = {
61 | isa = PBXFrameworksBuildPhase;
62 | buildActionMask = 2147483647;
63 | files = (
64 | );
65 | runOnlyForDeploymentPostprocessing = 0;
66 | };
67 | 0332D2EF1BEB29230051642D /* Frameworks */ = {
68 | isa = PBXFrameworksBuildPhase;
69 | buildActionMask = 2147483647;
70 | files = (
71 | );
72 | runOnlyForDeploymentPostprocessing = 0;
73 | };
74 | 0332D2FA1BEB29230051642D /* Frameworks */ = {
75 | isa = PBXFrameworksBuildPhase;
76 | buildActionMask = 2147483647;
77 | files = (
78 | );
79 | runOnlyForDeploymentPostprocessing = 0;
80 | };
81 | /* End PBXFrameworksBuildPhase section */
82 |
83 | /* Begin PBXGroup section */
84 | 0332D2D01BEB29220051642D = {
85 | isa = PBXGroup;
86 | children = (
87 | 0332D30F1BEB29560051642D /* RYCuteView */,
88 | 0332D2DB1BEB29220051642D /* RYCuteViewDemo */,
89 | 0332D2F51BEB29230051642D /* RYCuteViewDemoTests */,
90 | 0332D3001BEB29230051642D /* RYCuteViewDemoUITests */,
91 | 0332D2DA1BEB29220051642D /* Products */,
92 | );
93 | sourceTree = "";
94 | };
95 | 0332D2DA1BEB29220051642D /* Products */ = {
96 | isa = PBXGroup;
97 | children = (
98 | 0332D2D91BEB29220051642D /* RYCuteViewDemo.app */,
99 | 0332D2F21BEB29230051642D /* RYCuteViewDemoTests.xctest */,
100 | 0332D2FD1BEB29230051642D /* RYCuteViewDemoUITests.xctest */,
101 | );
102 | name = Products;
103 | sourceTree = "";
104 | };
105 | 0332D2DB1BEB29220051642D /* RYCuteViewDemo */ = {
106 | isa = PBXGroup;
107 | children = (
108 | 0332D2DF1BEB29220051642D /* AppDelegate.h */,
109 | 0332D2E01BEB29220051642D /* AppDelegate.m */,
110 | 0332D2E21BEB29220051642D /* ViewController.h */,
111 | 0332D2E31BEB29220051642D /* ViewController.m */,
112 | 0332D2E51BEB29220051642D /* Main.storyboard */,
113 | 0332D2E81BEB29220051642D /* Assets.xcassets */,
114 | 0332D2EA1BEB29220051642D /* LaunchScreen.storyboard */,
115 | 0332D2ED1BEB29220051642D /* Info.plist */,
116 | 0332D2DC1BEB29220051642D /* Supporting Files */,
117 | );
118 | path = RYCuteViewDemo;
119 | sourceTree = "";
120 | };
121 | 0332D2DC1BEB29220051642D /* Supporting Files */ = {
122 | isa = PBXGroup;
123 | children = (
124 | 0332D2DD1BEB29220051642D /* main.m */,
125 | );
126 | name = "Supporting Files";
127 | sourceTree = "";
128 | };
129 | 0332D2F51BEB29230051642D /* RYCuteViewDemoTests */ = {
130 | isa = PBXGroup;
131 | children = (
132 | 0332D2F61BEB29230051642D /* RYCuteViewDemoTests.m */,
133 | 0332D2F81BEB29230051642D /* Info.plist */,
134 | );
135 | path = RYCuteViewDemoTests;
136 | sourceTree = "";
137 | };
138 | 0332D3001BEB29230051642D /* RYCuteViewDemoUITests */ = {
139 | isa = PBXGroup;
140 | children = (
141 | 0332D3011BEB29230051642D /* RYCuteViewDemoUITests.m */,
142 | 0332D3031BEB29230051642D /* Info.plist */,
143 | );
144 | path = RYCuteViewDemoUITests;
145 | sourceTree = "";
146 | };
147 | 0332D30F1BEB29560051642D /* RYCuteView */ = {
148 | isa = PBXGroup;
149 | children = (
150 | 0332D3101BEB29560051642D /* RYCuteView.h */,
151 | 0332D3111BEB29560051642D /* RYCuteView.m */,
152 | );
153 | path = RYCuteView;
154 | sourceTree = "";
155 | };
156 | /* End PBXGroup section */
157 |
158 | /* Begin PBXNativeTarget section */
159 | 0332D2D81BEB29220051642D /* RYCuteViewDemo */ = {
160 | isa = PBXNativeTarget;
161 | buildConfigurationList = 0332D3061BEB29230051642D /* Build configuration list for PBXNativeTarget "RYCuteViewDemo" */;
162 | buildPhases = (
163 | 0332D2D51BEB29220051642D /* Sources */,
164 | 0332D2D61BEB29220051642D /* Frameworks */,
165 | 0332D2D71BEB29220051642D /* Resources */,
166 | );
167 | buildRules = (
168 | );
169 | dependencies = (
170 | );
171 | name = RYCuteViewDemo;
172 | productName = RYCuteViewDemo;
173 | productReference = 0332D2D91BEB29220051642D /* RYCuteViewDemo.app */;
174 | productType = "com.apple.product-type.application";
175 | };
176 | 0332D2F11BEB29230051642D /* RYCuteViewDemoTests */ = {
177 | isa = PBXNativeTarget;
178 | buildConfigurationList = 0332D3091BEB29230051642D /* Build configuration list for PBXNativeTarget "RYCuteViewDemoTests" */;
179 | buildPhases = (
180 | 0332D2EE1BEB29230051642D /* Sources */,
181 | 0332D2EF1BEB29230051642D /* Frameworks */,
182 | 0332D2F01BEB29230051642D /* Resources */,
183 | );
184 | buildRules = (
185 | );
186 | dependencies = (
187 | 0332D2F41BEB29230051642D /* PBXTargetDependency */,
188 | );
189 | name = RYCuteViewDemoTests;
190 | productName = RYCuteViewDemoTests;
191 | productReference = 0332D2F21BEB29230051642D /* RYCuteViewDemoTests.xctest */;
192 | productType = "com.apple.product-type.bundle.unit-test";
193 | };
194 | 0332D2FC1BEB29230051642D /* RYCuteViewDemoUITests */ = {
195 | isa = PBXNativeTarget;
196 | buildConfigurationList = 0332D30C1BEB29230051642D /* Build configuration list for PBXNativeTarget "RYCuteViewDemoUITests" */;
197 | buildPhases = (
198 | 0332D2F91BEB29230051642D /* Sources */,
199 | 0332D2FA1BEB29230051642D /* Frameworks */,
200 | 0332D2FB1BEB29230051642D /* Resources */,
201 | );
202 | buildRules = (
203 | );
204 | dependencies = (
205 | 0332D2FF1BEB29230051642D /* PBXTargetDependency */,
206 | );
207 | name = RYCuteViewDemoUITests;
208 | productName = RYCuteViewDemoUITests;
209 | productReference = 0332D2FD1BEB29230051642D /* RYCuteViewDemoUITests.xctest */;
210 | productType = "com.apple.product-type.bundle.ui-testing";
211 | };
212 | /* End PBXNativeTarget section */
213 |
214 | /* Begin PBXProject section */
215 | 0332D2D11BEB29220051642D /* Project object */ = {
216 | isa = PBXProject;
217 | attributes = {
218 | LastUpgradeCheck = 0700;
219 | ORGANIZATIONNAME = Resory;
220 | TargetAttributes = {
221 | 0332D2D81BEB29220051642D = {
222 | CreatedOnToolsVersion = 7.0.1;
223 | };
224 | 0332D2F11BEB29230051642D = {
225 | CreatedOnToolsVersion = 7.0.1;
226 | TestTargetID = 0332D2D81BEB29220051642D;
227 | };
228 | 0332D2FC1BEB29230051642D = {
229 | CreatedOnToolsVersion = 7.0.1;
230 | TestTargetID = 0332D2D81BEB29220051642D;
231 | };
232 | };
233 | };
234 | buildConfigurationList = 0332D2D41BEB29220051642D /* Build configuration list for PBXProject "RYCuteViewDemo" */;
235 | compatibilityVersion = "Xcode 3.2";
236 | developmentRegion = English;
237 | hasScannedForEncodings = 0;
238 | knownRegions = (
239 | en,
240 | Base,
241 | );
242 | mainGroup = 0332D2D01BEB29220051642D;
243 | productRefGroup = 0332D2DA1BEB29220051642D /* Products */;
244 | projectDirPath = "";
245 | projectRoot = "";
246 | targets = (
247 | 0332D2D81BEB29220051642D /* RYCuteViewDemo */,
248 | 0332D2F11BEB29230051642D /* RYCuteViewDemoTests */,
249 | 0332D2FC1BEB29230051642D /* RYCuteViewDemoUITests */,
250 | );
251 | };
252 | /* End PBXProject section */
253 |
254 | /* Begin PBXResourcesBuildPhase section */
255 | 0332D2D71BEB29220051642D /* Resources */ = {
256 | isa = PBXResourcesBuildPhase;
257 | buildActionMask = 2147483647;
258 | files = (
259 | 0332D2EC1BEB29220051642D /* LaunchScreen.storyboard in Resources */,
260 | 0332D2E91BEB29220051642D /* Assets.xcassets in Resources */,
261 | 0332D2E71BEB29220051642D /* Main.storyboard in Resources */,
262 | );
263 | runOnlyForDeploymentPostprocessing = 0;
264 | };
265 | 0332D2F01BEB29230051642D /* Resources */ = {
266 | isa = PBXResourcesBuildPhase;
267 | buildActionMask = 2147483647;
268 | files = (
269 | );
270 | runOnlyForDeploymentPostprocessing = 0;
271 | };
272 | 0332D2FB1BEB29230051642D /* Resources */ = {
273 | isa = PBXResourcesBuildPhase;
274 | buildActionMask = 2147483647;
275 | files = (
276 | );
277 | runOnlyForDeploymentPostprocessing = 0;
278 | };
279 | /* End PBXResourcesBuildPhase section */
280 |
281 | /* Begin PBXSourcesBuildPhase section */
282 | 0332D2D51BEB29220051642D /* Sources */ = {
283 | isa = PBXSourcesBuildPhase;
284 | buildActionMask = 2147483647;
285 | files = (
286 | 0332D2E41BEB29220051642D /* ViewController.m in Sources */,
287 | 0332D2E11BEB29220051642D /* AppDelegate.m in Sources */,
288 | 0332D3121BEB29560051642D /* RYCuteView.m in Sources */,
289 | 0332D2DE1BEB29220051642D /* main.m in Sources */,
290 | );
291 | runOnlyForDeploymentPostprocessing = 0;
292 | };
293 | 0332D2EE1BEB29230051642D /* Sources */ = {
294 | isa = PBXSourcesBuildPhase;
295 | buildActionMask = 2147483647;
296 | files = (
297 | 0332D2F71BEB29230051642D /* RYCuteViewDemoTests.m in Sources */,
298 | );
299 | runOnlyForDeploymentPostprocessing = 0;
300 | };
301 | 0332D2F91BEB29230051642D /* Sources */ = {
302 | isa = PBXSourcesBuildPhase;
303 | buildActionMask = 2147483647;
304 | files = (
305 | 0332D3021BEB29230051642D /* RYCuteViewDemoUITests.m in Sources */,
306 | );
307 | runOnlyForDeploymentPostprocessing = 0;
308 | };
309 | /* End PBXSourcesBuildPhase section */
310 |
311 | /* Begin PBXTargetDependency section */
312 | 0332D2F41BEB29230051642D /* PBXTargetDependency */ = {
313 | isa = PBXTargetDependency;
314 | target = 0332D2D81BEB29220051642D /* RYCuteViewDemo */;
315 | targetProxy = 0332D2F31BEB29230051642D /* PBXContainerItemProxy */;
316 | };
317 | 0332D2FF1BEB29230051642D /* PBXTargetDependency */ = {
318 | isa = PBXTargetDependency;
319 | target = 0332D2D81BEB29220051642D /* RYCuteViewDemo */;
320 | targetProxy = 0332D2FE1BEB29230051642D /* PBXContainerItemProxy */;
321 | };
322 | /* End PBXTargetDependency section */
323 |
324 | /* Begin PBXVariantGroup section */
325 | 0332D2E51BEB29220051642D /* Main.storyboard */ = {
326 | isa = PBXVariantGroup;
327 | children = (
328 | 0332D2E61BEB29220051642D /* Base */,
329 | );
330 | name = Main.storyboard;
331 | sourceTree = "";
332 | };
333 | 0332D2EA1BEB29220051642D /* LaunchScreen.storyboard */ = {
334 | isa = PBXVariantGroup;
335 | children = (
336 | 0332D2EB1BEB29220051642D /* Base */,
337 | );
338 | name = LaunchScreen.storyboard;
339 | sourceTree = "";
340 | };
341 | /* End PBXVariantGroup section */
342 |
343 | /* Begin XCBuildConfiguration section */
344 | 0332D3041BEB29230051642D /* Debug */ = {
345 | isa = XCBuildConfiguration;
346 | buildSettings = {
347 | ALWAYS_SEARCH_USER_PATHS = NO;
348 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
349 | CLANG_CXX_LIBRARY = "libc++";
350 | CLANG_ENABLE_MODULES = YES;
351 | CLANG_ENABLE_OBJC_ARC = YES;
352 | CLANG_WARN_BOOL_CONVERSION = YES;
353 | CLANG_WARN_CONSTANT_CONVERSION = YES;
354 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
355 | CLANG_WARN_EMPTY_BODY = YES;
356 | CLANG_WARN_ENUM_CONVERSION = YES;
357 | CLANG_WARN_INT_CONVERSION = YES;
358 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
359 | CLANG_WARN_UNREACHABLE_CODE = YES;
360 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
361 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
362 | COPY_PHASE_STRIP = NO;
363 | DEBUG_INFORMATION_FORMAT = dwarf;
364 | ENABLE_STRICT_OBJC_MSGSEND = YES;
365 | ENABLE_TESTABILITY = YES;
366 | GCC_C_LANGUAGE_STANDARD = gnu99;
367 | GCC_DYNAMIC_NO_PIC = NO;
368 | GCC_NO_COMMON_BLOCKS = YES;
369 | GCC_OPTIMIZATION_LEVEL = 0;
370 | GCC_PREPROCESSOR_DEFINITIONS = (
371 | "DEBUG=1",
372 | "$(inherited)",
373 | );
374 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
375 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
376 | GCC_WARN_UNDECLARED_SELECTOR = YES;
377 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
378 | GCC_WARN_UNUSED_FUNCTION = YES;
379 | GCC_WARN_UNUSED_VARIABLE = YES;
380 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
381 | MTL_ENABLE_DEBUG_INFO = YES;
382 | ONLY_ACTIVE_ARCH = YES;
383 | SDKROOT = iphoneos;
384 | };
385 | name = Debug;
386 | };
387 | 0332D3051BEB29230051642D /* Release */ = {
388 | isa = XCBuildConfiguration;
389 | buildSettings = {
390 | ALWAYS_SEARCH_USER_PATHS = NO;
391 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
392 | CLANG_CXX_LIBRARY = "libc++";
393 | CLANG_ENABLE_MODULES = YES;
394 | CLANG_ENABLE_OBJC_ARC = YES;
395 | CLANG_WARN_BOOL_CONVERSION = YES;
396 | CLANG_WARN_CONSTANT_CONVERSION = YES;
397 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
398 | CLANG_WARN_EMPTY_BODY = YES;
399 | CLANG_WARN_ENUM_CONVERSION = YES;
400 | CLANG_WARN_INT_CONVERSION = YES;
401 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
402 | CLANG_WARN_UNREACHABLE_CODE = YES;
403 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
404 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
405 | COPY_PHASE_STRIP = NO;
406 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
407 | ENABLE_NS_ASSERTIONS = NO;
408 | ENABLE_STRICT_OBJC_MSGSEND = YES;
409 | GCC_C_LANGUAGE_STANDARD = gnu99;
410 | GCC_NO_COMMON_BLOCKS = YES;
411 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
412 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
413 | GCC_WARN_UNDECLARED_SELECTOR = YES;
414 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
415 | GCC_WARN_UNUSED_FUNCTION = YES;
416 | GCC_WARN_UNUSED_VARIABLE = YES;
417 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
418 | MTL_ENABLE_DEBUG_INFO = NO;
419 | SDKROOT = iphoneos;
420 | VALIDATE_PRODUCT = YES;
421 | };
422 | name = Release;
423 | };
424 | 0332D3071BEB29230051642D /* Debug */ = {
425 | isa = XCBuildConfiguration;
426 | buildSettings = {
427 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
428 | INFOPLIST_FILE = RYCuteViewDemo/Info.plist;
429 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
430 | PRODUCT_BUNDLE_IDENTIFIER = com.resory.RYCuteViewDemo;
431 | PRODUCT_NAME = "$(TARGET_NAME)";
432 | };
433 | name = Debug;
434 | };
435 | 0332D3081BEB29230051642D /* Release */ = {
436 | isa = XCBuildConfiguration;
437 | buildSettings = {
438 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
439 | INFOPLIST_FILE = RYCuteViewDemo/Info.plist;
440 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
441 | PRODUCT_BUNDLE_IDENTIFIER = com.resory.RYCuteViewDemo;
442 | PRODUCT_NAME = "$(TARGET_NAME)";
443 | };
444 | name = Release;
445 | };
446 | 0332D30A1BEB29230051642D /* Debug */ = {
447 | isa = XCBuildConfiguration;
448 | buildSettings = {
449 | BUNDLE_LOADER = "$(TEST_HOST)";
450 | INFOPLIST_FILE = RYCuteViewDemoTests/Info.plist;
451 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
452 | PRODUCT_BUNDLE_IDENTIFIER = com.resory.RYCuteViewDemoTests;
453 | PRODUCT_NAME = "$(TARGET_NAME)";
454 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RYCuteViewDemo.app/RYCuteViewDemo";
455 | };
456 | name = Debug;
457 | };
458 | 0332D30B1BEB29230051642D /* Release */ = {
459 | isa = XCBuildConfiguration;
460 | buildSettings = {
461 | BUNDLE_LOADER = "$(TEST_HOST)";
462 | INFOPLIST_FILE = RYCuteViewDemoTests/Info.plist;
463 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
464 | PRODUCT_BUNDLE_IDENTIFIER = com.resory.RYCuteViewDemoTests;
465 | PRODUCT_NAME = "$(TARGET_NAME)";
466 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RYCuteViewDemo.app/RYCuteViewDemo";
467 | };
468 | name = Release;
469 | };
470 | 0332D30D1BEB29230051642D /* Debug */ = {
471 | isa = XCBuildConfiguration;
472 | buildSettings = {
473 | INFOPLIST_FILE = RYCuteViewDemoUITests/Info.plist;
474 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
475 | PRODUCT_BUNDLE_IDENTIFIER = com.resory.RYCuteViewDemoUITests;
476 | PRODUCT_NAME = "$(TARGET_NAME)";
477 | TEST_TARGET_NAME = RYCuteViewDemo;
478 | USES_XCTRUNNER = YES;
479 | };
480 | name = Debug;
481 | };
482 | 0332D30E1BEB29230051642D /* Release */ = {
483 | isa = XCBuildConfiguration;
484 | buildSettings = {
485 | INFOPLIST_FILE = RYCuteViewDemoUITests/Info.plist;
486 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
487 | PRODUCT_BUNDLE_IDENTIFIER = com.resory.RYCuteViewDemoUITests;
488 | PRODUCT_NAME = "$(TARGET_NAME)";
489 | TEST_TARGET_NAME = RYCuteViewDemo;
490 | USES_XCTRUNNER = YES;
491 | };
492 | name = Release;
493 | };
494 | /* End XCBuildConfiguration section */
495 |
496 | /* Begin XCConfigurationList section */
497 | 0332D2D41BEB29220051642D /* Build configuration list for PBXProject "RYCuteViewDemo" */ = {
498 | isa = XCConfigurationList;
499 | buildConfigurations = (
500 | 0332D3041BEB29230051642D /* Debug */,
501 | 0332D3051BEB29230051642D /* Release */,
502 | );
503 | defaultConfigurationIsVisible = 0;
504 | defaultConfigurationName = Release;
505 | };
506 | 0332D3061BEB29230051642D /* Build configuration list for PBXNativeTarget "RYCuteViewDemo" */ = {
507 | isa = XCConfigurationList;
508 | buildConfigurations = (
509 | 0332D3071BEB29230051642D /* Debug */,
510 | 0332D3081BEB29230051642D /* Release */,
511 | );
512 | defaultConfigurationIsVisible = 0;
513 | };
514 | 0332D3091BEB29230051642D /* Build configuration list for PBXNativeTarget "RYCuteViewDemoTests" */ = {
515 | isa = XCConfigurationList;
516 | buildConfigurations = (
517 | 0332D30A1BEB29230051642D /* Debug */,
518 | 0332D30B1BEB29230051642D /* Release */,
519 | );
520 | defaultConfigurationIsVisible = 0;
521 | };
522 | 0332D30C1BEB29230051642D /* Build configuration list for PBXNativeTarget "RYCuteViewDemoUITests" */ = {
523 | isa = XCConfigurationList;
524 | buildConfigurations = (
525 | 0332D30D1BEB29230051642D /* Debug */,
526 | 0332D30E1BEB29230051642D /* Release */,
527 | );
528 | defaultConfigurationIsVisible = 0;
529 | };
530 | /* End XCConfigurationList section */
531 | };
532 | rootObject = 0332D2D11BEB29220051642D /* Project object */;
533 | }
534 |
--------------------------------------------------------------------------------