├── loading.gif
├── LoadingViewAnimation
├── Resources
│ ├── loading_circle@2x.png
│ ├── loading_circle@3x.png
│ ├── loading_shadow@2x.png
│ ├── loading_shadow@3x.png
│ ├── loading_square@2x.png
│ ├── loading_square@3x.png
│ ├── loading_triangle@2x.png
│ └── loading_triangle@3x.png
├── AppDelegate.h
├── main.m
├── ViewController.h
├── Assets.xcassets
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── ShapeLoadingView.h
├── Info.plist
├── Base.lproj
│ ├── Main.storyboard
│ └── LaunchScreen.storyboard
├── AppDelegate.m
├── ViewController.m
└── ShapeLoadingView.m
├── README.md
├── LoadingViewAnimation.xcodeproj
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcuserdata
│ │ └── tracy.xcuserdatad
│ │ └── UserInterfaceState.xcuserstate
├── xcuserdata
│ └── tracy.xcuserdatad
│ │ └── xcschemes
│ │ ├── xcschememanagement.plist
│ │ └── LoadingViewAnimation.xcscheme
└── project.pbxproj
└── .gitignore
/loading.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangzidaren/LoadingViewAnimation/HEAD/loading.gif
--------------------------------------------------------------------------------
/LoadingViewAnimation/Resources/loading_circle@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangzidaren/LoadingViewAnimation/HEAD/LoadingViewAnimation/Resources/loading_circle@2x.png
--------------------------------------------------------------------------------
/LoadingViewAnimation/Resources/loading_circle@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangzidaren/LoadingViewAnimation/HEAD/LoadingViewAnimation/Resources/loading_circle@3x.png
--------------------------------------------------------------------------------
/LoadingViewAnimation/Resources/loading_shadow@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangzidaren/LoadingViewAnimation/HEAD/LoadingViewAnimation/Resources/loading_shadow@2x.png
--------------------------------------------------------------------------------
/LoadingViewAnimation/Resources/loading_shadow@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangzidaren/LoadingViewAnimation/HEAD/LoadingViewAnimation/Resources/loading_shadow@3x.png
--------------------------------------------------------------------------------
/LoadingViewAnimation/Resources/loading_square@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangzidaren/LoadingViewAnimation/HEAD/LoadingViewAnimation/Resources/loading_square@2x.png
--------------------------------------------------------------------------------
/LoadingViewAnimation/Resources/loading_square@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangzidaren/LoadingViewAnimation/HEAD/LoadingViewAnimation/Resources/loading_square@3x.png
--------------------------------------------------------------------------------
/LoadingViewAnimation/Resources/loading_triangle@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangzidaren/LoadingViewAnimation/HEAD/LoadingViewAnimation/Resources/loading_triangle@2x.png
--------------------------------------------------------------------------------
/LoadingViewAnimation/Resources/loading_triangle@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangzidaren/LoadingViewAnimation/HEAD/LoadingViewAnimation/Resources/loading_triangle@3x.png
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # LoadingViewAnimation
2 | 模仿58同城loading视图
3 |
4 | 效果如下
5 |
6 | 
7 |
--------------------------------------------------------------------------------
/LoadingViewAnimation.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/LoadingViewAnimation.xcodeproj/project.xcworkspace/xcuserdata/tracy.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangzidaren/LoadingViewAnimation/HEAD/LoadingViewAnimation.xcodeproj/project.xcworkspace/xcuserdata/tracy.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/LoadingViewAnimation/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // LoadingViewAnimation
4 | //
5 | // Created by tracy wang on 16/1/30.
6 | // Copyright © 2016年 tracy wang. 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 |
--------------------------------------------------------------------------------
/LoadingViewAnimation/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // LoadingViewAnimation
4 | //
5 | // Created by tracy wang on 16/1/30.
6 | // Copyright © 2016年 tracy wang. 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 |
--------------------------------------------------------------------------------
/LoadingViewAnimation/ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.h
3 | // LoadingViewAnimation
4 | //
5 | // Created by tracy wang on 16/1/30.
6 | // Copyright © 2016年 tracy wang. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "ShapeLoadingView.h"
11 |
12 |
13 |
14 | @interface ViewController : UIViewController
15 | {
16 |
17 |
18 | UIView *_loadingView;
19 |
20 |
21 | ShapeLoadingView *_shapeView;
22 |
23 |
24 |
25 | }
26 |
27 | @end
28 |
29 |
--------------------------------------------------------------------------------
/LoadingViewAnimation.xcodeproj/xcuserdata/tracy.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | LoadingViewAnimation.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | B1837A541C5C72DF000E5BE7
16 |
17 | primary
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/LoadingViewAnimation/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 | }
--------------------------------------------------------------------------------
/LoadingViewAnimation/ShapeLoadingView.h:
--------------------------------------------------------------------------------
1 | //
2 | // ShapeLoadingView.h
3 | // TestEducation
4 | //
5 | // Created by tracy wang on 15/12/4.
6 | // Copyright © 2015年 tracy wang. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | /*
12 | *模仿58同城的loading视图
13 | */
14 | @interface ShapeLoadingView : UIView
15 | {
16 |
17 |
18 |
19 |
20 |
21 | UIImageView *_shapView;
22 |
23 | UIImageView *_shadowView;
24 |
25 |
26 |
27 |
28 | float _toValue;
29 | float _fromValue;
30 |
31 |
32 |
33 | float _scaletoValue;
34 | float _scalefromValue;
35 |
36 |
37 |
38 |
39 | }
40 |
41 | - (id)initWithFrame:(CGRect)frame title:(NSString *)title;
42 |
43 |
44 |
45 | -(void) step;
46 |
47 | -(void) startAnimating;
48 |
49 | -(void) stopAnimating;
50 |
51 |
52 |
53 | @end
54 |
--------------------------------------------------------------------------------
/LoadingViewAnimation/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 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Xcode
2 | #
3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
4 |
5 | ## Build generated
6 | build/
7 | DerivedData
8 |
9 | ## Various settings
10 | *.pbxuser
11 | !default.pbxuser
12 | *.mode1v3
13 | !default.mode1v3
14 | *.mode2v3
15 | !default.mode2v3
16 | *.perspectivev3
17 | !default.perspectivev3
18 | xcuserdata
19 |
20 | ## Other
21 | *.xccheckout
22 | *.moved-aside
23 | *.xcuserstate
24 | *.xcscmblueprint
25 |
26 | ## Obj-C/Swift specific
27 | *.hmap
28 | *.ipa
29 |
30 | # CocoaPods
31 | #
32 | # We recommend against adding the Pods directory to your .gitignore. However
33 | # you should judge for yourself, the pros and cons are mentioned at:
34 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
35 | #
36 | # Pods/
37 |
38 | # Carthage
39 | #
40 | # Add this line if you want to avoid checking in source code from Carthage dependencies.
41 | # Carthage/Checkouts
42 |
43 | Carthage/Build
44 |
45 | # fastlane
46 | #
47 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
48 | # screenshots whenever they are needed.
49 | # For more information about the recommended setup visit:
50 | # https://github.com/fastlane/fastlane/blob/master/docs/Gitignore.md
51 |
52 | fastlane/report.xml
53 | fastlane/screenshots
54 |
--------------------------------------------------------------------------------
/LoadingViewAnimation/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 |
--------------------------------------------------------------------------------
/LoadingViewAnimation/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 |
--------------------------------------------------------------------------------
/LoadingViewAnimation/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // LoadingViewAnimation
4 | //
5 | // Created by tracy wang on 16/1/30.
6 | // Copyright © 2016年 tracy wang. 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 |
--------------------------------------------------------------------------------
/LoadingViewAnimation/ViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.m
3 | // LoadingViewAnimation
4 | //
5 | // Created by tracy wang on 16/1/30.
6 | // Copyright © 2016年 tracy wang. All rights reserved.
7 | //
8 |
9 | #import "ViewController.h"
10 |
11 | @interface ViewController ()
12 |
13 | @end
14 |
15 | @implementation ViewController
16 |
17 | - (void)viewDidLoad
18 | {
19 | [super viewDidLoad];
20 |
21 |
22 |
23 | _loadingView=[[UIView alloc] init];
24 | _loadingView.frame=CGRectMake(self.view.frame.size.width/2-100/2, self.view.frame.size.height/2-120/2, 100, 120);
25 | _loadingView.backgroundColor=[UIColor clearColor];
26 | [self.view addSubview:_loadingView];
27 |
28 | _shapeView=[[ShapeLoadingView alloc] initWithFrame:CGRectMake(0, 0, 100, 120) title:@"加载中..."];
29 | _shapeView.backgroundColor=[UIColor clearColor];
30 | [_loadingView addSubview:_shapeView];
31 |
32 | _loadingView.alpha=0;
33 |
34 |
35 | UIButton *_startButton=[UIButton buttonWithType:UIButtonTypeSystem];
36 | _startButton.frame=CGRectMake(50, _loadingView.frame.origin.y+_loadingView.frame.size.height+40, 60, 30);
37 | [_startButton setTitle:@"开始" forState:UIControlStateNormal];
38 | [self.view addSubview:_startButton];
39 | [_startButton addTarget:self action:@selector(startPressed:) forControlEvents:UIControlEventTouchUpInside];
40 |
41 |
42 | UIButton *_stopButton=[UIButton buttonWithType:UIButtonTypeSystem];
43 | _stopButton.frame=CGRectMake(self.view.frame.size.width-60-50, _loadingView.frame.origin.y+_loadingView.frame.size.height+40, 60, 30);
44 | [_stopButton setTitle:@"结束" forState:UIControlStateNormal];
45 | [self.view addSubview:_stopButton];
46 | [_stopButton addTarget:self action:@selector(stopPressed:) forControlEvents:UIControlEventTouchUpInside];
47 |
48 | }
49 |
50 |
51 | -(void) startPressed:(UIButton *)button
52 | {
53 |
54 |
55 |
56 | _loadingView.alpha=1;
57 |
58 | [_shapeView startAnimating];
59 |
60 |
61 |
62 |
63 | }
64 |
65 |
66 | -(void) stopPressed:(UIButton *)button
67 | {
68 |
69 |
70 |
71 | _loadingView.alpha=0;
72 |
73 | [_shapeView stopAnimating];
74 |
75 |
76 |
77 |
78 | }
79 |
80 |
81 |
82 |
83 | - (void)didReceiveMemoryWarning {
84 | [super didReceiveMemoryWarning];
85 | // Dispose of any resources that can be recreated.
86 | }
87 |
88 | @end
89 |
--------------------------------------------------------------------------------
/LoadingViewAnimation.xcodeproj/xcuserdata/tracy.xcuserdatad/xcschemes/LoadingViewAnimation.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/LoadingViewAnimation/ShapeLoadingView.m:
--------------------------------------------------------------------------------
1 | //
2 | // ShapeLoadingView.m
3 | // TestEducation
4 | //
5 | // Created by tracy wang on 15/12/4.
6 | // Copyright © 2015年 tracy wang. All rights reserved.
7 | //
8 |
9 | #import "ShapeLoadingView.h"
10 |
11 |
12 |
13 | @interface ShapeLoadingView ()
14 |
15 | @property (nonatomic, assign) int stepNumber;
16 | @property (nonatomic, assign) BOOL isAnimating;
17 | @property (nonatomic, strong) NSTimer *timer;
18 | @property (nonatomic, copy) NSString *titleString;
19 |
20 |
21 | @end
22 |
23 | @implementation ShapeLoadingView
24 |
25 |
26 | #define ANIMATION_DURATION_SECS 0.5f
27 |
28 |
29 | - (id)initWithFrame:(CGRect)frame title:(NSString *)title
30 | {
31 | self = [super initWithFrame:frame];
32 | if (self)
33 | {
34 |
35 | self.titleString=title;
36 |
37 | [self step];
38 |
39 | }
40 |
41 | return self;
42 | }
43 |
44 |
45 | -(void) step
46 | {
47 |
48 |
49 |
50 | _shapView=[[UIImageView alloc] init];
51 | _shapView.frame=CGRectMake(self.frame.size.width/2-31/2, 0, 31, 31);
52 | _shapView.image=[UIImage imageNamed:@"loading_circle"];
53 | _shapView.contentMode=UIViewContentModeScaleAspectFit;
54 | [self addSubview:_shapView];
55 |
56 |
57 | //阴影
58 | _shadowView=[[UIImageView alloc] init];
59 | _shadowView.frame=CGRectMake(self.frame.size.width/2-37/2, self.frame.size.height-2.5-30, 37, 2.5);
60 | _shadowView.image=[UIImage imageNamed:@"loading_shadow"];
61 | [self addSubview:_shadowView];
62 |
63 |
64 | UILabel *_label=[[UILabel alloc] init];
65 | _label.frame=CGRectMake(0, self.frame.size.height-20, self.frame.size.width, 20);
66 | _label.textColor=[UIColor grayColor];
67 | _label.textAlignment=NSTextAlignmentCenter;
68 | _label.text=_titleString;
69 | _label.font=[UIFont systemFontOfSize:13.0f];
70 |
71 | [self addSubview:_label];
72 |
73 |
74 |
75 | _fromValue=_shapView.frame.size.height/2;
76 | _toValue=self.frame.size.height-30-_shapView.frame.size.height/2-_shadowView.frame.size.height;
77 |
78 |
79 | _scalefromValue=0.3f;
80 | _scaletoValue=1.0f;
81 |
82 | self.alpha=0;
83 |
84 | }
85 |
86 |
87 | -(void) startAnimating
88 | {
89 |
90 | if (!_isAnimating)
91 | {
92 | _isAnimating = YES;
93 |
94 | self.alpha=1;
95 |
96 | _timer = [NSTimer scheduledTimerWithTimeInterval:ANIMATION_DURATION_SECS target:self selector:@selector(animateNextStep) userInfo:nil repeats:YES];
97 | }
98 |
99 |
100 |
101 |
102 |
103 | }
104 |
105 |
106 | -(void) stopAnimating
107 | {
108 |
109 | _isAnimating = NO;
110 |
111 | [_timer invalidate];
112 |
113 | _stepNumber = 0;
114 |
115 | self.alpha=0;
116 |
117 |
118 | [_shapView.layer removeAllAnimations];
119 |
120 | [_shadowView.layer removeAllAnimations];
121 |
122 | _shapView.image=[UIImage imageNamed:@"loading_circle"];
123 |
124 |
125 | }
126 |
127 |
128 | -(void)animateNextStep
129 | {
130 | switch (_stepNumber)
131 | {
132 | case 0:
133 | {
134 |
135 |
136 | _shapView.image=[UIImage imageNamed:@"loading_circle"];
137 |
138 |
139 | [self loadingAnimation:_fromValue toValue:_toValue timingFunction:kCAMediaTimingFunctionEaseIn];
140 |
141 | [self scaleAnimation:_scalefromValue toValue:_scaletoValue timingFunction:kCAMediaTimingFunctionEaseIn];
142 |
143 |
144 | }
145 | break;
146 | case 1:
147 | {
148 |
149 |
150 | _shapView.image=[UIImage imageNamed:@"loading_square"];
151 |
152 | [self loadingAnimation:_toValue toValue:_fromValue timingFunction:kCAMediaTimingFunctionEaseOut];
153 |
154 | [self scaleAnimation:_scaletoValue toValue:_scalefromValue timingFunction:kCAMediaTimingFunctionEaseIn];
155 |
156 | }
157 | break;
158 | case 2:
159 | {
160 |
161 |
162 |
163 | _shapView.image=[UIImage imageNamed:@"loading_square"];
164 |
165 | [self loadingAnimation:_fromValue toValue:_toValue timingFunction:kCAMediaTimingFunctionEaseIn];
166 |
167 | [self scaleAnimation:_scalefromValue toValue:_scaletoValue timingFunction:kCAMediaTimingFunctionEaseIn];
168 |
169 |
170 | }
171 | break;
172 |
173 | case 3:
174 | {
175 |
176 | _shapView.image=[UIImage imageNamed:@"loading_triangle"];
177 |
178 |
179 | [self loadingAnimation:_toValue toValue:_fromValue timingFunction:kCAMediaTimingFunctionEaseOut];
180 |
181 | [self scaleAnimation:_scaletoValue toValue:_scalefromValue timingFunction:kCAMediaTimingFunctionEaseIn];
182 |
183 |
184 |
185 | }
186 |
187 | break;
188 |
189 | case 4:
190 | {
191 |
192 | _shapView.image=[UIImage imageNamed:@"loading_triangle"];
193 |
194 | [self loadingAnimation:_fromValue toValue:_toValue timingFunction:kCAMediaTimingFunctionEaseIn];
195 |
196 |
197 | [self scaleAnimation:_scalefromValue toValue:_scaletoValue timingFunction:kCAMediaTimingFunctionEaseIn];
198 |
199 | }
200 |
201 | break;
202 | case 5:
203 | {
204 |
205 | _shapView.image=[UIImage imageNamed:@"loading_circle"];
206 |
207 | [self loadingAnimation:_toValue toValue:_fromValue timingFunction:kCAMediaTimingFunctionEaseOut];
208 |
209 | [self scaleAnimation:_scaletoValue toValue:_scalefromValue timingFunction:kCAMediaTimingFunctionEaseIn];
210 |
211 |
212 | _stepNumber = -1;
213 |
214 | }
215 |
216 | break;
217 |
218 | default:
219 | break;
220 | }
221 |
222 | _stepNumber++;
223 | }
224 |
225 |
226 | -(void) loadingAnimation:(float)fromValue toValue:(float)toValue timingFunction:(NSString * const)tf
227 | {
228 |
229 |
230 | //位置
231 | CABasicAnimation *panimation = [CABasicAnimation animation];
232 | panimation.keyPath = @"position.y";
233 | panimation.fromValue =@(fromValue);
234 | panimation.toValue = @(toValue);
235 | panimation.duration = ANIMATION_DURATION_SECS;
236 |
237 | panimation.timingFunction = [CAMediaTimingFunction functionWithName:tf];
238 |
239 |
240 | //旋转
241 | CABasicAnimation *ranimation = [CABasicAnimation animation];
242 | ranimation.keyPath = @"transform.rotation";
243 | ranimation.fromValue =@(0);
244 | ranimation.toValue = @(M_PI_2);
245 | ranimation.duration = ANIMATION_DURATION_SECS;
246 |
247 | ranimation.timingFunction = [CAMediaTimingFunction functionWithName:tf];
248 |
249 |
250 |
251 | //组合
252 | CAAnimationGroup *group = [[CAAnimationGroup alloc] init];
253 | group.animations = @[ panimation,ranimation];
254 | group.duration = ANIMATION_DURATION_SECS;
255 | group.beginTime = 0;
256 | group.fillMode=kCAFillModeForwards;
257 | group.removedOnCompletion = NO;
258 |
259 |
260 | [_shapView.layer addAnimation:group forKey:@"basic"];
261 |
262 |
263 |
264 |
265 |
266 | }
267 |
268 | -(void) scaleAnimation:(float) fromeValue toValue:(float)toValue timingFunction:(NSString * const)tf
269 | {
270 |
271 | //缩放
272 | CABasicAnimation *sanimation = [CABasicAnimation animation];
273 | sanimation.keyPath = @"transform.scale";
274 | sanimation.fromValue =@(fromeValue);
275 | sanimation.toValue = @(toValue);
276 | sanimation.duration = ANIMATION_DURATION_SECS;
277 |
278 | sanimation.fillMode = kCAFillModeForwards;
279 | sanimation.timingFunction = [CAMediaTimingFunction functionWithName:tf];
280 | sanimation.removedOnCompletion = NO;
281 |
282 | [_shadowView.layer addAnimation:sanimation forKey:@"shadow"];
283 |
284 |
285 | }
286 |
287 |
288 | - (BOOL)isAnimating
289 | {
290 | return _isAnimating;
291 | }
292 |
293 |
294 |
295 | - (void)dealloc
296 | {
297 |
298 |
299 |
300 |
301 | }
302 |
303 |
304 |
305 |
306 | @end
307 |
--------------------------------------------------------------------------------
/LoadingViewAnimation.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | B1837A5A1C5C72DF000E5BE7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = B1837A591C5C72DF000E5BE7 /* main.m */; };
11 | B1837A5D1C5C72DF000E5BE7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = B1837A5C1C5C72DF000E5BE7 /* AppDelegate.m */; };
12 | B1837A601C5C72DF000E5BE7 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = B1837A5F1C5C72DF000E5BE7 /* ViewController.m */; };
13 | B1837A631C5C72DF000E5BE7 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = B1837A611C5C72DF000E5BE7 /* Main.storyboard */; };
14 | B1837A651C5C72DF000E5BE7 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = B1837A641C5C72DF000E5BE7 /* Assets.xcassets */; };
15 | B1837A681C5C72DF000E5BE7 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = B1837A661C5C72DF000E5BE7 /* LaunchScreen.storyboard */; };
16 | B1837A711C5C7328000E5BE7 /* ShapeLoadingView.m in Sources */ = {isa = PBXBuildFile; fileRef = B1837A701C5C7328000E5BE7 /* ShapeLoadingView.m */; settings = {ASSET_TAGS = (); }; };
17 | B1837A7B1C5C735F000E5BE7 /* loading_circle@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = B1837A731C5C735F000E5BE7 /* loading_circle@2x.png */; settings = {ASSET_TAGS = (); }; };
18 | B1837A7C1C5C735F000E5BE7 /* loading_square@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = B1837A741C5C735F000E5BE7 /* loading_square@2x.png */; settings = {ASSET_TAGS = (); }; };
19 | B1837A7D1C5C735F000E5BE7 /* loading_triangle@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = B1837A751C5C735F000E5BE7 /* loading_triangle@2x.png */; settings = {ASSET_TAGS = (); }; };
20 | B1837A7E1C5C735F000E5BE7 /* loading_shadow@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = B1837A761C5C735F000E5BE7 /* loading_shadow@2x.png */; settings = {ASSET_TAGS = (); }; };
21 | B1837A7F1C5C735F000E5BE7 /* loading_circle@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = B1837A771C5C735F000E5BE7 /* loading_circle@3x.png */; settings = {ASSET_TAGS = (); }; };
22 | B1837A801C5C735F000E5BE7 /* loading_shadow@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = B1837A781C5C735F000E5BE7 /* loading_shadow@3x.png */; settings = {ASSET_TAGS = (); }; };
23 | B1837A811C5C735F000E5BE7 /* loading_square@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = B1837A791C5C735F000E5BE7 /* loading_square@3x.png */; settings = {ASSET_TAGS = (); }; };
24 | B1837A821C5C735F000E5BE7 /* loading_triangle@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = B1837A7A1C5C735F000E5BE7 /* loading_triangle@3x.png */; settings = {ASSET_TAGS = (); }; };
25 | B1837A841C5C826B000E5BE7 /* loading.gif in Resources */ = {isa = PBXBuildFile; fileRef = B1837A831C5C826B000E5BE7 /* loading.gif */; settings = {ASSET_TAGS = (); }; };
26 | /* End PBXBuildFile section */
27 |
28 | /* Begin PBXFileReference section */
29 | B1837A551C5C72DF000E5BE7 /* LoadingViewAnimation.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = LoadingViewAnimation.app; sourceTree = BUILT_PRODUCTS_DIR; };
30 | B1837A591C5C72DF000E5BE7 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
31 | B1837A5B1C5C72DF000E5BE7 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
32 | B1837A5C1C5C72DF000E5BE7 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
33 | B1837A5E1C5C72DF000E5BE7 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; };
34 | B1837A5F1C5C72DF000E5BE7 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; };
35 | B1837A621C5C72DF000E5BE7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
36 | B1837A641C5C72DF000E5BE7 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
37 | B1837A671C5C72DF000E5BE7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
38 | B1837A691C5C72DF000E5BE7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
39 | B1837A6F1C5C7328000E5BE7 /* ShapeLoadingView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ShapeLoadingView.h; sourceTree = ""; };
40 | B1837A701C5C7328000E5BE7 /* ShapeLoadingView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ShapeLoadingView.m; sourceTree = ""; };
41 | B1837A731C5C735F000E5BE7 /* loading_circle@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "loading_circle@2x.png"; sourceTree = ""; };
42 | B1837A741C5C735F000E5BE7 /* loading_square@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "loading_square@2x.png"; sourceTree = ""; };
43 | B1837A751C5C735F000E5BE7 /* loading_triangle@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "loading_triangle@2x.png"; sourceTree = ""; };
44 | B1837A761C5C735F000E5BE7 /* loading_shadow@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "loading_shadow@2x.png"; sourceTree = ""; };
45 | B1837A771C5C735F000E5BE7 /* loading_circle@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "loading_circle@3x.png"; sourceTree = ""; };
46 | B1837A781C5C735F000E5BE7 /* loading_shadow@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "loading_shadow@3x.png"; sourceTree = ""; };
47 | B1837A791C5C735F000E5BE7 /* loading_square@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "loading_square@3x.png"; sourceTree = ""; };
48 | B1837A7A1C5C735F000E5BE7 /* loading_triangle@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "loading_triangle@3x.png"; sourceTree = ""; };
49 | B1837A831C5C826B000E5BE7 /* loading.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = loading.gif; sourceTree = ""; };
50 | /* End PBXFileReference section */
51 |
52 | /* Begin PBXFrameworksBuildPhase section */
53 | B1837A521C5C72DF000E5BE7 /* Frameworks */ = {
54 | isa = PBXFrameworksBuildPhase;
55 | buildActionMask = 2147483647;
56 | files = (
57 | );
58 | runOnlyForDeploymentPostprocessing = 0;
59 | };
60 | /* End PBXFrameworksBuildPhase section */
61 |
62 | /* Begin PBXGroup section */
63 | B1837A4C1C5C72DF000E5BE7 = {
64 | isa = PBXGroup;
65 | children = (
66 | B1837A831C5C826B000E5BE7 /* loading.gif */,
67 | B1837A571C5C72DF000E5BE7 /* LoadingViewAnimation */,
68 | B1837A561C5C72DF000E5BE7 /* Products */,
69 | );
70 | sourceTree = "";
71 | };
72 | B1837A561C5C72DF000E5BE7 /* Products */ = {
73 | isa = PBXGroup;
74 | children = (
75 | B1837A551C5C72DF000E5BE7 /* LoadingViewAnimation.app */,
76 | );
77 | name = Products;
78 | sourceTree = "";
79 | };
80 | B1837A571C5C72DF000E5BE7 /* LoadingViewAnimation */ = {
81 | isa = PBXGroup;
82 | children = (
83 | B1837A721C5C7351000E5BE7 /* Resources */,
84 | B1837A6F1C5C7328000E5BE7 /* ShapeLoadingView.h */,
85 | B1837A701C5C7328000E5BE7 /* ShapeLoadingView.m */,
86 | B1837A5B1C5C72DF000E5BE7 /* AppDelegate.h */,
87 | B1837A5C1C5C72DF000E5BE7 /* AppDelegate.m */,
88 | B1837A5E1C5C72DF000E5BE7 /* ViewController.h */,
89 | B1837A5F1C5C72DF000E5BE7 /* ViewController.m */,
90 | B1837A611C5C72DF000E5BE7 /* Main.storyboard */,
91 | B1837A641C5C72DF000E5BE7 /* Assets.xcassets */,
92 | B1837A661C5C72DF000E5BE7 /* LaunchScreen.storyboard */,
93 | B1837A691C5C72DF000E5BE7 /* Info.plist */,
94 | B1837A581C5C72DF000E5BE7 /* Supporting Files */,
95 | );
96 | path = LoadingViewAnimation;
97 | sourceTree = "";
98 | };
99 | B1837A581C5C72DF000E5BE7 /* Supporting Files */ = {
100 | isa = PBXGroup;
101 | children = (
102 | B1837A591C5C72DF000E5BE7 /* main.m */,
103 | );
104 | name = "Supporting Files";
105 | sourceTree = "";
106 | };
107 | B1837A721C5C7351000E5BE7 /* Resources */ = {
108 | isa = PBXGroup;
109 | children = (
110 | B1837A731C5C735F000E5BE7 /* loading_circle@2x.png */,
111 | B1837A741C5C735F000E5BE7 /* loading_square@2x.png */,
112 | B1837A751C5C735F000E5BE7 /* loading_triangle@2x.png */,
113 | B1837A761C5C735F000E5BE7 /* loading_shadow@2x.png */,
114 | B1837A771C5C735F000E5BE7 /* loading_circle@3x.png */,
115 | B1837A781C5C735F000E5BE7 /* loading_shadow@3x.png */,
116 | B1837A791C5C735F000E5BE7 /* loading_square@3x.png */,
117 | B1837A7A1C5C735F000E5BE7 /* loading_triangle@3x.png */,
118 | );
119 | path = Resources;
120 | sourceTree = "";
121 | };
122 | /* End PBXGroup section */
123 |
124 | /* Begin PBXNativeTarget section */
125 | B1837A541C5C72DF000E5BE7 /* LoadingViewAnimation */ = {
126 | isa = PBXNativeTarget;
127 | buildConfigurationList = B1837A6C1C5C72DF000E5BE7 /* Build configuration list for PBXNativeTarget "LoadingViewAnimation" */;
128 | buildPhases = (
129 | B1837A511C5C72DF000E5BE7 /* Sources */,
130 | B1837A521C5C72DF000E5BE7 /* Frameworks */,
131 | B1837A531C5C72DF000E5BE7 /* Resources */,
132 | );
133 | buildRules = (
134 | );
135 | dependencies = (
136 | );
137 | name = LoadingViewAnimation;
138 | productName = LoadingViewAnimation;
139 | productReference = B1837A551C5C72DF000E5BE7 /* LoadingViewAnimation.app */;
140 | productType = "com.apple.product-type.application";
141 | };
142 | /* End PBXNativeTarget section */
143 |
144 | /* Begin PBXProject section */
145 | B1837A4D1C5C72DF000E5BE7 /* Project object */ = {
146 | isa = PBXProject;
147 | attributes = {
148 | LastUpgradeCheck = 0700;
149 | ORGANIZATIONNAME = "tracy wang";
150 | TargetAttributes = {
151 | B1837A541C5C72DF000E5BE7 = {
152 | CreatedOnToolsVersion = 7.0;
153 | };
154 | };
155 | };
156 | buildConfigurationList = B1837A501C5C72DF000E5BE7 /* Build configuration list for PBXProject "LoadingViewAnimation" */;
157 | compatibilityVersion = "Xcode 3.2";
158 | developmentRegion = English;
159 | hasScannedForEncodings = 0;
160 | knownRegions = (
161 | en,
162 | Base,
163 | );
164 | mainGroup = B1837A4C1C5C72DF000E5BE7;
165 | productRefGroup = B1837A561C5C72DF000E5BE7 /* Products */;
166 | projectDirPath = "";
167 | projectRoot = "";
168 | targets = (
169 | B1837A541C5C72DF000E5BE7 /* LoadingViewAnimation */,
170 | );
171 | };
172 | /* End PBXProject section */
173 |
174 | /* Begin PBXResourcesBuildPhase section */
175 | B1837A531C5C72DF000E5BE7 /* Resources */ = {
176 | isa = PBXResourcesBuildPhase;
177 | buildActionMask = 2147483647;
178 | files = (
179 | B1837A7C1C5C735F000E5BE7 /* loading_square@2x.png in Resources */,
180 | B1837A681C5C72DF000E5BE7 /* LaunchScreen.storyboard in Resources */,
181 | B1837A7F1C5C735F000E5BE7 /* loading_circle@3x.png in Resources */,
182 | B1837A7B1C5C735F000E5BE7 /* loading_circle@2x.png in Resources */,
183 | B1837A7D1C5C735F000E5BE7 /* loading_triangle@2x.png in Resources */,
184 | B1837A811C5C735F000E5BE7 /* loading_square@3x.png in Resources */,
185 | B1837A7E1C5C735F000E5BE7 /* loading_shadow@2x.png in Resources */,
186 | B1837A651C5C72DF000E5BE7 /* Assets.xcassets in Resources */,
187 | B1837A631C5C72DF000E5BE7 /* Main.storyboard in Resources */,
188 | B1837A841C5C826B000E5BE7 /* loading.gif in Resources */,
189 | B1837A821C5C735F000E5BE7 /* loading_triangle@3x.png in Resources */,
190 | B1837A801C5C735F000E5BE7 /* loading_shadow@3x.png in Resources */,
191 | );
192 | runOnlyForDeploymentPostprocessing = 0;
193 | };
194 | /* End PBXResourcesBuildPhase section */
195 |
196 | /* Begin PBXSourcesBuildPhase section */
197 | B1837A511C5C72DF000E5BE7 /* Sources */ = {
198 | isa = PBXSourcesBuildPhase;
199 | buildActionMask = 2147483647;
200 | files = (
201 | B1837A601C5C72DF000E5BE7 /* ViewController.m in Sources */,
202 | B1837A5D1C5C72DF000E5BE7 /* AppDelegate.m in Sources */,
203 | B1837A5A1C5C72DF000E5BE7 /* main.m in Sources */,
204 | B1837A711C5C7328000E5BE7 /* ShapeLoadingView.m in Sources */,
205 | );
206 | runOnlyForDeploymentPostprocessing = 0;
207 | };
208 | /* End PBXSourcesBuildPhase section */
209 |
210 | /* Begin PBXVariantGroup section */
211 | B1837A611C5C72DF000E5BE7 /* Main.storyboard */ = {
212 | isa = PBXVariantGroup;
213 | children = (
214 | B1837A621C5C72DF000E5BE7 /* Base */,
215 | );
216 | name = Main.storyboard;
217 | sourceTree = "";
218 | };
219 | B1837A661C5C72DF000E5BE7 /* LaunchScreen.storyboard */ = {
220 | isa = PBXVariantGroup;
221 | children = (
222 | B1837A671C5C72DF000E5BE7 /* Base */,
223 | );
224 | name = LaunchScreen.storyboard;
225 | sourceTree = "";
226 | };
227 | /* End PBXVariantGroup section */
228 |
229 | /* Begin XCBuildConfiguration section */
230 | B1837A6A1C5C72DF000E5BE7 /* Debug */ = {
231 | isa = XCBuildConfiguration;
232 | buildSettings = {
233 | ALWAYS_SEARCH_USER_PATHS = NO;
234 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
235 | CLANG_CXX_LIBRARY = "libc++";
236 | CLANG_ENABLE_MODULES = YES;
237 | CLANG_ENABLE_OBJC_ARC = YES;
238 | CLANG_WARN_BOOL_CONVERSION = YES;
239 | CLANG_WARN_CONSTANT_CONVERSION = YES;
240 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
241 | CLANG_WARN_EMPTY_BODY = YES;
242 | CLANG_WARN_ENUM_CONVERSION = YES;
243 | CLANG_WARN_INT_CONVERSION = YES;
244 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
245 | CLANG_WARN_UNREACHABLE_CODE = YES;
246 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
247 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
248 | COPY_PHASE_STRIP = NO;
249 | DEBUG_INFORMATION_FORMAT = dwarf;
250 | ENABLE_STRICT_OBJC_MSGSEND = YES;
251 | ENABLE_TESTABILITY = YES;
252 | GCC_C_LANGUAGE_STANDARD = gnu99;
253 | GCC_DYNAMIC_NO_PIC = NO;
254 | GCC_NO_COMMON_BLOCKS = YES;
255 | GCC_OPTIMIZATION_LEVEL = 0;
256 | GCC_PREPROCESSOR_DEFINITIONS = (
257 | "DEBUG=1",
258 | "$(inherited)",
259 | );
260 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
261 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
262 | GCC_WARN_UNDECLARED_SELECTOR = YES;
263 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
264 | GCC_WARN_UNUSED_FUNCTION = YES;
265 | GCC_WARN_UNUSED_VARIABLE = YES;
266 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
267 | MTL_ENABLE_DEBUG_INFO = YES;
268 | ONLY_ACTIVE_ARCH = YES;
269 | SDKROOT = iphoneos;
270 | };
271 | name = Debug;
272 | };
273 | B1837A6B1C5C72DF000E5BE7 /* Release */ = {
274 | isa = XCBuildConfiguration;
275 | buildSettings = {
276 | ALWAYS_SEARCH_USER_PATHS = NO;
277 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
278 | CLANG_CXX_LIBRARY = "libc++";
279 | CLANG_ENABLE_MODULES = YES;
280 | CLANG_ENABLE_OBJC_ARC = YES;
281 | CLANG_WARN_BOOL_CONVERSION = YES;
282 | CLANG_WARN_CONSTANT_CONVERSION = YES;
283 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
284 | CLANG_WARN_EMPTY_BODY = YES;
285 | CLANG_WARN_ENUM_CONVERSION = YES;
286 | CLANG_WARN_INT_CONVERSION = YES;
287 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
288 | CLANG_WARN_UNREACHABLE_CODE = YES;
289 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
290 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
291 | COPY_PHASE_STRIP = NO;
292 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
293 | ENABLE_NS_ASSERTIONS = NO;
294 | ENABLE_STRICT_OBJC_MSGSEND = YES;
295 | GCC_C_LANGUAGE_STANDARD = gnu99;
296 | GCC_NO_COMMON_BLOCKS = YES;
297 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
298 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
299 | GCC_WARN_UNDECLARED_SELECTOR = YES;
300 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
301 | GCC_WARN_UNUSED_FUNCTION = YES;
302 | GCC_WARN_UNUSED_VARIABLE = YES;
303 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
304 | MTL_ENABLE_DEBUG_INFO = NO;
305 | SDKROOT = iphoneos;
306 | VALIDATE_PRODUCT = YES;
307 | };
308 | name = Release;
309 | };
310 | B1837A6D1C5C72DF000E5BE7 /* Debug */ = {
311 | isa = XCBuildConfiguration;
312 | buildSettings = {
313 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
314 | INFOPLIST_FILE = LoadingViewAnimation/Info.plist;
315 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
316 | PRODUCT_BUNDLE_IDENTIFIER = com.kedll.LoadingViewAnimation;
317 | PRODUCT_NAME = "$(TARGET_NAME)";
318 | };
319 | name = Debug;
320 | };
321 | B1837A6E1C5C72DF000E5BE7 /* Release */ = {
322 | isa = XCBuildConfiguration;
323 | buildSettings = {
324 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
325 | INFOPLIST_FILE = LoadingViewAnimation/Info.plist;
326 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
327 | PRODUCT_BUNDLE_IDENTIFIER = com.kedll.LoadingViewAnimation;
328 | PRODUCT_NAME = "$(TARGET_NAME)";
329 | };
330 | name = Release;
331 | };
332 | /* End XCBuildConfiguration section */
333 |
334 | /* Begin XCConfigurationList section */
335 | B1837A501C5C72DF000E5BE7 /* Build configuration list for PBXProject "LoadingViewAnimation" */ = {
336 | isa = XCConfigurationList;
337 | buildConfigurations = (
338 | B1837A6A1C5C72DF000E5BE7 /* Debug */,
339 | B1837A6B1C5C72DF000E5BE7 /* Release */,
340 | );
341 | defaultConfigurationIsVisible = 0;
342 | defaultConfigurationName = Release;
343 | };
344 | B1837A6C1C5C72DF000E5BE7 /* Build configuration list for PBXNativeTarget "LoadingViewAnimation" */ = {
345 | isa = XCConfigurationList;
346 | buildConfigurations = (
347 | B1837A6D1C5C72DF000E5BE7 /* Debug */,
348 | B1837A6E1C5C72DF000E5BE7 /* Release */,
349 | );
350 | defaultConfigurationIsVisible = 0;
351 | defaultConfigurationName = Release;
352 | };
353 | /* End XCConfigurationList section */
354 | };
355 | rootObject = B1837A4D1C5C72DF000E5BE7 /* Project object */;
356 | }
357 |
--------------------------------------------------------------------------------