├── README.md
├── iKYLoadingHub
├── iKYLoadingHub
│ ├── 001.png
│ ├── Images.xcassets
│ │ ├── 001.imageset
│ │ │ ├── 001.png
│ │ │ └── Contents.json
│ │ └── AppIcon.appiconset
│ │ │ └── Contents.json
│ ├── ViewController.h
│ ├── iKYLoadingHub.xcdatamodeld
│ │ ├── .xccurrentversion
│ │ └── iKYLoadingHub.xcdatamodel
│ │ │ └── contents
│ ├── main.m
│ ├── iKYLoadingHubView.h
│ ├── AppDelegate.h
│ ├── ViewController.m
│ ├── Info.plist
│ ├── Base.lproj
│ │ ├── Main.storyboard
│ │ └── LaunchScreen.xib
│ ├── AppDelegate.m
│ └── iKYLoadingHubView.m
├── iKYLoadingHub.xcodeproj
│ ├── project.xcworkspace
│ │ └── contents.xcworkspacedata
│ └── project.pbxproj
└── iKYLoadingHubTests
│ ├── Info.plist
│ └── iKYLoadingHubTests.m
└── .gitignore
/README.md:
--------------------------------------------------------------------------------
1 | # iKYLoadingHUb
2 |
--------------------------------------------------------------------------------
/iKYLoadingHub/iKYLoadingHub/001.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/animations/iKYLoadingHUb/master/iKYLoadingHub/iKYLoadingHub/001.png
--------------------------------------------------------------------------------
/iKYLoadingHub/iKYLoadingHub/Images.xcassets/001.imageset/001.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/animations/iKYLoadingHUb/master/iKYLoadingHub/iKYLoadingHub/Images.xcassets/001.imageset/001.png
--------------------------------------------------------------------------------
/iKYLoadingHub/iKYLoadingHub.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/iKYLoadingHub/iKYLoadingHub/ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.h
3 | // iKYLoadingHub
4 | //
5 | // Created by 郑钦洪 on 15/10/6.
6 | // Copyright (c) 2015年 Kingsly. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController : UIViewController
12 |
13 |
14 | @end
15 |
16 |
--------------------------------------------------------------------------------
/iKYLoadingHub/iKYLoadingHub/iKYLoadingHub.xcdatamodeld/.xccurrentversion:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | _XCCurrentVersionName
6 | iKYLoadingHub.xcdatamodel
7 |
8 |
9 |
--------------------------------------------------------------------------------
/iKYLoadingHub/iKYLoadingHub/iKYLoadingHub.xcdatamodeld/iKYLoadingHub.xcdatamodel/contents:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/iKYLoadingHub/iKYLoadingHub/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // iKYLoadingHub
4 | //
5 | // Created by 郑钦洪 on 15/10/6.
6 | // Copyright (c) 2015年 Kingsly. 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 |
--------------------------------------------------------------------------------
/iKYLoadingHub/iKYLoadingHub/Images.xcassets/001.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x",
10 | "filename" : "001.png"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/iKYLoadingHub/iKYLoadingHub/iKYLoadingHubView.h:
--------------------------------------------------------------------------------
1 | //
2 | // iKYLoadingHubView.h
3 | // iKYLoadingHub
4 | //
5 | // Created by 郑钦洪 on 15/10/6.
6 | // Copyright (c) 2015年 Kingsly. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface iKYLoadingHubView : UIView
12 | /** 球的颜色 */
13 | @property (nonatomic,strong) UIColor *ballColor;
14 |
15 | /** 展示加载动画*/
16 | - (void)showHub;
17 |
18 | /**
19 | * 关闭加载动画
20 | */
21 | - (void)dismissHub;
22 |
23 | @end
24 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Xcode
2 | #
3 | build/
4 | *.pbxuser
5 | !default.pbxuser
6 | *.mode1v3
7 | !default.mode1v3
8 | *.mode2v3
9 | !default.mode2v3
10 | *.perspectivev3
11 | !default.perspectivev3
12 | xcuserdata
13 | *.xccheckout
14 | *.moved-aside
15 | DerivedData
16 | *.hmap
17 | *.ipa
18 | *.xcuserstate
19 |
20 | # CocoaPods
21 | #
22 | # We recommend against adding the Pods directory to your .gitignore. However
23 | # you should judge for yourself, the pros and cons are mentioned at:
24 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
25 | #
26 | #Pods/
27 |
--------------------------------------------------------------------------------
/iKYLoadingHub/iKYLoadingHub/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // iKYLoadingHub
4 | //
5 | // Created by 郑钦洪 on 15/10/6.
6 | // Copyright (c) 2015年 Kingsly. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 | @interface AppDelegate : UIResponder
13 |
14 | @property (strong, nonatomic) UIWindow *window;
15 |
16 | @property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
17 | @property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
18 | @property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;
19 |
20 | - (void)saveContext;
21 | - (NSURL *)applicationDocumentsDirectory;
22 |
23 |
24 | @end
25 |
26 |
--------------------------------------------------------------------------------
/iKYLoadingHub/iKYLoadingHub/ViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.m
3 | // iKYLoadingHub
4 | //
5 | // Created by 郑钦洪 on 15/10/6.
6 | // Copyright (c) 2015年 Kingsly. All rights reserved.
7 | //
8 |
9 | #import "ViewController.h"
10 | #import "iKYLoadingHubView.h"
11 |
12 | @interface ViewController ()
13 |
14 | @end
15 |
16 | @implementation ViewController
17 |
18 | - (void)viewDidLoad {
19 | [super viewDidLoad];
20 | iKYLoadingHubView *loadingHubView = [[iKYLoadingHubView alloc] initWithFrame:CGRectMake(85, 80, 150, 150)];
21 | [self.view addSubview:loadingHubView];
22 | [loadingHubView showHub];
23 | }
24 |
25 | - (void)didReceiveMemoryWarning {
26 | [super didReceiveMemoryWarning];
27 | // Dispose of any resources that can be recreated.
28 | }
29 |
30 | @end
31 |
--------------------------------------------------------------------------------
/iKYLoadingHub/iKYLoadingHubTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | com.kingsly.$(PRODUCT_NAME:rfc1034identifier)
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 |
--------------------------------------------------------------------------------
/iKYLoadingHub/iKYLoadingHubTests/iKYLoadingHubTests.m:
--------------------------------------------------------------------------------
1 | //
2 | // iKYLoadingHubTests.m
3 | // iKYLoadingHubTests
4 | //
5 | // Created by 郑钦洪 on 15/10/6.
6 | // Copyright (c) 2015年 Kingsly. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 | @interface iKYLoadingHubTests : XCTestCase
13 |
14 | @end
15 |
16 | @implementation iKYLoadingHubTests
17 |
18 | - (void)setUp {
19 | [super setUp];
20 | // Put setup code here. This method is called before the invocation of each test method in the class.
21 | }
22 |
23 | - (void)tearDown {
24 | // Put teardown code here. This method is called after the invocation of each test method in the class.
25 | [super tearDown];
26 | }
27 |
28 | - (void)testExample {
29 | // This is an example of a functional test case.
30 | XCTAssert(YES, @"Pass");
31 | }
32 |
33 | - (void)testPerformanceExample {
34 | // This is an example of a performance test case.
35 | [self measureBlock:^{
36 | // Put the code you want to measure the time of here.
37 | }];
38 | }
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/iKYLoadingHub/iKYLoadingHub/Images.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 | "idiom" : "ipad",
35 | "size" : "29x29",
36 | "scale" : "1x"
37 | },
38 | {
39 | "idiom" : "ipad",
40 | "size" : "29x29",
41 | "scale" : "2x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "40x40",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "40x40",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "76x76",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "76x76",
61 | "scale" : "2x"
62 | }
63 | ],
64 | "info" : {
65 | "version" : 1,
66 | "author" : "xcode"
67 | }
68 | }
--------------------------------------------------------------------------------
/iKYLoadingHub/iKYLoadingHub/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | com.kingsly.$(PRODUCT_NAME:rfc1034identifier)
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 | UISupportedInterfaceOrientations~ipad
40 |
41 | UIInterfaceOrientationPortrait
42 | UIInterfaceOrientationPortraitUpsideDown
43 | UIInterfaceOrientationLandscapeLeft
44 | UIInterfaceOrientationLandscapeRight
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/iKYLoadingHub/iKYLoadingHub/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 |
--------------------------------------------------------------------------------
/iKYLoadingHub/iKYLoadingHub/Base.lproj/LaunchScreen.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
20 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/iKYLoadingHub/iKYLoadingHub/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // iKYLoadingHub
4 | //
5 | // Created by 郑钦洪 on 15/10/6.
6 | // Copyright (c) 2015年 Kingsly. 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 | // Saves changes in the application's managed object context before the application terminates.
44 | [self saveContext];
45 | }
46 |
47 | #pragma mark - Core Data stack
48 |
49 | @synthesize managedObjectContext = _managedObjectContext;
50 | @synthesize managedObjectModel = _managedObjectModel;
51 | @synthesize persistentStoreCoordinator = _persistentStoreCoordinator;
52 |
53 | - (NSURL *)applicationDocumentsDirectory {
54 | // The directory the application uses to store the Core Data store file. This code uses a directory named "com.kingsly.iKYLoadingHub" in the application's documents directory.
55 | return [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject];
56 | }
57 |
58 | - (NSManagedObjectModel *)managedObjectModel {
59 | // The managed object model for the application. It is a fatal error for the application not to be able to find and load its model.
60 | if (_managedObjectModel != nil) {
61 | return _managedObjectModel;
62 | }
63 | NSURL *modelURL = [[NSBundle mainBundle] URLForResource:@"iKYLoadingHub" withExtension:@"momd"];
64 | _managedObjectModel = [[NSManagedObjectModel alloc] initWithContentsOfURL:modelURL];
65 | return _managedObjectModel;
66 | }
67 |
68 | - (NSPersistentStoreCoordinator *)persistentStoreCoordinator {
69 | // The persistent store coordinator for the application. This implementation creates and return a coordinator, having added the store for the application to it.
70 | if (_persistentStoreCoordinator != nil) {
71 | return _persistentStoreCoordinator;
72 | }
73 |
74 | // Create the coordinator and store
75 |
76 | _persistentStoreCoordinator = [[NSPersistentStoreCoordinator alloc] initWithManagedObjectModel:[self managedObjectModel]];
77 | NSURL *storeURL = [[self applicationDocumentsDirectory] URLByAppendingPathComponent:@"iKYLoadingHub.sqlite"];
78 | NSError *error = nil;
79 | NSString *failureReason = @"There was an error creating or loading the application's saved data.";
80 | if (![_persistentStoreCoordinator addPersistentStoreWithType:NSSQLiteStoreType configuration:nil URL:storeURL options:nil error:&error]) {
81 | // Report any error we got.
82 | NSMutableDictionary *dict = [NSMutableDictionary dictionary];
83 | dict[NSLocalizedDescriptionKey] = @"Failed to initialize the application's saved data";
84 | dict[NSLocalizedFailureReasonErrorKey] = failureReason;
85 | dict[NSUnderlyingErrorKey] = error;
86 | error = [NSError errorWithDomain:@"YOUR_ERROR_DOMAIN" code:9999 userInfo:dict];
87 | // Replace this with code to handle the error appropriately.
88 | // abort() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development.
89 | NSLog(@"Unresolved error %@, %@", error, [error userInfo]);
90 | abort();
91 | }
92 |
93 | return _persistentStoreCoordinator;
94 | }
95 |
96 |
97 | - (NSManagedObjectContext *)managedObjectContext {
98 | // Returns the managed object context for the application (which is already bound to the persistent store coordinator for the application.)
99 | if (_managedObjectContext != nil) {
100 | return _managedObjectContext;
101 | }
102 |
103 | NSPersistentStoreCoordinator *coordinator = [self persistentStoreCoordinator];
104 | if (!coordinator) {
105 | return nil;
106 | }
107 | _managedObjectContext = [[NSManagedObjectContext alloc] init];
108 | [_managedObjectContext setPersistentStoreCoordinator:coordinator];
109 | return _managedObjectContext;
110 | }
111 |
112 | #pragma mark - Core Data Saving support
113 |
114 | - (void)saveContext {
115 | NSManagedObjectContext *managedObjectContext = self.managedObjectContext;
116 | if (managedObjectContext != nil) {
117 | NSError *error = nil;
118 | if ([managedObjectContext hasChanges] && ![managedObjectContext save:&error]) {
119 | // Replace this implementation with code to handle the error appropriately.
120 | // abort() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development.
121 | NSLog(@"Unresolved error %@, %@", error, [error userInfo]);
122 | abort();
123 | }
124 | }
125 | }
126 |
127 | @end
128 |
--------------------------------------------------------------------------------
/iKYLoadingHub/iKYLoadingHub/iKYLoadingHubView.m:
--------------------------------------------------------------------------------
1 | //
2 | // iKYLoadingHubView.m
3 | // iKYLoadingHub
4 | //
5 | // Created by 郑钦洪 on 15/10/6.
6 | // Copyright (c) 2015年 Kingsly. All rights reserved.
7 | //
8 |
9 | #import "iKYLoadingHubView.h"
10 | #define ORIGIN_X self.frame.origin.x
11 | #define ORIGIN_Y self.frame.origin.y
12 | #define WIDTH self.frame.size.width
13 | #define HEIGHT self.frame.size.height
14 | #define BALL_RADIUS 20
15 |
16 | @interface iKYLoadingHubView ()
17 | /**第1个球 */
18 | @property (nonatomic, strong) UIView *ball_1;
19 | /**第2个球 */
20 | @property (nonatomic, strong) UIView *ball_2;
21 | /**第3个球 */
22 | @property (nonatomic, strong) UIView *ball_3;
23 |
24 | @end
25 |
26 | @implementation iKYLoadingHubView
27 |
28 | - (instancetype)initWithFrame:(CGRect)frame
29 | {
30 | self = [super initWithFrame:frame];
31 | if (self) {
32 | self.backgroundColor = [UIColor clearColor];
33 | UIVisualEffectView *bgView = [[UIVisualEffectView alloc] initWithEffect:[UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]];
34 | bgView.alpha = 0.9f;
35 | bgView.frame = CGRectMake(0, 0, WIDTH, HEIGHT);
36 | bgView.layer.cornerRadius = BALL_RADIUS / 2;
37 | bgView.clipsToBounds = YES;
38 | [self addSubview:bgView];
39 | }
40 | return self;
41 | }
42 |
43 | - (UIColor *)ballColor{
44 | if (_ballColor) {
45 | return _ballColor;
46 | }
47 | return [UIColor blackColor];
48 | }
49 |
50 | - (void)showHub{
51 | CGFloat ballH = HEIGHT / 2 - BALL_RADIUS * 0.5;
52 | UIView *ball_1 = [[UIView alloc] initWithFrame:CGRectMake(WIDTH/2 - BALL_RADIUS * 1.5, ballH, BALL_RADIUS, BALL_RADIUS)];
53 | ball_1.layer.cornerRadius = BALL_RADIUS / 2; // 成为圆形
54 | ball_1.backgroundColor = self.ballColor;
55 | [self addSubview:ball_1];
56 | self.ball_1 = ball_1;
57 |
58 | UIView *ball_2 = [[UIView alloc] initWithFrame:CGRectMake(WIDTH/2 - BALL_RADIUS * 0.5, ballH, BALL_RADIUS, BALL_RADIUS)];
59 | ball_2.layer.cornerRadius = BALL_RADIUS / 2; // 成为圆形
60 | ball_2.backgroundColor = self.ballColor;
61 | [self addSubview:ball_2];
62 | self.ball_2 = ball_2;
63 |
64 | UIView *ball_3 = [[UIView alloc] initWithFrame:CGRectMake(WIDTH/2 + BALL_RADIUS * 0.5, ballH, BALL_RADIUS, BALL_RADIUS)];
65 | ball_3.layer.cornerRadius = BALL_RADIUS / 2; // 成为圆形
66 | ball_3.backgroundColor = self.ballColor;
67 | [self addSubview:ball_3];
68 | self.ball_3 = ball_3;
69 |
70 | [self rotationAnimation];
71 | }
72 |
73 | - (void)rotationAnimation{
74 | // 1.1 取得围绕中心轴的点
75 | CGPoint centerPoint = CGPointMake(WIDTH / 2 , HEIGHT / 2);
76 | // 1.2 获得第一个圆的中点
77 | CGPoint centerBall_1 = CGPointMake(WIDTH/2-BALL_RADIUS, HEIGHT/2);
78 | // 1.3 获得第三个圆的中点
79 | CGPoint centerBall_2 = CGPointMake(WIDTH / 2 + BALL_RADIUS, HEIGHT / 2);
80 |
81 | // 2.1 第一个圆的曲线
82 | UIBezierPath *path_ball_1 = [UIBezierPath bezierPath];
83 | [path_ball_1 moveToPoint:centerBall_1];
84 |
85 | [path_ball_1 addArcWithCenter:centerPoint radius:BALL_RADIUS startAngle:M_PI endAngle:2*M_PI clockwise:NO];
86 | UIBezierPath *path_ball_1_1 = [UIBezierPath bezierPath];
87 | [path_ball_1_1 addArcWithCenter:centerPoint radius:BALL_RADIUS startAngle:0 endAngle:M_PI clockwise:NO];
88 | [path_ball_1 appendPath:path_ball_1_1];
89 |
90 | // 2.2 第一个圆的动画
91 | CAKeyframeAnimation *animation_ball_1=[CAKeyframeAnimation animationWithKeyPath:@"position"];
92 | animation_ball_1.path = path_ball_1.CGPath;
93 | animation_ball_1.removedOnCompletion = NO;
94 | animation_ball_1.fillMode = kCAFillModeForwards;
95 | animation_ball_1.calculationMode = kCAAnimationCubic;
96 | animation_ball_1.repeatCount = 1;
97 | animation_ball_1.duration = 1.4;
98 | animation_ball_1.delegate = self;
99 | animation_ball_1.autoreverses = NO;
100 | animation_ball_1.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
101 |
102 | [self.ball_1.layer addAnimation:animation_ball_1 forKey:@"animation"];
103 |
104 | // 2.1 第一个圆的曲线
105 | UIBezierPath *path_ball_3 = [UIBezierPath bezierPath];
106 | [path_ball_3 moveToPoint:centerBall_2];
107 |
108 | [path_ball_3 addArcWithCenter:centerPoint radius:BALL_RADIUS startAngle:0 endAngle:M_PI clockwise:NO];
109 | UIBezierPath *path_ball_3_1 = [UIBezierPath bezierPath];
110 | [path_ball_3_1 addArcWithCenter:centerPoint radius:BALL_RADIUS startAngle:M_PI endAngle:M_PI*2 clockwise:NO];
111 | [path_ball_3 appendPath:path_ball_3_1];
112 |
113 | // 2.2 第2个圆的动画
114 | CAKeyframeAnimation *animation_ball_3 = [CAKeyframeAnimation animationWithKeyPath:@"position"];
115 | animation_ball_3.path = path_ball_3.CGPath;
116 | animation_ball_3.removedOnCompletion = NO;
117 | animation_ball_3.fillMode = kCAFillModeForwards;
118 | animation_ball_3.calculationMode = kCAAnimationCubic;
119 | animation_ball_3.repeatCount = 1;
120 | animation_ball_3.duration = 1.4;
121 | // animation_ball_3.delegate = self;
122 | animation_ball_3.autoreverses = NO;
123 | animation_ball_3.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
124 |
125 | [self.ball_3.layer addAnimation:animation_ball_3 forKey:@"rotation"];
126 |
127 | }
128 |
129 |
130 | - (void)animationDidStop:(CAAnimation *)anim finished:(BOOL)flag{
131 | [self rotationAnimation];
132 | }
133 |
134 | - (void)animationDidStart:(CAAnimation *)anim{
135 | [UIView animateWithDuration:0.3 delay:0.1 options:UIViewAnimationOptionCurveEaseOut|UIViewAnimationOptionBeginFromCurrentState animations:^{
136 |
137 | self.ball_1.transform = CGAffineTransformMakeTranslation(-BALL_RADIUS, 0);
138 | self.ball_1.transform = CGAffineTransformScale(self.ball_1.transform, 0.7, 0.7);
139 |
140 | self.ball_3.transform = CGAffineTransformMakeTranslation(BALL_RADIUS, 0);
141 | self.ball_3.transform = CGAffineTransformScale(self.ball_3.transform, 0.7, 0.7);
142 |
143 |
144 | self.ball_2.transform = CGAffineTransformScale(self.ball_2.transform, 0.7, 0.7);
145 | } completion:^(BOOL finished) {
146 | [UIView animateWithDuration:0.3 delay:0.1 options:UIViewAnimationOptionCurveEaseIn | UIViewAnimationOptionBeginFromCurrentState animations:^{
147 | self.ball_1.transform = CGAffineTransformIdentity;
148 | self.ball_3.transform = CGAffineTransformIdentity;
149 | self.ball_2.transform = CGAffineTransformIdentity;
150 | } completion:NULL];
151 |
152 | }];
153 | }
154 |
155 | - (void)dismissHub{
156 |
157 | }
158 | @end
159 |
--------------------------------------------------------------------------------
/iKYLoadingHub/iKYLoadingHub.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | E41CFA581BC4030E003DC6F8 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = E41CFA571BC4030E003DC6F8 /* main.m */; };
11 | E41CFA5B1BC4030E003DC6F8 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = E41CFA5A1BC4030E003DC6F8 /* AppDelegate.m */; };
12 | E41CFA5E1BC4030E003DC6F8 /* iKYLoadingHub.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = E41CFA5C1BC4030E003DC6F8 /* iKYLoadingHub.xcdatamodeld */; };
13 | E41CFA611BC4030E003DC6F8 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E41CFA601BC4030E003DC6F8 /* ViewController.m */; };
14 | E41CFA641BC4030E003DC6F8 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E41CFA621BC4030E003DC6F8 /* Main.storyboard */; };
15 | E41CFA661BC4030E003DC6F8 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E41CFA651BC4030E003DC6F8 /* Images.xcassets */; };
16 | E41CFA691BC4030E003DC6F8 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = E41CFA671BC4030E003DC6F8 /* LaunchScreen.xib */; };
17 | E41CFA751BC4030E003DC6F8 /* iKYLoadingHubTests.m in Sources */ = {isa = PBXBuildFile; fileRef = E41CFA741BC4030E003DC6F8 /* iKYLoadingHubTests.m */; };
18 | E41CFA811BC4038B003DC6F8 /* iKYLoadingHubView.m in Sources */ = {isa = PBXBuildFile; fileRef = E41CFA801BC4038B003DC6F8 /* iKYLoadingHubView.m */; };
19 | E48FDE681BC41C94007B9094 /* 001.png in Resources */ = {isa = PBXBuildFile; fileRef = E48FDE671BC41C94007B9094 /* 001.png */; };
20 | /* End PBXBuildFile section */
21 |
22 | /* Begin PBXContainerItemProxy section */
23 | E41CFA6F1BC4030E003DC6F8 /* PBXContainerItemProxy */ = {
24 | isa = PBXContainerItemProxy;
25 | containerPortal = E41CFA4A1BC4030E003DC6F8 /* Project object */;
26 | proxyType = 1;
27 | remoteGlobalIDString = E41CFA511BC4030E003DC6F8;
28 | remoteInfo = iKYLoadingHub;
29 | };
30 | /* End PBXContainerItemProxy section */
31 |
32 | /* Begin PBXFileReference section */
33 | E41CFA521BC4030E003DC6F8 /* iKYLoadingHub.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = iKYLoadingHub.app; sourceTree = BUILT_PRODUCTS_DIR; };
34 | E41CFA561BC4030E003DC6F8 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
35 | E41CFA571BC4030E003DC6F8 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
36 | E41CFA591BC4030E003DC6F8 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
37 | E41CFA5A1BC4030E003DC6F8 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
38 | E41CFA5D1BC4030E003DC6F8 /* iKYLoadingHub.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = iKYLoadingHub.xcdatamodel; sourceTree = ""; };
39 | E41CFA5F1BC4030E003DC6F8 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; };
40 | E41CFA601BC4030E003DC6F8 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; };
41 | E41CFA631BC4030E003DC6F8 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
42 | E41CFA651BC4030E003DC6F8 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; };
43 | E41CFA681BC4030E003DC6F8 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; };
44 | E41CFA6E1BC4030E003DC6F8 /* iKYLoadingHubTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = iKYLoadingHubTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
45 | E41CFA731BC4030E003DC6F8 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
46 | E41CFA741BC4030E003DC6F8 /* iKYLoadingHubTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = iKYLoadingHubTests.m; sourceTree = ""; };
47 | E41CFA7F1BC4038B003DC6F8 /* iKYLoadingHubView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = iKYLoadingHubView.h; sourceTree = ""; };
48 | E41CFA801BC4038B003DC6F8 /* iKYLoadingHubView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = iKYLoadingHubView.m; sourceTree = ""; };
49 | E48FDE671BC41C94007B9094 /* 001.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = 001.png; sourceTree = ""; };
50 | /* End PBXFileReference section */
51 |
52 | /* Begin PBXFrameworksBuildPhase section */
53 | E41CFA4F1BC4030E003DC6F8 /* Frameworks */ = {
54 | isa = PBXFrameworksBuildPhase;
55 | buildActionMask = 2147483647;
56 | files = (
57 | );
58 | runOnlyForDeploymentPostprocessing = 0;
59 | };
60 | E41CFA6B1BC4030E003DC6F8 /* Frameworks */ = {
61 | isa = PBXFrameworksBuildPhase;
62 | buildActionMask = 2147483647;
63 | files = (
64 | );
65 | runOnlyForDeploymentPostprocessing = 0;
66 | };
67 | /* End PBXFrameworksBuildPhase section */
68 |
69 | /* Begin PBXGroup section */
70 | E41CFA491BC4030E003DC6F8 = {
71 | isa = PBXGroup;
72 | children = (
73 | E41CFA541BC4030E003DC6F8 /* iKYLoadingHub */,
74 | E41CFA711BC4030E003DC6F8 /* iKYLoadingHubTests */,
75 | E41CFA531BC4030E003DC6F8 /* Products */,
76 | );
77 | sourceTree = "";
78 | };
79 | E41CFA531BC4030E003DC6F8 /* Products */ = {
80 | isa = PBXGroup;
81 | children = (
82 | E41CFA521BC4030E003DC6F8 /* iKYLoadingHub.app */,
83 | E41CFA6E1BC4030E003DC6F8 /* iKYLoadingHubTests.xctest */,
84 | );
85 | name = Products;
86 | sourceTree = "";
87 | };
88 | E41CFA541BC4030E003DC6F8 /* iKYLoadingHub */ = {
89 | isa = PBXGroup;
90 | children = (
91 | E41CFA7E1BC4035F003DC6F8 /* iKYLoadingHubView */,
92 | E41CFA591BC4030E003DC6F8 /* AppDelegate.h */,
93 | E41CFA5A1BC4030E003DC6F8 /* AppDelegate.m */,
94 | E41CFA5F1BC4030E003DC6F8 /* ViewController.h */,
95 | E41CFA601BC4030E003DC6F8 /* ViewController.m */,
96 | E41CFA621BC4030E003DC6F8 /* Main.storyboard */,
97 | E41CFA651BC4030E003DC6F8 /* Images.xcassets */,
98 | E48FDE671BC41C94007B9094 /* 001.png */,
99 | E41CFA671BC4030E003DC6F8 /* LaunchScreen.xib */,
100 | E41CFA5C1BC4030E003DC6F8 /* iKYLoadingHub.xcdatamodeld */,
101 | E41CFA551BC4030E003DC6F8 /* Supporting Files */,
102 | );
103 | path = iKYLoadingHub;
104 | sourceTree = "";
105 | };
106 | E41CFA551BC4030E003DC6F8 /* Supporting Files */ = {
107 | isa = PBXGroup;
108 | children = (
109 | E41CFA561BC4030E003DC6F8 /* Info.plist */,
110 | E41CFA571BC4030E003DC6F8 /* main.m */,
111 | );
112 | name = "Supporting Files";
113 | sourceTree = "";
114 | };
115 | E41CFA711BC4030E003DC6F8 /* iKYLoadingHubTests */ = {
116 | isa = PBXGroup;
117 | children = (
118 | E41CFA741BC4030E003DC6F8 /* iKYLoadingHubTests.m */,
119 | E41CFA721BC4030E003DC6F8 /* Supporting Files */,
120 | );
121 | path = iKYLoadingHubTests;
122 | sourceTree = "";
123 | };
124 | E41CFA721BC4030E003DC6F8 /* Supporting Files */ = {
125 | isa = PBXGroup;
126 | children = (
127 | E41CFA731BC4030E003DC6F8 /* Info.plist */,
128 | );
129 | name = "Supporting Files";
130 | sourceTree = "";
131 | };
132 | E41CFA7E1BC4035F003DC6F8 /* iKYLoadingHubView */ = {
133 | isa = PBXGroup;
134 | children = (
135 | E41CFA7F1BC4038B003DC6F8 /* iKYLoadingHubView.h */,
136 | E41CFA801BC4038B003DC6F8 /* iKYLoadingHubView.m */,
137 | );
138 | name = iKYLoadingHubView;
139 | sourceTree = "";
140 | };
141 | /* End PBXGroup section */
142 |
143 | /* Begin PBXNativeTarget section */
144 | E41CFA511BC4030E003DC6F8 /* iKYLoadingHub */ = {
145 | isa = PBXNativeTarget;
146 | buildConfigurationList = E41CFA781BC4030E003DC6F8 /* Build configuration list for PBXNativeTarget "iKYLoadingHub" */;
147 | buildPhases = (
148 | E41CFA4E1BC4030E003DC6F8 /* Sources */,
149 | E41CFA4F1BC4030E003DC6F8 /* Frameworks */,
150 | E41CFA501BC4030E003DC6F8 /* Resources */,
151 | );
152 | buildRules = (
153 | );
154 | dependencies = (
155 | );
156 | name = iKYLoadingHub;
157 | productName = iKYLoadingHub;
158 | productReference = E41CFA521BC4030E003DC6F8 /* iKYLoadingHub.app */;
159 | productType = "com.apple.product-type.application";
160 | };
161 | E41CFA6D1BC4030E003DC6F8 /* iKYLoadingHubTests */ = {
162 | isa = PBXNativeTarget;
163 | buildConfigurationList = E41CFA7B1BC4030E003DC6F8 /* Build configuration list for PBXNativeTarget "iKYLoadingHubTests" */;
164 | buildPhases = (
165 | E41CFA6A1BC4030E003DC6F8 /* Sources */,
166 | E41CFA6B1BC4030E003DC6F8 /* Frameworks */,
167 | E41CFA6C1BC4030E003DC6F8 /* Resources */,
168 | );
169 | buildRules = (
170 | );
171 | dependencies = (
172 | E41CFA701BC4030E003DC6F8 /* PBXTargetDependency */,
173 | );
174 | name = iKYLoadingHubTests;
175 | productName = iKYLoadingHubTests;
176 | productReference = E41CFA6E1BC4030E003DC6F8 /* iKYLoadingHubTests.xctest */;
177 | productType = "com.apple.product-type.bundle.unit-test";
178 | };
179 | /* End PBXNativeTarget section */
180 |
181 | /* Begin PBXProject section */
182 | E41CFA4A1BC4030E003DC6F8 /* Project object */ = {
183 | isa = PBXProject;
184 | attributes = {
185 | LastUpgradeCheck = 0640;
186 | ORGANIZATIONNAME = Kingsly;
187 | TargetAttributes = {
188 | E41CFA511BC4030E003DC6F8 = {
189 | CreatedOnToolsVersion = 6.4;
190 | };
191 | E41CFA6D1BC4030E003DC6F8 = {
192 | CreatedOnToolsVersion = 6.4;
193 | TestTargetID = E41CFA511BC4030E003DC6F8;
194 | };
195 | };
196 | };
197 | buildConfigurationList = E41CFA4D1BC4030E003DC6F8 /* Build configuration list for PBXProject "iKYLoadingHub" */;
198 | compatibilityVersion = "Xcode 3.2";
199 | developmentRegion = English;
200 | hasScannedForEncodings = 0;
201 | knownRegions = (
202 | en,
203 | Base,
204 | );
205 | mainGroup = E41CFA491BC4030E003DC6F8;
206 | productRefGroup = E41CFA531BC4030E003DC6F8 /* Products */;
207 | projectDirPath = "";
208 | projectRoot = "";
209 | targets = (
210 | E41CFA511BC4030E003DC6F8 /* iKYLoadingHub */,
211 | E41CFA6D1BC4030E003DC6F8 /* iKYLoadingHubTests */,
212 | );
213 | };
214 | /* End PBXProject section */
215 |
216 | /* Begin PBXResourcesBuildPhase section */
217 | E41CFA501BC4030E003DC6F8 /* Resources */ = {
218 | isa = PBXResourcesBuildPhase;
219 | buildActionMask = 2147483647;
220 | files = (
221 | E41CFA641BC4030E003DC6F8 /* Main.storyboard in Resources */,
222 | E41CFA691BC4030E003DC6F8 /* LaunchScreen.xib in Resources */,
223 | E41CFA661BC4030E003DC6F8 /* Images.xcassets in Resources */,
224 | E48FDE681BC41C94007B9094 /* 001.png in Resources */,
225 | );
226 | runOnlyForDeploymentPostprocessing = 0;
227 | };
228 | E41CFA6C1BC4030E003DC6F8 /* Resources */ = {
229 | isa = PBXResourcesBuildPhase;
230 | buildActionMask = 2147483647;
231 | files = (
232 | );
233 | runOnlyForDeploymentPostprocessing = 0;
234 | };
235 | /* End PBXResourcesBuildPhase section */
236 |
237 | /* Begin PBXSourcesBuildPhase section */
238 | E41CFA4E1BC4030E003DC6F8 /* Sources */ = {
239 | isa = PBXSourcesBuildPhase;
240 | buildActionMask = 2147483647;
241 | files = (
242 | E41CFA811BC4038B003DC6F8 /* iKYLoadingHubView.m in Sources */,
243 | E41CFA5B1BC4030E003DC6F8 /* AppDelegate.m in Sources */,
244 | E41CFA581BC4030E003DC6F8 /* main.m in Sources */,
245 | E41CFA611BC4030E003DC6F8 /* ViewController.m in Sources */,
246 | E41CFA5E1BC4030E003DC6F8 /* iKYLoadingHub.xcdatamodeld in Sources */,
247 | );
248 | runOnlyForDeploymentPostprocessing = 0;
249 | };
250 | E41CFA6A1BC4030E003DC6F8 /* Sources */ = {
251 | isa = PBXSourcesBuildPhase;
252 | buildActionMask = 2147483647;
253 | files = (
254 | E41CFA751BC4030E003DC6F8 /* iKYLoadingHubTests.m in Sources */,
255 | );
256 | runOnlyForDeploymentPostprocessing = 0;
257 | };
258 | /* End PBXSourcesBuildPhase section */
259 |
260 | /* Begin PBXTargetDependency section */
261 | E41CFA701BC4030E003DC6F8 /* PBXTargetDependency */ = {
262 | isa = PBXTargetDependency;
263 | target = E41CFA511BC4030E003DC6F8 /* iKYLoadingHub */;
264 | targetProxy = E41CFA6F1BC4030E003DC6F8 /* PBXContainerItemProxy */;
265 | };
266 | /* End PBXTargetDependency section */
267 |
268 | /* Begin PBXVariantGroup section */
269 | E41CFA621BC4030E003DC6F8 /* Main.storyboard */ = {
270 | isa = PBXVariantGroup;
271 | children = (
272 | E41CFA631BC4030E003DC6F8 /* Base */,
273 | );
274 | name = Main.storyboard;
275 | sourceTree = "";
276 | };
277 | E41CFA671BC4030E003DC6F8 /* LaunchScreen.xib */ = {
278 | isa = PBXVariantGroup;
279 | children = (
280 | E41CFA681BC4030E003DC6F8 /* Base */,
281 | );
282 | name = LaunchScreen.xib;
283 | sourceTree = "";
284 | };
285 | /* End PBXVariantGroup section */
286 |
287 | /* Begin XCBuildConfiguration section */
288 | E41CFA761BC4030E003DC6F8 /* Debug */ = {
289 | isa = XCBuildConfiguration;
290 | buildSettings = {
291 | ALWAYS_SEARCH_USER_PATHS = NO;
292 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
293 | CLANG_CXX_LIBRARY = "libc++";
294 | CLANG_ENABLE_MODULES = YES;
295 | CLANG_ENABLE_OBJC_ARC = YES;
296 | CLANG_WARN_BOOL_CONVERSION = YES;
297 | CLANG_WARN_CONSTANT_CONVERSION = YES;
298 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
299 | CLANG_WARN_EMPTY_BODY = YES;
300 | CLANG_WARN_ENUM_CONVERSION = YES;
301 | CLANG_WARN_INT_CONVERSION = YES;
302 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
303 | CLANG_WARN_UNREACHABLE_CODE = YES;
304 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
305 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
306 | COPY_PHASE_STRIP = NO;
307 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
308 | ENABLE_STRICT_OBJC_MSGSEND = YES;
309 | GCC_C_LANGUAGE_STANDARD = gnu99;
310 | GCC_DYNAMIC_NO_PIC = NO;
311 | GCC_NO_COMMON_BLOCKS = YES;
312 | GCC_OPTIMIZATION_LEVEL = 0;
313 | GCC_PREPROCESSOR_DEFINITIONS = (
314 | "DEBUG=1",
315 | "$(inherited)",
316 | );
317 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
318 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
319 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
320 | GCC_WARN_UNDECLARED_SELECTOR = YES;
321 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
322 | GCC_WARN_UNUSED_FUNCTION = YES;
323 | GCC_WARN_UNUSED_VARIABLE = YES;
324 | IPHONEOS_DEPLOYMENT_TARGET = 8.4;
325 | MTL_ENABLE_DEBUG_INFO = YES;
326 | ONLY_ACTIVE_ARCH = YES;
327 | SDKROOT = iphoneos;
328 | TARGETED_DEVICE_FAMILY = "1,2";
329 | };
330 | name = Debug;
331 | };
332 | E41CFA771BC4030E003DC6F8 /* Release */ = {
333 | isa = XCBuildConfiguration;
334 | buildSettings = {
335 | ALWAYS_SEARCH_USER_PATHS = NO;
336 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
337 | CLANG_CXX_LIBRARY = "libc++";
338 | CLANG_ENABLE_MODULES = YES;
339 | CLANG_ENABLE_OBJC_ARC = YES;
340 | CLANG_WARN_BOOL_CONVERSION = YES;
341 | CLANG_WARN_CONSTANT_CONVERSION = YES;
342 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
343 | CLANG_WARN_EMPTY_BODY = YES;
344 | CLANG_WARN_ENUM_CONVERSION = YES;
345 | CLANG_WARN_INT_CONVERSION = YES;
346 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
347 | CLANG_WARN_UNREACHABLE_CODE = YES;
348 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
349 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
350 | COPY_PHASE_STRIP = NO;
351 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
352 | ENABLE_NS_ASSERTIONS = NO;
353 | ENABLE_STRICT_OBJC_MSGSEND = YES;
354 | GCC_C_LANGUAGE_STANDARD = gnu99;
355 | GCC_NO_COMMON_BLOCKS = YES;
356 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
357 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
358 | GCC_WARN_UNDECLARED_SELECTOR = YES;
359 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
360 | GCC_WARN_UNUSED_FUNCTION = YES;
361 | GCC_WARN_UNUSED_VARIABLE = YES;
362 | IPHONEOS_DEPLOYMENT_TARGET = 8.4;
363 | MTL_ENABLE_DEBUG_INFO = NO;
364 | SDKROOT = iphoneos;
365 | TARGETED_DEVICE_FAMILY = "1,2";
366 | VALIDATE_PRODUCT = YES;
367 | };
368 | name = Release;
369 | };
370 | E41CFA791BC4030E003DC6F8 /* Debug */ = {
371 | isa = XCBuildConfiguration;
372 | buildSettings = {
373 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
374 | INFOPLIST_FILE = iKYLoadingHub/Info.plist;
375 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
376 | PRODUCT_NAME = "$(TARGET_NAME)";
377 | };
378 | name = Debug;
379 | };
380 | E41CFA7A1BC4030E003DC6F8 /* Release */ = {
381 | isa = XCBuildConfiguration;
382 | buildSettings = {
383 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
384 | INFOPLIST_FILE = iKYLoadingHub/Info.plist;
385 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
386 | PRODUCT_NAME = "$(TARGET_NAME)";
387 | };
388 | name = Release;
389 | };
390 | E41CFA7C1BC4030E003DC6F8 /* Debug */ = {
391 | isa = XCBuildConfiguration;
392 | buildSettings = {
393 | BUNDLE_LOADER = "$(TEST_HOST)";
394 | FRAMEWORK_SEARCH_PATHS = (
395 | "$(SDKROOT)/Developer/Library/Frameworks",
396 | "$(inherited)",
397 | );
398 | GCC_PREPROCESSOR_DEFINITIONS = (
399 | "DEBUG=1",
400 | "$(inherited)",
401 | );
402 | INFOPLIST_FILE = iKYLoadingHubTests/Info.plist;
403 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
404 | PRODUCT_NAME = "$(TARGET_NAME)";
405 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/iKYLoadingHub.app/iKYLoadingHub";
406 | };
407 | name = Debug;
408 | };
409 | E41CFA7D1BC4030E003DC6F8 /* Release */ = {
410 | isa = XCBuildConfiguration;
411 | buildSettings = {
412 | BUNDLE_LOADER = "$(TEST_HOST)";
413 | FRAMEWORK_SEARCH_PATHS = (
414 | "$(SDKROOT)/Developer/Library/Frameworks",
415 | "$(inherited)",
416 | );
417 | INFOPLIST_FILE = iKYLoadingHubTests/Info.plist;
418 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
419 | PRODUCT_NAME = "$(TARGET_NAME)";
420 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/iKYLoadingHub.app/iKYLoadingHub";
421 | };
422 | name = Release;
423 | };
424 | /* End XCBuildConfiguration section */
425 |
426 | /* Begin XCConfigurationList section */
427 | E41CFA4D1BC4030E003DC6F8 /* Build configuration list for PBXProject "iKYLoadingHub" */ = {
428 | isa = XCConfigurationList;
429 | buildConfigurations = (
430 | E41CFA761BC4030E003DC6F8 /* Debug */,
431 | E41CFA771BC4030E003DC6F8 /* Release */,
432 | );
433 | defaultConfigurationIsVisible = 0;
434 | defaultConfigurationName = Release;
435 | };
436 | E41CFA781BC4030E003DC6F8 /* Build configuration list for PBXNativeTarget "iKYLoadingHub" */ = {
437 | isa = XCConfigurationList;
438 | buildConfigurations = (
439 | E41CFA791BC4030E003DC6F8 /* Debug */,
440 | E41CFA7A1BC4030E003DC6F8 /* Release */,
441 | );
442 | defaultConfigurationIsVisible = 0;
443 | defaultConfigurationName = Release;
444 | };
445 | E41CFA7B1BC4030E003DC6F8 /* Build configuration list for PBXNativeTarget "iKYLoadingHubTests" */ = {
446 | isa = XCConfigurationList;
447 | buildConfigurations = (
448 | E41CFA7C1BC4030E003DC6F8 /* Debug */,
449 | E41CFA7D1BC4030E003DC6F8 /* Release */,
450 | );
451 | defaultConfigurationIsVisible = 0;
452 | defaultConfigurationName = Release;
453 | };
454 | /* End XCConfigurationList section */
455 |
456 | /* Begin XCVersionGroup section */
457 | E41CFA5C1BC4030E003DC6F8 /* iKYLoadingHub.xcdatamodeld */ = {
458 | isa = XCVersionGroup;
459 | children = (
460 | E41CFA5D1BC4030E003DC6F8 /* iKYLoadingHub.xcdatamodel */,
461 | );
462 | currentVersion = E41CFA5D1BC4030E003DC6F8 /* iKYLoadingHub.xcdatamodel */;
463 | path = iKYLoadingHub.xcdatamodeld;
464 | sourceTree = "";
465 | versionGroupType = wrapper.xcdatamodel;
466 | };
467 | /* End XCVersionGroup section */
468 | };
469 | rootObject = E41CFA4A1BC4030E003DC6F8 /* Project object */;
470 | }
471 |
--------------------------------------------------------------------------------