├── GIF └── 1.gif ├── XLBallLoadingDemo ├── XLBallLoadingDemo.xcodeproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ ├── xcuserdata │ │ │ └── MengXianLiang.xcuserdatad │ │ │ │ └── UserInterfaceState.xcuserstate │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ ├── xcuserdata │ │ └── MengXianLiang.xcuserdatad │ │ │ ├── xcdebugger │ │ │ └── Breakpoints_v2.xcbkptlist │ │ │ └── xcschemes │ │ │ ├── xcschememanagement.plist │ │ │ └── XLBallLoadingDemo.xcscheme │ └── project.pbxproj ├── XLBallLoadingDemo │ ├── ViewController.h │ ├── AppDelegate.h │ ├── main.m │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── ViewController.m │ ├── Info.plist │ ├── Base.lproj │ │ ├── Main.storyboard │ │ └── LaunchScreen.storyboard │ └── AppDelegate.m └── XLBallLoading │ ├── XLBallLoading.h │ └── XLBallLoading.m └── README.md /GIF/1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mengxianliang/XLBallLoading/HEAD/GIF/1.gif -------------------------------------------------------------------------------- /XLBallLoadingDemo/XLBallLoadingDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /XLBallLoadingDemo/XLBallLoadingDemo.xcodeproj/project.xcworkspace/xcuserdata/MengXianLiang.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mengxianliang/XLBallLoading/HEAD/XLBallLoadingDemo/XLBallLoadingDemo.xcodeproj/project.xcworkspace/xcuserdata/MengXianLiang.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /XLBallLoadingDemo/XLBallLoadingDemo/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // XLBallLoadingDemo 4 | // 5 | // Created by MengXianLiang on 2017/3/21. 6 | // Copyright © 2017年 MengXianLiang. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /XLBallLoadingDemo/XLBallLoadingDemo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /XLBallLoadingDemo/XLBallLoadingDemo/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // XLBallLoadingDemo 4 | // 5 | // Created by MengXianLiang on 2017/3/21. 6 | // Copyright © 2017年 MengXianLiang. 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 | -------------------------------------------------------------------------------- /XLBallLoadingDemo/XLBallLoading/XLBallLoading.h: -------------------------------------------------------------------------------- 1 | // 2 | // XLBallLoading.h 3 | // XLBallLoadingDemo 4 | // 5 | // Created by MengXianLiang on 2017/3/21. 6 | // Copyright © 2017年 MengXianLiang. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface XLBallLoading : UIView 12 | 13 | -(void)start; 14 | 15 | -(void)stop; 16 | 17 | +(void)showInView:(UIView*)view; 18 | 19 | +(void)hideInView:(UIView*)view; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /XLBallLoadingDemo/XLBallLoadingDemo/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // XLBallLoadingDemo 4 | // 5 | // Created by MengXianLiang on 2017/3/21. 6 | // Copyright © 2017年 MengXianLiang. 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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # XLBallLoading 2 | 3 | ### 显示效果 4 | 5 | 6 | 7 | ### 使用方法 8 | 9 | * 显示 10 | ```objc 11 | [XLBallLoading showInView:self.view]; 12 | ``` 13 | 14 | * 隐藏 15 | ```objc 16 | [XLBallLoading hideInView:self.view]; 17 | ``` 18 | ### 实现原理讲解请移步[我的博文](http://blog.csdn.net/u013282507/article/details/70145151) 19 | 20 | ### 个人开发过的UI工具集合 [XLUIKit](https://github.com/mengxianliang/XLUIKit) 21 | -------------------------------------------------------------------------------- /XLBallLoadingDemo/XLBallLoadingDemo.xcodeproj/xcuserdata/MengXianLiang.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 8 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /XLBallLoadingDemo/XLBallLoadingDemo.xcodeproj/xcuserdata/MengXianLiang.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | XLBallLoadingDemo.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 5E698A2D1E80C003006D2A4F 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /XLBallLoadingDemo/XLBallLoadingDemo/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | } 43 | ], 44 | "info" : { 45 | "version" : 1, 46 | "author" : "xcode" 47 | } 48 | } -------------------------------------------------------------------------------- /XLBallLoadingDemo/XLBallLoadingDemo/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // XLBallLoadingDemo 4 | // 5 | // Created by MengXianLiang on 2017/3/21. 6 | // Copyright © 2017年 MengXianLiang. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | #import "XLBallLoading.h" 11 | 12 | @interface ViewController () 13 | 14 | @end 15 | 16 | @implementation ViewController 17 | 18 | - (void)viewDidLoad { 19 | [super viewDidLoad]; 20 | 21 | self.view.backgroundColor = [UIColor whiteColor]; 22 | 23 | self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"显示" style:UIBarButtonItemStylePlain target:self action:@selector(show)]; 24 | 25 | self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"隐藏" style:UIBarButtonItemStylePlain target:self action:@selector(hide)]; 26 | 27 | [XLBallLoading showInView:self.view]; 28 | } 29 | 30 | -(void)show{ 31 | //显示BallLoading 32 | [XLBallLoading showInView:self.view]; 33 | } 34 | 35 | -(void)hide{ 36 | //隐藏BallLoading 37 | [XLBallLoading hideInView:self.view]; 38 | } 39 | 40 | - (void)didReceiveMemoryWarning { 41 | [super didReceiveMemoryWarning]; 42 | } 43 | 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /XLBallLoadingDemo/XLBallLoadingDemo/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /XLBallLoadingDemo/XLBallLoadingDemo/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 | -------------------------------------------------------------------------------- /XLBallLoadingDemo/XLBallLoadingDemo/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 | -------------------------------------------------------------------------------- /XLBallLoadingDemo/XLBallLoadingDemo/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // XLBallLoadingDemo 4 | // 5 | // Created by MengXianLiang on 2017/3/21. 6 | // Copyright © 2017年 MengXianLiang. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | #import "ViewController.h" 11 | 12 | @interface AppDelegate () 13 | 14 | @end 15 | 16 | @implementation AppDelegate 17 | 18 | 19 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 20 | 21 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 22 | [self.window makeKeyAndVisible]; 23 | UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:[ViewController new]]; 24 | self.window.rootViewController = nav; 25 | 26 | return YES; 27 | } 28 | 29 | 30 | - (void)applicationWillResignActive:(UIApplication *)application { 31 | // 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. 32 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 33 | } 34 | 35 | 36 | - (void)applicationDidEnterBackground:(UIApplication *)application { 37 | // 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. 38 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 39 | } 40 | 41 | 42 | - (void)applicationWillEnterForeground:(UIApplication *)application { 43 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 44 | } 45 | 46 | 47 | - (void)applicationDidBecomeActive:(UIApplication *)application { 48 | // 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. 49 | } 50 | 51 | 52 | - (void)applicationWillTerminate:(UIApplication *)application { 53 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 54 | } 55 | 56 | 57 | @end 58 | -------------------------------------------------------------------------------- /XLBallLoadingDemo/XLBallLoadingDemo.xcodeproj/xcuserdata/MengXianLiang.xcuserdatad/xcschemes/XLBallLoadingDemo.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 | -------------------------------------------------------------------------------- /XLBallLoadingDemo/XLBallLoading/XLBallLoading.m: -------------------------------------------------------------------------------- 1 | // 2 | // XLBallLoading.m 3 | // XLBallLoadingDemo 4 | // 5 | // Created by MengXianLiang on 2017/3/21. 6 | // Copyright © 2017年 MengXianLiang. All rights reserved. 7 | // 8 | 9 | #import "XLBallLoading.h" 10 | 11 | static CGFloat ballScale = 1.5f; 12 | 13 | @interface XLBallLoading () { 14 | 15 | UIVisualEffectView *_ballContainer; 16 | 17 | UIView *_ball1; 18 | 19 | UIView *_ball2; 20 | 21 | UIView *_ball3; 22 | 23 | BOOL _stopAnimationByUser; 24 | } 25 | @end 26 | 27 | @implementation XLBallLoading 28 | 29 | - (instancetype)initWithFrame:(CGRect)frame { 30 | if (self = [super initWithFrame:frame]) { 31 | [self initUI]; 32 | } 33 | return self; 34 | } 35 | 36 | -(void)initUI{ 37 | _ballContainer = [[UIVisualEffectView alloc] initWithEffect:[UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]]; 38 | _ballContainer.frame = CGRectMake(0, 0, 100, 100); 39 | _ballContainer.center = CGPointMake(self.bounds.size.width/2.0f, self.bounds.size.height/2.0f); 40 | _ballContainer.layer.cornerRadius = 10.0f; 41 | _ballContainer.layer.masksToBounds = true; 42 | _ballContainer.backgroundColor = [UIColor clearColor]; 43 | [self addSubview:_ballContainer]; 44 | 45 | CGFloat ballWidth = 13.0f; 46 | CGFloat margin = 3.0f; 47 | 48 | _ball1 = [[UIView alloc] initWithFrame:CGRectMake(0, 0, ballWidth, ballWidth)]; 49 | _ball1.center = CGPointMake(ballWidth/2.0f + margin, _ballContainer.bounds.size.height/2.0f); 50 | _ball1.layer.cornerRadius = ballWidth/2.0f; 51 | _ball1.backgroundColor = [UIColor colorWithRed:54/255.0 green:136/255.0 blue:250/255.0 alpha:1]; 52 | [_ballContainer.contentView addSubview:_ball1]; 53 | 54 | _ball2 = [[UIView alloc] initWithFrame:CGRectMake(0, 0, ballWidth, ballWidth)]; 55 | _ball2.center = CGPointMake(_ballContainer.bounds.size.width/2.0f, _ballContainer.bounds.size.height/2.0f); 56 | _ball2.layer.cornerRadius = ballWidth/2.0f; 57 | _ball2.backgroundColor = [UIColor colorWithRed:100/255.0 green:100/255.0 blue:100/255.0 alpha:1]; 58 | [_ballContainer.contentView addSubview:_ball2]; 59 | 60 | _ball3 = [[UIView alloc] initWithFrame:CGRectMake(0, 0, ballWidth, ballWidth)]; 61 | _ball3.center = CGPointMake(_ballContainer.bounds.size.width - ballWidth/2.0f - margin, _ballContainer.bounds.size.height/2.0f); 62 | _ball3.layer.cornerRadius = ballWidth/2.0f; 63 | _ball3.backgroundColor = [UIColor colorWithRed:234/255.0 green:67/255.0 blue:69/255.0 alpha:1]; 64 | [_ballContainer.contentView addSubview:_ball3]; 65 | } 66 | 67 | -(void)startPathAnimate{ 68 | 69 | //-------第一个球的动画 70 | CGFloat width = _ballContainer.bounds.size.width; 71 | //小圆半径 72 | CGFloat r = (_ball1.bounds.size.width)*ballScale/2.0f; 73 | //大圆半径 74 | CGFloat R = (width/2 + r)/2.0; 75 | 76 | UIBezierPath *path1 = [UIBezierPath bezierPath]; 77 | [path1 moveToPoint:_ball1.center]; 78 | //画大圆 79 | [path1 addArcWithCenter:CGPointMake(R + r, width/2) radius:R startAngle:M_PI endAngle:M_PI*2 clockwise:NO]; 80 | //画小圆 81 | UIBezierPath *path1_1 = [UIBezierPath bezierPath]; 82 | [path1_1 addArcWithCenter:CGPointMake(width/2, width/2) radius:r*2 startAngle:M_PI*2 endAngle:M_PI clockwise:NO]; 83 | [path1 appendPath:path1_1]; 84 | //回到原处 85 | [path1 addLineToPoint:_ball1.center]; 86 | //执行动画 87 | CAKeyframeAnimation *animation1 = [CAKeyframeAnimation animationWithKeyPath:@"position"]; 88 | animation1.path = path1.CGPath; 89 | animation1.removedOnCompletion = YES; 90 | animation1.duration = [self animationDuration]; 91 | animation1.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]; 92 | [_ball1.layer addAnimation:animation1 forKey:@"animation1"]; 93 | 94 | 95 | //-------第三个球的动画 96 | UIBezierPath *path3 = [UIBezierPath bezierPath]; 97 | [path3 moveToPoint:_ball3.center]; 98 | //画大圆 99 | [path3 addArcWithCenter:CGPointMake(width - (R + r), width/2) radius:R startAngle:2*M_PI endAngle:M_PI clockwise:NO]; 100 | //画小圆 101 | UIBezierPath *path3_1 = [UIBezierPath bezierPath]; 102 | [path3_1 addArcWithCenter:CGPointMake(width/2, width/2) radius:r*2 startAngle:M_PI endAngle:M_PI*2 clockwise:NO]; 103 | [path3 appendPath:path3_1]; 104 | //回到原处 105 | [path3 addLineToPoint:_ball3.center]; 106 | //执行动画 107 | CAKeyframeAnimation *animation3 = [CAKeyframeAnimation animationWithKeyPath:@"position"]; 108 | animation3.path = path3.CGPath; 109 | animation3.removedOnCompletion = YES; 110 | animation3.duration = [self animationDuration]; 111 | animation3.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]; 112 | animation3.delegate = self; 113 | [_ball3.layer addAnimation:animation3 forKey:@"animation3"]; 114 | } 115 | 116 | 117 | //放大缩小动画 118 | -(void)animationDidStart:(CAAnimation *)anim{ 119 | 120 | CGFloat delay = 0.3f; 121 | CGFloat duration = [self animationDuration]/2 - delay; 122 | 123 | [UIView animateWithDuration:duration delay:delay options:UIViewAnimationOptionCurveEaseOut| UIViewAnimationOptionBeginFromCurrentState animations:^{ 124 | _ball1.transform = CGAffineTransformMakeScale(ballScale, ballScale); 125 | _ball2.transform = CGAffineTransformMakeScale(ballScale, ballScale); 126 | _ball3.transform = CGAffineTransformMakeScale(ballScale, ballScale); 127 | } completion:^(BOOL finished) { 128 | [UIView animateWithDuration:duration delay:delay options:UIViewAnimationOptionCurveEaseInOut| UIViewAnimationOptionBeginFromCurrentState animations:^{ 129 | _ball1.transform = CGAffineTransformIdentity; 130 | _ball2.transform = CGAffineTransformIdentity; 131 | _ball3.transform = CGAffineTransformIdentity; 132 | } completion:nil]; 133 | }]; 134 | } 135 | 136 | - (void)animationDidStop:(CAAnimation *)anim finished:(BOOL)flag{ 137 | if (_stopAnimationByUser) {return;} 138 | [self startPathAnimate]; 139 | } 140 | 141 | - (CGFloat)animationDuration { 142 | return 1.6f; 143 | } 144 | 145 | #pragma mark - 146 | #pragma mark 显示隐藏方法 147 | - (void)start { 148 | [self startPathAnimate]; 149 | _stopAnimationByUser = false; 150 | } 151 | 152 | - (void)stop { 153 | _stopAnimationByUser = true; 154 | [_ball1.layer removeAllAnimations]; 155 | [_ball1 removeFromSuperview]; 156 | [_ball2.layer removeAllAnimations]; 157 | [_ball2 removeFromSuperview]; 158 | [_ball3.layer removeAllAnimations]; 159 | [_ball3 removeFromSuperview]; 160 | } 161 | 162 | +(void)showInView:(UIView *)view{ 163 | [self hideInView:view]; 164 | XLBallLoading *loading = [[XLBallLoading alloc] initWithFrame:view.bounds]; 165 | [view addSubview:loading]; 166 | [loading start]; 167 | } 168 | 169 | +(void)hideInView:(UIView *)view{ 170 | for (XLBallLoading *loading in view.subviews) { 171 | if ([loading isKindOfClass:[XLBallLoading class]]) { 172 | [loading stop]; 173 | [loading removeFromSuperview]; 174 | } 175 | } 176 | } 177 | 178 | @end 179 | -------------------------------------------------------------------------------- /XLBallLoadingDemo/XLBallLoadingDemo.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 5E698A331E80C003006D2A4F /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 5E698A321E80C003006D2A4F /* main.m */; }; 11 | 5E698A361E80C003006D2A4F /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 5E698A351E80C003006D2A4F /* AppDelegate.m */; }; 12 | 5E698A391E80C003006D2A4F /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5E698A381E80C003006D2A4F /* ViewController.m */; }; 13 | 5E698A3C1E80C003006D2A4F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5E698A3A1E80C003006D2A4F /* Main.storyboard */; }; 14 | 5E698A3E1E80C003006D2A4F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5E698A3D1E80C003006D2A4F /* Assets.xcassets */; }; 15 | 5E698A411E80C003006D2A4F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5E698A3F1E80C003006D2A4F /* LaunchScreen.storyboard */; }; 16 | 5E698A4B1E80C029006D2A4F /* XLBallLoading.m in Sources */ = {isa = PBXBuildFile; fileRef = 5E698A4A1E80C029006D2A4F /* XLBallLoading.m */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXFileReference section */ 20 | 5E698A2E1E80C003006D2A4F /* XLBallLoadingDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = XLBallLoadingDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 21 | 5E698A321E80C003006D2A4F /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 22 | 5E698A341E80C003006D2A4F /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 23 | 5E698A351E80C003006D2A4F /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 24 | 5E698A371E80C003006D2A4F /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 25 | 5E698A381E80C003006D2A4F /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 26 | 5E698A3B1E80C003006D2A4F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 27 | 5E698A3D1E80C003006D2A4F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 28 | 5E698A401E80C003006D2A4F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 29 | 5E698A421E80C003006D2A4F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 30 | 5E698A491E80C029006D2A4F /* XLBallLoading.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XLBallLoading.h; sourceTree = ""; }; 31 | 5E698A4A1E80C029006D2A4F /* XLBallLoading.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = XLBallLoading.m; sourceTree = ""; }; 32 | /* End PBXFileReference section */ 33 | 34 | /* Begin PBXFrameworksBuildPhase section */ 35 | 5E698A2B1E80C003006D2A4F /* Frameworks */ = { 36 | isa = PBXFrameworksBuildPhase; 37 | buildActionMask = 2147483647; 38 | files = ( 39 | ); 40 | runOnlyForDeploymentPostprocessing = 0; 41 | }; 42 | /* End PBXFrameworksBuildPhase section */ 43 | 44 | /* Begin PBXGroup section */ 45 | 5E698A251E80C003006D2A4F = { 46 | isa = PBXGroup; 47 | children = ( 48 | 5E698A481E80C016006D2A4F /* XLBallLoading */, 49 | 5E698A301E80C003006D2A4F /* XLBallLoadingDemo */, 50 | 5E698A2F1E80C003006D2A4F /* Products */, 51 | ); 52 | sourceTree = ""; 53 | }; 54 | 5E698A2F1E80C003006D2A4F /* Products */ = { 55 | isa = PBXGroup; 56 | children = ( 57 | 5E698A2E1E80C003006D2A4F /* XLBallLoadingDemo.app */, 58 | ); 59 | name = Products; 60 | sourceTree = ""; 61 | }; 62 | 5E698A301E80C003006D2A4F /* XLBallLoadingDemo */ = { 63 | isa = PBXGroup; 64 | children = ( 65 | 5E698A341E80C003006D2A4F /* AppDelegate.h */, 66 | 5E698A351E80C003006D2A4F /* AppDelegate.m */, 67 | 5E698A371E80C003006D2A4F /* ViewController.h */, 68 | 5E698A381E80C003006D2A4F /* ViewController.m */, 69 | 5E698A3A1E80C003006D2A4F /* Main.storyboard */, 70 | 5E698A3D1E80C003006D2A4F /* Assets.xcassets */, 71 | 5E698A3F1E80C003006D2A4F /* LaunchScreen.storyboard */, 72 | 5E698A421E80C003006D2A4F /* Info.plist */, 73 | 5E698A311E80C003006D2A4F /* Supporting Files */, 74 | ); 75 | path = XLBallLoadingDemo; 76 | sourceTree = ""; 77 | }; 78 | 5E698A311E80C003006D2A4F /* Supporting Files */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | 5E698A321E80C003006D2A4F /* main.m */, 82 | ); 83 | name = "Supporting Files"; 84 | sourceTree = ""; 85 | }; 86 | 5E698A481E80C016006D2A4F /* XLBallLoading */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 5E698A491E80C029006D2A4F /* XLBallLoading.h */, 90 | 5E698A4A1E80C029006D2A4F /* XLBallLoading.m */, 91 | ); 92 | path = XLBallLoading; 93 | sourceTree = ""; 94 | }; 95 | /* End PBXGroup section */ 96 | 97 | /* Begin PBXNativeTarget section */ 98 | 5E698A2D1E80C003006D2A4F /* XLBallLoadingDemo */ = { 99 | isa = PBXNativeTarget; 100 | buildConfigurationList = 5E698A451E80C003006D2A4F /* Build configuration list for PBXNativeTarget "XLBallLoadingDemo" */; 101 | buildPhases = ( 102 | 5E698A2A1E80C003006D2A4F /* Sources */, 103 | 5E698A2B1E80C003006D2A4F /* Frameworks */, 104 | 5E698A2C1E80C003006D2A4F /* Resources */, 105 | ); 106 | buildRules = ( 107 | ); 108 | dependencies = ( 109 | ); 110 | name = XLBallLoadingDemo; 111 | productName = XLBallLoadingDemo; 112 | productReference = 5E698A2E1E80C003006D2A4F /* XLBallLoadingDemo.app */; 113 | productType = "com.apple.product-type.application"; 114 | }; 115 | /* End PBXNativeTarget section */ 116 | 117 | /* Begin PBXProject section */ 118 | 5E698A261E80C003006D2A4F /* Project object */ = { 119 | isa = PBXProject; 120 | attributes = { 121 | LastUpgradeCheck = 0820; 122 | ORGANIZATIONNAME = MengXianLiang; 123 | TargetAttributes = { 124 | 5E698A2D1E80C003006D2A4F = { 125 | CreatedOnToolsVersion = 8.2.1; 126 | DevelopmentTeam = C78VF44FUP; 127 | ProvisioningStyle = Manual; 128 | }; 129 | }; 130 | }; 131 | buildConfigurationList = 5E698A291E80C003006D2A4F /* Build configuration list for PBXProject "XLBallLoadingDemo" */; 132 | compatibilityVersion = "Xcode 3.2"; 133 | developmentRegion = English; 134 | hasScannedForEncodings = 0; 135 | knownRegions = ( 136 | English, 137 | en, 138 | Base, 139 | ); 140 | mainGroup = 5E698A251E80C003006D2A4F; 141 | productRefGroup = 5E698A2F1E80C003006D2A4F /* Products */; 142 | projectDirPath = ""; 143 | projectRoot = ""; 144 | targets = ( 145 | 5E698A2D1E80C003006D2A4F /* XLBallLoadingDemo */, 146 | ); 147 | }; 148 | /* End PBXProject section */ 149 | 150 | /* Begin PBXResourcesBuildPhase section */ 151 | 5E698A2C1E80C003006D2A4F /* Resources */ = { 152 | isa = PBXResourcesBuildPhase; 153 | buildActionMask = 2147483647; 154 | files = ( 155 | 5E698A411E80C003006D2A4F /* LaunchScreen.storyboard in Resources */, 156 | 5E698A3E1E80C003006D2A4F /* Assets.xcassets in Resources */, 157 | 5E698A3C1E80C003006D2A4F /* Main.storyboard in Resources */, 158 | ); 159 | runOnlyForDeploymentPostprocessing = 0; 160 | }; 161 | /* End PBXResourcesBuildPhase section */ 162 | 163 | /* Begin PBXSourcesBuildPhase section */ 164 | 5E698A2A1E80C003006D2A4F /* Sources */ = { 165 | isa = PBXSourcesBuildPhase; 166 | buildActionMask = 2147483647; 167 | files = ( 168 | 5E698A391E80C003006D2A4F /* ViewController.m in Sources */, 169 | 5E698A361E80C003006D2A4F /* AppDelegate.m in Sources */, 170 | 5E698A331E80C003006D2A4F /* main.m in Sources */, 171 | 5E698A4B1E80C029006D2A4F /* XLBallLoading.m in Sources */, 172 | ); 173 | runOnlyForDeploymentPostprocessing = 0; 174 | }; 175 | /* End PBXSourcesBuildPhase section */ 176 | 177 | /* Begin PBXVariantGroup section */ 178 | 5E698A3A1E80C003006D2A4F /* Main.storyboard */ = { 179 | isa = PBXVariantGroup; 180 | children = ( 181 | 5E698A3B1E80C003006D2A4F /* Base */, 182 | ); 183 | name = Main.storyboard; 184 | sourceTree = ""; 185 | }; 186 | 5E698A3F1E80C003006D2A4F /* LaunchScreen.storyboard */ = { 187 | isa = PBXVariantGroup; 188 | children = ( 189 | 5E698A401E80C003006D2A4F /* Base */, 190 | ); 191 | name = LaunchScreen.storyboard; 192 | sourceTree = ""; 193 | }; 194 | /* End PBXVariantGroup section */ 195 | 196 | /* Begin XCBuildConfiguration section */ 197 | 5E698A431E80C003006D2A4F /* Debug */ = { 198 | isa = XCBuildConfiguration; 199 | buildSettings = { 200 | ALWAYS_SEARCH_USER_PATHS = NO; 201 | CLANG_ANALYZER_NONNULL = YES; 202 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 203 | CLANG_CXX_LIBRARY = "libc++"; 204 | CLANG_ENABLE_MODULES = YES; 205 | CLANG_ENABLE_OBJC_ARC = YES; 206 | CLANG_WARN_BOOL_CONVERSION = YES; 207 | CLANG_WARN_CONSTANT_CONVERSION = YES; 208 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 209 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 210 | CLANG_WARN_EMPTY_BODY = YES; 211 | CLANG_WARN_ENUM_CONVERSION = YES; 212 | CLANG_WARN_INFINITE_RECURSION = YES; 213 | CLANG_WARN_INT_CONVERSION = YES; 214 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 215 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 216 | CLANG_WARN_UNREACHABLE_CODE = YES; 217 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 218 | CODE_SIGN_IDENTITY = "iPhone Developer: xianliang meng (79SX5888C3)"; 219 | COPY_PHASE_STRIP = NO; 220 | DEBUG_INFORMATION_FORMAT = dwarf; 221 | ENABLE_STRICT_OBJC_MSGSEND = YES; 222 | ENABLE_TESTABILITY = YES; 223 | GCC_C_LANGUAGE_STANDARD = gnu99; 224 | GCC_DYNAMIC_NO_PIC = NO; 225 | GCC_NO_COMMON_BLOCKS = YES; 226 | GCC_OPTIMIZATION_LEVEL = 0; 227 | GCC_PREPROCESSOR_DEFINITIONS = ( 228 | "DEBUG=1", 229 | "$(inherited)", 230 | ); 231 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 232 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 233 | GCC_WARN_UNDECLARED_SELECTOR = YES; 234 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 235 | GCC_WARN_UNUSED_FUNCTION = YES; 236 | GCC_WARN_UNUSED_VARIABLE = YES; 237 | IPHONEOS_DEPLOYMENT_TARGET = 10.2; 238 | MTL_ENABLE_DEBUG_INFO = YES; 239 | ONLY_ACTIVE_ARCH = YES; 240 | PROVISIONING_PROFILE = "63d0bee2-4f74-4b71-a719-620d70b5a076"; 241 | SDKROOT = iphoneos; 242 | }; 243 | name = Debug; 244 | }; 245 | 5E698A441E80C003006D2A4F /* Release */ = { 246 | isa = XCBuildConfiguration; 247 | buildSettings = { 248 | ALWAYS_SEARCH_USER_PATHS = NO; 249 | CLANG_ANALYZER_NONNULL = YES; 250 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 251 | CLANG_CXX_LIBRARY = "libc++"; 252 | CLANG_ENABLE_MODULES = YES; 253 | CLANG_ENABLE_OBJC_ARC = YES; 254 | CLANG_WARN_BOOL_CONVERSION = YES; 255 | CLANG_WARN_CONSTANT_CONVERSION = YES; 256 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 257 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 258 | CLANG_WARN_EMPTY_BODY = YES; 259 | CLANG_WARN_ENUM_CONVERSION = YES; 260 | CLANG_WARN_INFINITE_RECURSION = YES; 261 | CLANG_WARN_INT_CONVERSION = YES; 262 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 263 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 264 | CLANG_WARN_UNREACHABLE_CODE = YES; 265 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 266 | CODE_SIGN_IDENTITY = "iPhone Developer: xianliang meng (79SX5888C3)"; 267 | COPY_PHASE_STRIP = NO; 268 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 269 | ENABLE_NS_ASSERTIONS = NO; 270 | ENABLE_STRICT_OBJC_MSGSEND = YES; 271 | GCC_C_LANGUAGE_STANDARD = gnu99; 272 | GCC_NO_COMMON_BLOCKS = YES; 273 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 274 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 275 | GCC_WARN_UNDECLARED_SELECTOR = YES; 276 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 277 | GCC_WARN_UNUSED_FUNCTION = YES; 278 | GCC_WARN_UNUSED_VARIABLE = YES; 279 | IPHONEOS_DEPLOYMENT_TARGET = 10.2; 280 | MTL_ENABLE_DEBUG_INFO = NO; 281 | PROVISIONING_PROFILE = "63d0bee2-4f74-4b71-a719-620d70b5a076"; 282 | SDKROOT = iphoneos; 283 | VALIDATE_PRODUCT = YES; 284 | }; 285 | name = Release; 286 | }; 287 | 5E698A461E80C003006D2A4F /* Debug */ = { 288 | isa = XCBuildConfiguration; 289 | buildSettings = { 290 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 291 | CODE_SIGN_IDENTITY = "iPhone Developer: CHEN LI (L89D9YKKEN)"; 292 | DEVELOPMENT_TEAM = C78VF44FUP; 293 | INFOPLIST_FILE = XLBallLoadingDemo/Info.plist; 294 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 295 | PRODUCT_BUNDLE_IDENTIFIER = com.jwzt.XLBallLoadingDemo; 296 | PRODUCT_NAME = "$(TARGET_NAME)"; 297 | PROVISIONING_PROFILE = "63d0bee2-4f74-4b71-a719-620d70b5a076"; 298 | PROVISIONING_PROFILE_SPECIFIER = jwztTeamDevelop; 299 | }; 300 | name = Debug; 301 | }; 302 | 5E698A471E80C003006D2A4F /* Release */ = { 303 | isa = XCBuildConfiguration; 304 | buildSettings = { 305 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 306 | CODE_SIGN_IDENTITY = "iPhone Developer: CHEN LI (L89D9YKKEN)"; 307 | DEVELOPMENT_TEAM = C78VF44FUP; 308 | INFOPLIST_FILE = XLBallLoadingDemo/Info.plist; 309 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 310 | PRODUCT_BUNDLE_IDENTIFIER = com.jwzt.XLBallLoadingDemo; 311 | PRODUCT_NAME = "$(TARGET_NAME)"; 312 | PROVISIONING_PROFILE = "63d0bee2-4f74-4b71-a719-620d70b5a076"; 313 | PROVISIONING_PROFILE_SPECIFIER = jwztTeamDevelop; 314 | }; 315 | name = Release; 316 | }; 317 | /* End XCBuildConfiguration section */ 318 | 319 | /* Begin XCConfigurationList section */ 320 | 5E698A291E80C003006D2A4F /* Build configuration list for PBXProject "XLBallLoadingDemo" */ = { 321 | isa = XCConfigurationList; 322 | buildConfigurations = ( 323 | 5E698A431E80C003006D2A4F /* Debug */, 324 | 5E698A441E80C003006D2A4F /* Release */, 325 | ); 326 | defaultConfigurationIsVisible = 0; 327 | defaultConfigurationName = Release; 328 | }; 329 | 5E698A451E80C003006D2A4F /* Build configuration list for PBXNativeTarget "XLBallLoadingDemo" */ = { 330 | isa = XCConfigurationList; 331 | buildConfigurations = ( 332 | 5E698A461E80C003006D2A4F /* Debug */, 333 | 5E698A471E80C003006D2A4F /* Release */, 334 | ); 335 | defaultConfigurationIsVisible = 0; 336 | defaultConfigurationName = Release; 337 | }; 338 | /* End XCConfigurationList section */ 339 | }; 340 | rootObject = 5E698A261E80C003006D2A4F /* Project object */; 341 | } 342 | --------------------------------------------------------------------------------