├── MZLoading
├── en.lproj
│ └── InfoPlist.strings
├── MZViewController.h
├── MZAppDelegate.h
├── MZLoading-Prefix.pch
├── main.m
├── MZLoadingCircle.h
├── Images.xcassets
│ ├── AppIcon.appiconset
│ │ └── Contents.json
│ └── LaunchImage.launchimage
│ │ └── Contents.json
├── MZLoading-Info.plist
├── MZAppDelegate.m
├── MZViewController.m
├── Base.lproj
│ ├── Main_iPhone.storyboard
│ └── Main_iPad.storyboard
└── MZLoadingCircle.m
├── MZLoadingTests
├── en.lproj
│ └── InfoPlist.strings
├── MZLoadingTests-Info.plist
└── MZLoadingTests.m
├── MZLoading.xcodeproj
├── xcuserdata
│ └── Mazur.xcuserdatad
│ │ ├── xcdebugger
│ │ └── Breakpoints_v2.xcbkptlist
│ │ └── xcschemes
│ │ ├── xcschememanagement.plist
│ │ └── MZLoading.xcscheme
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ ├── xcuserdata
│ │ └── Mazur.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ └── xcshareddata
│ │ └── MZLoading.xccheckout
└── project.pbxproj
├── README.md
└── LICENSE
/MZLoading/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/MZLoadingTests/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/MZLoading.xcodeproj/xcuserdata/Mazur.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
--------------------------------------------------------------------------------
/MZLoading.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/MZLoading.xcodeproj/project.xcworkspace/xcuserdata/Mazur.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SergheiMazur/MZLoading/HEAD/MZLoading.xcodeproj/project.xcworkspace/xcuserdata/Mazur.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/MZLoading/MZViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // MZViewController.h
3 | // MZLoading
4 | //
5 | // Created by Serghei Mazur on 10/31/13.
6 | // Copyright (c) 2013 Serghei Mazur. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface MZViewController : UIViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/MZLoading/MZAppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // MZAppDelegate.h
3 | // MZLoading
4 | //
5 | // Created by Serghei Mazur on 10/31/13.
6 | // Copyright (c) 2013 Serghei Mazur. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface MZAppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # MZLoading
2 | =========
3 |
4 | Custom loading animation
5 |
6 | | Possibility | Yes | No |
7 | | ------------- |:-------------:| -----:|
8 | | IOS 6/7 | 1 | 0 |
9 | | Change color property | 1 | 0 |
10 | | Animation change speed | 1 | 0 |
11 | | After appliaction background mode | 0 | 1 |
12 |
13 |
14 | 
15 |
--------------------------------------------------------------------------------
/MZLoading/MZLoading-Prefix.pch:
--------------------------------------------------------------------------------
1 | //
2 | // Prefix header
3 | //
4 | // The contents of this file are implicitly included at the beginning of every source file.
5 | //
6 |
7 | #import
8 |
9 | #ifndef __IPHONE_5_0
10 | #warning "This project uses features only available in iOS SDK 5.0 and later."
11 | #endif
12 |
13 | #ifdef __OBJC__
14 | #import
15 | #import
16 | #endif
17 |
--------------------------------------------------------------------------------
/MZLoading/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // MZLoading
4 | //
5 | // Created by Serghei Mazur on 10/31/13.
6 | // Copyright (c) 2013 Serghei Mazur. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import "MZAppDelegate.h"
12 |
13 | int main(int argc, char * argv[])
14 | {
15 | @autoreleasepool {
16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([MZAppDelegate class]));
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/MZLoading/MZLoadingCircle.h:
--------------------------------------------------------------------------------
1 | //
2 | // MZLoadingCircle.h
3 | // MZLoading
4 | //
5 | // Created by Serghei Mazur on 10/31/13.
6 | // Copyright (c) 2013 Serghei Mazur. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 |
13 | @class CustomLayer;
14 | @class CustomLayer2;
15 | @class CustomLayer3;
16 |
17 | @interface MZLoadingCircle : UIViewController{
18 | CustomLayer *customLayer_;
19 | CustomLayer2 *customLayer2_;
20 | CustomLayer3 *customLayer3_;
21 | }
22 |
23 | @property (weak,nonatomic) UIColor *colorCustomLayer;
24 | @property (weak,nonatomic) UIColor *colorCustomLayer2;
25 | @property (weak,nonatomic) UIColor *colorCustomLayer3;
26 |
27 | @end
28 |
--------------------------------------------------------------------------------
/MZLoading.xcodeproj/xcuserdata/Mazur.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | MZLoading.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 73C4671018224A0A003BC7C3
16 |
17 | primary
18 |
19 |
20 | 73C4673418224A0B003BC7C3
21 |
22 | primary
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/MZLoadingTests/MZLoadingTests-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIdentifier
10 | com.mazur.${PRODUCT_NAME:rfc1034identifier}
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundlePackageType
14 | BNDL
15 | CFBundleShortVersionString
16 | 1.0
17 | CFBundleSignature
18 | ????
19 | CFBundleVersion
20 | 1
21 |
22 |
23 |
--------------------------------------------------------------------------------
/MZLoadingTests/MZLoadingTests.m:
--------------------------------------------------------------------------------
1 | //
2 | // MZLoadingTests.m
3 | // MZLoadingTests
4 | //
5 | // Created by Serghei Mazur on 10/31/13.
6 | // Copyright (c) 2013 Serghei Mazur. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface MZLoadingTests : XCTestCase
12 |
13 | @end
14 |
15 | @implementation MZLoadingTests
16 |
17 | - (void)setUp
18 | {
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 | {
25 | // Put teardown code here. This method is called after the invocation of each test method in the class.
26 | [super tearDown];
27 | }
28 |
29 | - (void)testExample
30 | {
31 | XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__);
32 | }
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/MZLoading/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" : "40x40",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "60x60",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "ipad",
20 | "size" : "29x29",
21 | "scale" : "1x"
22 | },
23 | {
24 | "idiom" : "ipad",
25 | "size" : "29x29",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "ipad",
30 | "size" : "40x40",
31 | "scale" : "1x"
32 | },
33 | {
34 | "idiom" : "ipad",
35 | "size" : "40x40",
36 | "scale" : "2x"
37 | },
38 | {
39 | "idiom" : "ipad",
40 | "size" : "76x76",
41 | "scale" : "1x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "76x76",
46 | "scale" : "2x"
47 | }
48 | ],
49 | "info" : {
50 | "version" : 1,
51 | "author" : "xcode"
52 | }
53 | }
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | This is free and unencumbered software released into the public domain.
2 |
3 | Anyone is free to copy, modify, publish, use, compile, sell, or
4 | distribute this software, either in source code form or as a compiled
5 | binary, for any purpose, commercial or non-commercial, and by any
6 | means.
7 |
8 | In jurisdictions that recognize copyright laws, the author or authors
9 | of this software dedicate any and all copyright interest in the
10 | software to the public domain. We make this dedication for the benefit
11 | of the public at large and to the detriment of our heirs and
12 | successors. We intend this dedication to be an overt act of
13 | relinquishment in perpetuity of all present and future rights to this
14 | software under copyright law.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22 | OTHER DEALINGS IN THE SOFTWARE.
23 |
24 | For more information, please refer to
25 |
--------------------------------------------------------------------------------
/MZLoading/Images.xcassets/LaunchImage.launchimage/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "orientation" : "portrait",
5 | "idiom" : "iphone",
6 | "extent" : "full-screen",
7 | "minimum-system-version" : "7.0",
8 | "scale" : "2x"
9 | },
10 | {
11 | "orientation" : "portrait",
12 | "idiom" : "iphone",
13 | "subtype" : "retina4",
14 | "extent" : "full-screen",
15 | "minimum-system-version" : "7.0",
16 | "scale" : "2x"
17 | },
18 | {
19 | "orientation" : "portrait",
20 | "idiom" : "ipad",
21 | "extent" : "full-screen",
22 | "minimum-system-version" : "7.0",
23 | "scale" : "1x"
24 | },
25 | {
26 | "orientation" : "landscape",
27 | "idiom" : "ipad",
28 | "extent" : "full-screen",
29 | "minimum-system-version" : "7.0",
30 | "scale" : "1x"
31 | },
32 | {
33 | "orientation" : "portrait",
34 | "idiom" : "ipad",
35 | "extent" : "full-screen",
36 | "minimum-system-version" : "7.0",
37 | "scale" : "2x"
38 | },
39 | {
40 | "orientation" : "landscape",
41 | "idiom" : "ipad",
42 | "extent" : "full-screen",
43 | "minimum-system-version" : "7.0",
44 | "scale" : "2x"
45 | }
46 | ],
47 | "info" : {
48 | "version" : 1,
49 | "author" : "xcode"
50 | }
51 | }
--------------------------------------------------------------------------------
/MZLoading.xcodeproj/project.xcworkspace/xcshareddata/MZLoading.xccheckout:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDESourceControlProjectFavoriteDictionaryKey
6 |
7 | IDESourceControlProjectIdentifier
8 | 55EED772-78D6-4258-8589-F2D67BA338EC
9 | IDESourceControlProjectName
10 | MZLoading
11 | IDESourceControlProjectOriginsDictionary
12 |
13 | C378695D-BA2E-4370-BED2-DBCE3D2A42D6
14 | https://github.com/SergheiMazur/MZLoading.git
15 |
16 | IDESourceControlProjectPath
17 | MZLoading.xcodeproj/project.xcworkspace
18 | IDESourceControlProjectRelativeInstallPathDictionary
19 |
20 | C378695D-BA2E-4370-BED2-DBCE3D2A42D6
21 | ../..
22 |
23 | IDESourceControlProjectURL
24 | https://github.com/SergheiMazur/MZLoading.git
25 | IDESourceControlProjectVersion
26 | 110
27 | IDESourceControlProjectWCCIdentifier
28 | C378695D-BA2E-4370-BED2-DBCE3D2A42D6
29 | IDESourceControlProjectWCConfigurations
30 |
31 |
32 | IDESourceControlRepositoryExtensionIdentifierKey
33 | public.vcs.git
34 | IDESourceControlWCCIdentifierKey
35 | C378695D-BA2E-4370-BED2-DBCE3D2A42D6
36 | IDESourceControlWCCName
37 | MZLoading
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/MZLoading/MZLoading-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | ${PRODUCT_NAME}
9 | CFBundleExecutable
10 | ${EXECUTABLE_NAME}
11 | CFBundleIdentifier
12 | com.mazur.${PRODUCT_NAME:rfc1034identifier}
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | ${PRODUCT_NAME}
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | 1.0
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | 1.0
25 | LSRequiresIPhoneOS
26 |
27 | UIMainStoryboardFile
28 | Main_iPhone
29 | UIMainStoryboardFile~ipad
30 | Main_iPad
31 | UIRequiredDeviceCapabilities
32 |
33 | armv7
34 |
35 | UISupportedInterfaceOrientations
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationLandscapeLeft
39 | UIInterfaceOrientationLandscapeRight
40 |
41 | UISupportedInterfaceOrientations~ipad
42 |
43 | UIInterfaceOrientationPortrait
44 | UIInterfaceOrientationPortraitUpsideDown
45 | UIInterfaceOrientationLandscapeLeft
46 | UIInterfaceOrientationLandscapeRight
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/MZLoading/MZAppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // MZAppDelegate.m
3 | // MZLoading
4 | //
5 | // Created by Serghei Mazur on 10/31/13.
6 | // Copyright (c) 2013 Serghei Mazur. All rights reserved.
7 | //
8 |
9 | #import "MZAppDelegate.h"
10 |
11 | @implementation MZAppDelegate
12 |
13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
14 | {
15 | // Override point for customization after application launch.
16 | return YES;
17 | }
18 |
19 | - (void)applicationWillResignActive:(UIApplication *)application
20 | {
21 | // 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.
22 | // 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.
23 | }
24 |
25 | - (void)applicationDidEnterBackground:(UIApplication *)application
26 | {
27 | // 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.
28 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
29 | }
30 |
31 | - (void)applicationWillEnterForeground:(UIApplication *)application
32 | {
33 | // 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.
34 | }
35 |
36 | - (void)applicationDidBecomeActive:(UIApplication *)application
37 | {
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 | {
43 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
44 | }
45 |
46 | @end
47 |
--------------------------------------------------------------------------------
/MZLoading/MZViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // MZViewController.m
3 | // MZLoading
4 | //
5 | // Created by Serghei Mazur on 10/31/13.
6 | // Copyright (c) 2013 Serghei Mazur. All rights reserved.
7 | //
8 |
9 | #import "MZViewController.h"
10 | #import "MZLoadingCircle.h"
11 |
12 | @interface MZViewController (){
13 | MZLoadingCircle *loadingCircle;
14 | }
15 |
16 | @property(weak,nonatomic) IBOutlet UIButton *showLoading;
17 | @end
18 |
19 | @implementation MZViewController
20 |
21 | - (void)viewDidLoad
22 | {
23 | [super viewDidLoad];
24 | // Do any additional setup after loading the view, typically from a nib.
25 | }
26 |
27 | -(IBAction) showLoadingButton{
28 | if (!loadingCircle) {
29 | [_showLoading setTitle:@"Hide loading" forState:UIControlStateNormal];
30 | [self showLoadingMode];
31 | } else {
32 | [_showLoading setTitle:@"Show loading" forState:UIControlStateNormal];
33 | [self hideLoadingMode];
34 | }
35 | }
36 |
37 | -(void)showLoadingMode {
38 | if (!loadingCircle) {
39 | loadingCircle = [[MZLoadingCircle alloc]initWithNibName:nil bundle:nil];
40 | loadingCircle.view.backgroundColor = [UIColor clearColor];
41 |
42 | //Colors for layers
43 | loadingCircle.colorCustomLayer = [UIColor colorWithRed:0 green:0.4 blue:0 alpha:1];
44 | loadingCircle.colorCustomLayer2 = [UIColor colorWithRed:0 green:0.4 blue:0 alpha:0.65];
45 | loadingCircle.colorCustomLayer3 = [UIColor colorWithRed:0 green:0.4 blue:0 alpha:0.4];
46 |
47 | int size = 100;
48 |
49 | CGRect frame = loadingCircle.view.frame;
50 | frame.size.width = size ;
51 | frame.size.height = size;
52 | frame.origin.x = self.view.frame.size.width / 2 - frame.size.width / 2;
53 | frame.origin.y = self.view.frame.size.height / 2 - frame.size.height / 2;
54 | loadingCircle.view.frame = frame;
55 | loadingCircle.view.layer.zPosition = MAXFLOAT;
56 | [self.view addSubview: loadingCircle.view];
57 | }
58 | }
59 |
60 | -(void)hideLoadingMode {
61 | if (loadingCircle) {
62 | [loadingCircle.view removeFromSuperview];
63 | loadingCircle = nil;
64 | }
65 | }
66 |
67 | - (void)didReceiveMemoryWarning
68 | {
69 | [super didReceiveMemoryWarning];
70 | // Dispose of any resources that can be recreated.
71 | }
72 |
73 | @end
74 |
--------------------------------------------------------------------------------
/MZLoading/Base.lproj/Main_iPhone.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/MZLoading/Base.lproj/Main_iPad.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/MZLoading.xcodeproj/xcuserdata/Mazur.xcuserdatad/xcschemes/MZLoading.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
33 |
39 |
40 |
41 |
42 |
43 |
49 |
50 |
51 |
52 |
61 |
62 |
68 |
69 |
70 |
71 |
72 |
73 |
79 |
80 |
86 |
87 |
88 |
89 |
91 |
92 |
95 |
96 |
97 |
--------------------------------------------------------------------------------
/MZLoading/MZLoadingCircle.m:
--------------------------------------------------------------------------------
1 | //
2 | // MZLoadingCircle.m
3 | // MZLoading
4 | //
5 | // Created by Serghei Mazur on 10/31/13.
6 | // Copyright (c) 2013 Serghei Mazur. All rights reserved.
7 | //
8 |
9 | #import "MZLoadingCircle.h"
10 |
11 |
12 | @interface CustomLayer : CALayer {
13 |
14 | }
15 |
16 | @property (assign) CGRect ovalRect;
17 | @property (assign) int lineWidth;
18 | @property (nonatomic) UIColor *colorLine;
19 |
20 | @end
21 |
22 | @implementation CustomLayer
23 |
24 | @synthesize ovalRect,lineWidth,colorLine;
25 |
26 | - (void)drawInContext:(CGContextRef)theContext {
27 |
28 | //// Oval 1 Drawing
29 |
30 | UIBezierPath* ovalPath = [UIBezierPath bezierPath];
31 | [ovalPath addArcWithCenter: CGPointMake(CGRectGetMidX(ovalRect), CGRectGetMidY(ovalRect)) radius: CGRectGetWidth(ovalRect) / 2 startAngle: 190 * M_PI/180 endAngle: 260 * M_PI/180 clockwise: YES];
32 |
33 | CGContextAddPath(theContext, ovalPath.CGPath);
34 |
35 | //// Oval 2 Drawing
36 | UIBezierPath* oval2Path = [UIBezierPath bezierPath];
37 | [oval2Path addArcWithCenter: CGPointMake(CGRectGetMidX(ovalRect), CGRectGetMidY(ovalRect)) radius: CGRectGetWidth(ovalRect) / 2 startAngle: 280 * M_PI/180 endAngle: 350 * M_PI/180 clockwise: YES];
38 |
39 | CGContextAddPath(theContext, oval2Path.CGPath);
40 |
41 | //// Oval 3 Drawing
42 | UIBezierPath* oval3Path = [UIBezierPath bezierPath];
43 | [oval3Path addArcWithCenter: CGPointMake(CGRectGetMidX(ovalRect), CGRectGetMidY(ovalRect)) radius: CGRectGetWidth(ovalRect) / 2 startAngle: 10 * M_PI/180 endAngle: 80 * M_PI/180 clockwise: YES];
44 |
45 | CGContextAddPath(theContext, oval3Path.CGPath);
46 |
47 | //// Oval 4 Drawing
48 | UIBezierPath* oval4Path = [UIBezierPath bezierPath];
49 | [oval4Path addArcWithCenter: CGPointMake(CGRectGetMidX(ovalRect), CGRectGetMidY(ovalRect)) radius: CGRectGetWidth(ovalRect) / 2 startAngle: 100 * M_PI/180 endAngle: 170 * M_PI/180 clockwise: YES];
50 |
51 | CGContextAddPath(theContext, oval4Path.CGPath);
52 |
53 |
54 | CGContextSetLineWidth(theContext,lineWidth);
55 | CGContextSetStrokeColorWithColor(theContext, colorLine.CGColor);
56 | CGContextStrokePath(theContext);
57 | }
58 |
59 | @end
60 |
61 |
62 | @interface CustomLayer2 : CALayer {
63 | }
64 |
65 | @property (assign) CGRect ovalRect;
66 | @property (assign) int lineWidth;
67 | @property (nonatomic) UIColor *colorLine;
68 |
69 | @end
70 |
71 | @implementation CustomLayer2
72 |
73 | @synthesize ovalRect,lineWidth,colorLine;
74 |
75 | - (void)drawInContext:(CGContextRef)theContext
76 | {
77 |
78 | //// Oval 1 Drawing
79 | UIBezierPath* ovalPath = [UIBezierPath bezierPath];
80 | [ovalPath addArcWithCenter: CGPointMake(CGRectGetMidX(ovalRect), CGRectGetMidY(ovalRect)) radius: CGRectGetWidth(ovalRect) / 2 startAngle: 190 * M_PI/180 endAngle: 260 * M_PI/180 clockwise: YES];
81 |
82 | CGContextAddPath(theContext, ovalPath.CGPath);
83 |
84 | //// Oval 2 Drawing
85 | UIBezierPath* oval2Path = [UIBezierPath bezierPath];
86 | [oval2Path addArcWithCenter: CGPointMake(CGRectGetMidX(ovalRect), CGRectGetMidY(ovalRect)) radius: CGRectGetWidth(ovalRect) / 2 startAngle: 280 * M_PI/180 endAngle: 350 * M_PI/180 clockwise: YES];
87 |
88 | CGContextAddPath(theContext, oval2Path.CGPath);
89 |
90 | //// Oval 3 Drawing
91 | UIBezierPath* oval3Path = [UIBezierPath bezierPath];
92 | [oval3Path addArcWithCenter: CGPointMake(CGRectGetMidX(ovalRect), CGRectGetMidY(ovalRect)) radius: CGRectGetWidth(ovalRect) / 2 startAngle: 10 * M_PI/180 endAngle: 80 * M_PI/180 clockwise: YES];
93 |
94 | CGContextAddPath(theContext, oval3Path.CGPath);
95 |
96 | //// Oval 4 Drawing
97 | UIBezierPath* oval4Path = [UIBezierPath bezierPath];
98 | [oval4Path addArcWithCenter: CGPointMake(CGRectGetMidX(ovalRect), CGRectGetMidY(ovalRect)) radius: CGRectGetWidth(ovalRect) / 2 startAngle: 100 * M_PI/180 endAngle: 170 * M_PI/180 clockwise: YES];
99 |
100 | CGContextAddPath(theContext, oval4Path.CGPath);
101 |
102 |
103 | CGContextSetLineWidth(theContext,lineWidth);
104 | CGContextSetStrokeColorWithColor(theContext, colorLine.CGColor);
105 | CGContextStrokePath(theContext);}
106 |
107 | @end
108 |
109 | @interface CustomLayer3 : CALayer {
110 | }
111 |
112 | @property (assign) CGRect ovalRect;
113 | @property (assign) int lineWidth;
114 | @property (nonatomic) UIColor *colorLine;
115 |
116 | @end
117 |
118 | @implementation CustomLayer3
119 |
120 | @synthesize ovalRect,lineWidth,colorLine;
121 |
122 |
123 | - (void)drawInContext:(CGContextRef)theContext
124 | {
125 |
126 | //// Oval 1 Drawing
127 | UIBezierPath* ovalPath = [UIBezierPath bezierPath];
128 | [ovalPath addArcWithCenter: CGPointMake(CGRectGetMidX(ovalRect), CGRectGetMidY(ovalRect)) radius: CGRectGetWidth(ovalRect) / 2 startAngle: 195 * M_PI/180 endAngle: 255 * M_PI/180 clockwise: YES];
129 |
130 | CGContextAddPath(theContext, ovalPath.CGPath);
131 |
132 | //// Oval 2 Drawing
133 | UIBezierPath* oval2Path = [UIBezierPath bezierPath];
134 | [oval2Path addArcWithCenter: CGPointMake(CGRectGetMidX(ovalRect), CGRectGetMidY(ovalRect)) radius: CGRectGetWidth(ovalRect) / 2 startAngle: 285 * M_PI/180 endAngle: 345 * M_PI/180 clockwise: YES];
135 |
136 | CGContextAddPath(theContext, oval2Path.CGPath);
137 |
138 | //// Oval 3 Drawing
139 | UIBezierPath* oval3Path = [UIBezierPath bezierPath];
140 | [oval3Path addArcWithCenter: CGPointMake(CGRectGetMidX(ovalRect), CGRectGetMidY(ovalRect)) radius: CGRectGetWidth(ovalRect) / 2 startAngle: 15 * M_PI/180 endAngle: 75 * M_PI/180 clockwise: YES];
141 |
142 | CGContextAddPath(theContext, oval3Path.CGPath);
143 |
144 | //// Oval 4 Drawing
145 | UIBezierPath* oval4Path = [UIBezierPath bezierPath];
146 | [oval4Path addArcWithCenter: CGPointMake(CGRectGetMidX(ovalRect), CGRectGetMidY(ovalRect)) radius: CGRectGetWidth(ovalRect) / 2 startAngle: 105 * M_PI/180 endAngle: 165 * M_PI/180 clockwise: YES];
147 |
148 | CGContextAddPath(theContext, oval4Path.CGPath);
149 |
150 | CGContextSetLineWidth(theContext,lineWidth);
151 | CGContextSetStrokeColorWithColor(theContext, colorLine.CGColor);
152 | CGContextStrokePath(theContext);
153 |
154 | }
155 |
156 | @end
157 |
158 | @interface MZLoadingCircle ()
159 |
160 | @end
161 |
162 | @implementation MZLoadingCircle
163 |
164 | - (void)loadView {
165 | UIView *myView = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
166 | myView.backgroundColor = [UIColor whiteColor];
167 | myView.frame = [[UIScreen mainScreen] bounds];
168 | customLayer_ = [[CustomLayer alloc] init];
169 | [myView.layer addSublayer:customLayer_];
170 |
171 | customLayer2_ = [[CustomLayer2 alloc] init];
172 | [myView.layer addSublayer:customLayer2_];
173 |
174 | customLayer3_ = [[CustomLayer3 alloc] init];
175 | [myView.layer addSublayer:customLayer3_];
176 |
177 | //Default colors for layers
178 | _colorCustomLayer = [UIColor colorWithWhite:0.2 alpha:1];
179 | _colorCustomLayer2 = [UIColor colorWithWhite:0.4 alpha:1];
180 | _colorCustomLayer3 = [UIColor colorWithWhite:0.6 alpha:1];
181 |
182 | self.view = myView;
183 | }
184 |
185 | - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
186 | {
187 | self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
188 | if (self) {
189 | }
190 | return self;
191 | }
192 |
193 |
194 | - (void)viewWillAppear:(BOOL)animated {
195 | customLayer_.backgroundColor = [[UIColor clearColor] CGColor];
196 | customLayer_.frame = CGRectInset(self.view.bounds, 0.0f, 0.0f);
197 | int scale = self.view.frame.size.width * 0.15;
198 | customLayer_.ovalRect = CGRectMake(scale , scale, self.view.frame.size.width - 2*scale, self.view.frame.size.height - 2*scale);
199 | customLayer_.lineWidth = self.view.frame.size.width * 0.08;
200 | customLayer_.colorLine = _colorCustomLayer;
201 | [customLayer_ setNeedsDisplay];
202 |
203 | customLayer2_.backgroundColor = [[UIColor clearColor] CGColor];
204 | customLayer2_.frame = CGRectInset(self.view.bounds, 0.0f, 0.0f);
205 | int scale2 = self.view.frame.size.width * 0.25;
206 | customLayer2_.ovalRect = CGRectMake(scale2 , scale2, self.view.frame.size.width - 2*scale2, self.view.frame.size.height - 2*scale2);
207 | customLayer2_.lineWidth = self.view.frame.size.width * 0.08;
208 | customLayer2_.colorLine = _colorCustomLayer2;
209 | [customLayer2_ setNeedsDisplay];
210 |
211 | customLayer3_.backgroundColor = [[UIColor clearColor] CGColor];
212 | customLayer3_.frame = CGRectInset(self.view.bounds, 0.0f, 0.0f);
213 | int scale3 = self.view.frame.size.width * 0.35;
214 | customLayer3_.ovalRect = CGRectMake(scale3 , scale3, self.view.frame.size.width - 2*scale3, self.view.frame.size.height - 2*scale3);
215 | customLayer3_.lineWidth = self.view.frame.size.width * 0.08;
216 | customLayer3_.colorLine = _colorCustomLayer3;
217 | [customLayer3_ setNeedsDisplay];
218 | }
219 |
220 | - (void)viewDidAppear:(BOOL)animated {
221 |
222 | CABasicAnimation *fullRotation = [CABasicAnimation animationWithKeyPath:@"transform.rotation"];
223 | fullRotation.fromValue = [NSNumber numberWithFloat:0];
224 | fullRotation.toValue = [NSNumber numberWithFloat:MAXFLOAT];
225 | fullRotation.duration = MAXFLOAT * 0.8;
226 | fullRotation.removedOnCompletion = YES;
227 |
228 | [customLayer_ addAnimation:fullRotation forKey:nil];
229 |
230 |
231 | CABasicAnimation *fullRotation2 = [CABasicAnimation animationWithKeyPath:@"transform.rotation"];
232 | fullRotation2.fromValue = [NSNumber numberWithFloat:0];
233 | fullRotation2.toValue = [NSNumber numberWithFloat:-MAXFLOAT];
234 | fullRotation2.duration = MAXFLOAT * 0.4;
235 | fullRotation2.removedOnCompletion = YES;
236 |
237 | [customLayer2_ addAnimation:fullRotation2 forKey:nil];
238 |
239 |
240 | CABasicAnimation *fullRotation3 = [CABasicAnimation animationWithKeyPath:@"transform.rotation"];
241 | fullRotation3.fromValue = [NSNumber numberWithFloat:0];
242 | fullRotation3.toValue = [NSNumber numberWithFloat:MAXFLOAT];
243 | fullRotation3.duration = MAXFLOAT * 0.2;
244 | fullRotation3.removedOnCompletion = YES;
245 |
246 | [customLayer3_ addAnimation:fullRotation3 forKey:nil];
247 |
248 | }
249 |
250 | -(void)viewWillDisappear:(BOOL)animated{
251 | [customLayer_ removeAllAnimations];
252 | [customLayer2_ removeAllAnimations];
253 | [customLayer3_ removeAllAnimations];
254 | }
255 |
256 |
257 | - (void)viewDidLoad
258 | {
259 | [super viewDidLoad];
260 | // Do any additional setup after loading the view.
261 | }
262 |
263 | - (void)didReceiveMemoryWarning
264 | {
265 | [super didReceiveMemoryWarning];
266 | // Dispose of any resources that can be recreated.
267 | }
268 |
269 | @end
270 |
--------------------------------------------------------------------------------
/MZLoading.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 73C4671518224A0B003BC7C3 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73C4671418224A0B003BC7C3 /* Foundation.framework */; };
11 | 73C4671718224A0B003BC7C3 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73C4671618224A0B003BC7C3 /* CoreGraphics.framework */; };
12 | 73C4671918224A0B003BC7C3 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73C4671818224A0B003BC7C3 /* UIKit.framework */; };
13 | 73C4671F18224A0B003BC7C3 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 73C4671D18224A0B003BC7C3 /* InfoPlist.strings */; };
14 | 73C4672118224A0B003BC7C3 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 73C4672018224A0B003BC7C3 /* main.m */; };
15 | 73C4672518224A0B003BC7C3 /* MZAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 73C4672418224A0B003BC7C3 /* MZAppDelegate.m */; };
16 | 73C4672818224A0B003BC7C3 /* Main_iPhone.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 73C4672618224A0B003BC7C3 /* Main_iPhone.storyboard */; };
17 | 73C4672B18224A0B003BC7C3 /* Main_iPad.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 73C4672918224A0B003BC7C3 /* Main_iPad.storyboard */; };
18 | 73C4672E18224A0B003BC7C3 /* MZViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 73C4672D18224A0B003BC7C3 /* MZViewController.m */; };
19 | 73C4673018224A0B003BC7C3 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 73C4672F18224A0B003BC7C3 /* Images.xcassets */; };
20 | 73C4673718224A0B003BC7C3 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73C4673618224A0B003BC7C3 /* XCTest.framework */; };
21 | 73C4673818224A0B003BC7C3 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73C4671418224A0B003BC7C3 /* Foundation.framework */; };
22 | 73C4673918224A0B003BC7C3 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73C4671818224A0B003BC7C3 /* UIKit.framework */; };
23 | 73C4674118224A0B003BC7C3 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 73C4673F18224A0B003BC7C3 /* InfoPlist.strings */; };
24 | 73C4674318224A0B003BC7C3 /* MZLoadingTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 73C4674218224A0B003BC7C3 /* MZLoadingTests.m */; };
25 | 73C4674E18224A3E003BC7C3 /* MZLoadingCircle.m in Sources */ = {isa = PBXBuildFile; fileRef = 73C4674D18224A3E003BC7C3 /* MZLoadingCircle.m */; };
26 | /* End PBXBuildFile section */
27 |
28 | /* Begin PBXContainerItemProxy section */
29 | 73C4673A18224A0B003BC7C3 /* PBXContainerItemProxy */ = {
30 | isa = PBXContainerItemProxy;
31 | containerPortal = 73C4670918224A0A003BC7C3 /* Project object */;
32 | proxyType = 1;
33 | remoteGlobalIDString = 73C4671018224A0A003BC7C3;
34 | remoteInfo = MZLoading;
35 | };
36 | /* End PBXContainerItemProxy section */
37 |
38 | /* Begin PBXFileReference section */
39 | 73C4671118224A0B003BC7C3 /* MZLoading.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MZLoading.app; sourceTree = BUILT_PRODUCTS_DIR; };
40 | 73C4671418224A0B003BC7C3 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
41 | 73C4671618224A0B003BC7C3 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
42 | 73C4671818224A0B003BC7C3 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
43 | 73C4671C18224A0B003BC7C3 /* MZLoading-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "MZLoading-Info.plist"; sourceTree = ""; };
44 | 73C4671E18224A0B003BC7C3 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; };
45 | 73C4672018224A0B003BC7C3 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
46 | 73C4672218224A0B003BC7C3 /* MZLoading-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "MZLoading-Prefix.pch"; sourceTree = ""; };
47 | 73C4672318224A0B003BC7C3 /* MZAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MZAppDelegate.h; sourceTree = ""; };
48 | 73C4672418224A0B003BC7C3 /* MZAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MZAppDelegate.m; sourceTree = ""; };
49 | 73C4672718224A0B003BC7C3 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main_iPhone.storyboard; sourceTree = ""; };
50 | 73C4672A18224A0B003BC7C3 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main_iPad.storyboard; sourceTree = ""; };
51 | 73C4672C18224A0B003BC7C3 /* MZViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MZViewController.h; sourceTree = ""; };
52 | 73C4672D18224A0B003BC7C3 /* MZViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MZViewController.m; sourceTree = ""; };
53 | 73C4672F18224A0B003BC7C3 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; };
54 | 73C4673518224A0B003BC7C3 /* MZLoadingTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MZLoadingTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
55 | 73C4673618224A0B003BC7C3 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
56 | 73C4673E18224A0B003BC7C3 /* MZLoadingTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "MZLoadingTests-Info.plist"; sourceTree = ""; };
57 | 73C4674018224A0B003BC7C3 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; };
58 | 73C4674218224A0B003BC7C3 /* MZLoadingTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MZLoadingTests.m; sourceTree = ""; };
59 | 73C4674C18224A3E003BC7C3 /* MZLoadingCircle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MZLoadingCircle.h; sourceTree = ""; };
60 | 73C4674D18224A3E003BC7C3 /* MZLoadingCircle.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MZLoadingCircle.m; sourceTree = ""; };
61 | /* End PBXFileReference section */
62 |
63 | /* Begin PBXFrameworksBuildPhase section */
64 | 73C4670E18224A0A003BC7C3 /* Frameworks */ = {
65 | isa = PBXFrameworksBuildPhase;
66 | buildActionMask = 2147483647;
67 | files = (
68 | 73C4671718224A0B003BC7C3 /* CoreGraphics.framework in Frameworks */,
69 | 73C4671918224A0B003BC7C3 /* UIKit.framework in Frameworks */,
70 | 73C4671518224A0B003BC7C3 /* Foundation.framework in Frameworks */,
71 | );
72 | runOnlyForDeploymentPostprocessing = 0;
73 | };
74 | 73C4673218224A0B003BC7C3 /* Frameworks */ = {
75 | isa = PBXFrameworksBuildPhase;
76 | buildActionMask = 2147483647;
77 | files = (
78 | 73C4673718224A0B003BC7C3 /* XCTest.framework in Frameworks */,
79 | 73C4673918224A0B003BC7C3 /* UIKit.framework in Frameworks */,
80 | 73C4673818224A0B003BC7C3 /* Foundation.framework in Frameworks */,
81 | );
82 | runOnlyForDeploymentPostprocessing = 0;
83 | };
84 | /* End PBXFrameworksBuildPhase section */
85 |
86 | /* Begin PBXGroup section */
87 | 73C4670818224A0A003BC7C3 = {
88 | isa = PBXGroup;
89 | children = (
90 | 73C4671A18224A0B003BC7C3 /* MZLoading */,
91 | 73C4673C18224A0B003BC7C3 /* MZLoadingTests */,
92 | 73C4671318224A0B003BC7C3 /* Frameworks */,
93 | 73C4671218224A0B003BC7C3 /* Products */,
94 | );
95 | sourceTree = "";
96 | };
97 | 73C4671218224A0B003BC7C3 /* Products */ = {
98 | isa = PBXGroup;
99 | children = (
100 | 73C4671118224A0B003BC7C3 /* MZLoading.app */,
101 | 73C4673518224A0B003BC7C3 /* MZLoadingTests.xctest */,
102 | );
103 | name = Products;
104 | sourceTree = "";
105 | };
106 | 73C4671318224A0B003BC7C3 /* Frameworks */ = {
107 | isa = PBXGroup;
108 | children = (
109 | 73C4671418224A0B003BC7C3 /* Foundation.framework */,
110 | 73C4671618224A0B003BC7C3 /* CoreGraphics.framework */,
111 | 73C4671818224A0B003BC7C3 /* UIKit.framework */,
112 | 73C4673618224A0B003BC7C3 /* XCTest.framework */,
113 | );
114 | name = Frameworks;
115 | sourceTree = "";
116 | };
117 | 73C4671A18224A0B003BC7C3 /* MZLoading */ = {
118 | isa = PBXGroup;
119 | children = (
120 | 73C4674F18224CC1003BC7C3 /* Loading */,
121 | 73C4672318224A0B003BC7C3 /* MZAppDelegate.h */,
122 | 73C4672418224A0B003BC7C3 /* MZAppDelegate.m */,
123 | 73C4672618224A0B003BC7C3 /* Main_iPhone.storyboard */,
124 | 73C4672918224A0B003BC7C3 /* Main_iPad.storyboard */,
125 | 73C4672C18224A0B003BC7C3 /* MZViewController.h */,
126 | 73C4672D18224A0B003BC7C3 /* MZViewController.m */,
127 | 73C4672F18224A0B003BC7C3 /* Images.xcassets */,
128 | 73C4671B18224A0B003BC7C3 /* Supporting Files */,
129 | );
130 | path = MZLoading;
131 | sourceTree = "";
132 | };
133 | 73C4671B18224A0B003BC7C3 /* Supporting Files */ = {
134 | isa = PBXGroup;
135 | children = (
136 | 73C4671C18224A0B003BC7C3 /* MZLoading-Info.plist */,
137 | 73C4671D18224A0B003BC7C3 /* InfoPlist.strings */,
138 | 73C4672018224A0B003BC7C3 /* main.m */,
139 | 73C4672218224A0B003BC7C3 /* MZLoading-Prefix.pch */,
140 | );
141 | name = "Supporting Files";
142 | sourceTree = "";
143 | };
144 | 73C4673C18224A0B003BC7C3 /* MZLoadingTests */ = {
145 | isa = PBXGroup;
146 | children = (
147 | 73C4674218224A0B003BC7C3 /* MZLoadingTests.m */,
148 | 73C4673D18224A0B003BC7C3 /* Supporting Files */,
149 | );
150 | path = MZLoadingTests;
151 | sourceTree = "";
152 | };
153 | 73C4673D18224A0B003BC7C3 /* Supporting Files */ = {
154 | isa = PBXGroup;
155 | children = (
156 | 73C4673E18224A0B003BC7C3 /* MZLoadingTests-Info.plist */,
157 | 73C4673F18224A0B003BC7C3 /* InfoPlist.strings */,
158 | );
159 | name = "Supporting Files";
160 | sourceTree = "";
161 | };
162 | 73C4674F18224CC1003BC7C3 /* Loading */ = {
163 | isa = PBXGroup;
164 | children = (
165 | 73C4674C18224A3E003BC7C3 /* MZLoadingCircle.h */,
166 | 73C4674D18224A3E003BC7C3 /* MZLoadingCircle.m */,
167 | );
168 | name = Loading;
169 | sourceTree = "";
170 | };
171 | /* End PBXGroup section */
172 |
173 | /* Begin PBXNativeTarget section */
174 | 73C4671018224A0A003BC7C3 /* MZLoading */ = {
175 | isa = PBXNativeTarget;
176 | buildConfigurationList = 73C4674618224A0B003BC7C3 /* Build configuration list for PBXNativeTarget "MZLoading" */;
177 | buildPhases = (
178 | 73C4670D18224A0A003BC7C3 /* Sources */,
179 | 73C4670E18224A0A003BC7C3 /* Frameworks */,
180 | 73C4670F18224A0A003BC7C3 /* Resources */,
181 | );
182 | buildRules = (
183 | );
184 | dependencies = (
185 | );
186 | name = MZLoading;
187 | productName = MZLoading;
188 | productReference = 73C4671118224A0B003BC7C3 /* MZLoading.app */;
189 | productType = "com.apple.product-type.application";
190 | };
191 | 73C4673418224A0B003BC7C3 /* MZLoadingTests */ = {
192 | isa = PBXNativeTarget;
193 | buildConfigurationList = 73C4674918224A0B003BC7C3 /* Build configuration list for PBXNativeTarget "MZLoadingTests" */;
194 | buildPhases = (
195 | 73C4673118224A0B003BC7C3 /* Sources */,
196 | 73C4673218224A0B003BC7C3 /* Frameworks */,
197 | 73C4673318224A0B003BC7C3 /* Resources */,
198 | );
199 | buildRules = (
200 | );
201 | dependencies = (
202 | 73C4673B18224A0B003BC7C3 /* PBXTargetDependency */,
203 | );
204 | name = MZLoadingTests;
205 | productName = MZLoadingTests;
206 | productReference = 73C4673518224A0B003BC7C3 /* MZLoadingTests.xctest */;
207 | productType = "com.apple.product-type.bundle.unit-test";
208 | };
209 | /* End PBXNativeTarget section */
210 |
211 | /* Begin PBXProject section */
212 | 73C4670918224A0A003BC7C3 /* Project object */ = {
213 | isa = PBXProject;
214 | attributes = {
215 | CLASSPREFIX = MZ;
216 | LastUpgradeCheck = 0500;
217 | ORGANIZATIONNAME = "Serghei Mazur";
218 | TargetAttributes = {
219 | 73C4673418224A0B003BC7C3 = {
220 | TestTargetID = 73C4671018224A0A003BC7C3;
221 | };
222 | };
223 | };
224 | buildConfigurationList = 73C4670C18224A0A003BC7C3 /* Build configuration list for PBXProject "MZLoading" */;
225 | compatibilityVersion = "Xcode 3.2";
226 | developmentRegion = English;
227 | hasScannedForEncodings = 0;
228 | knownRegions = (
229 | en,
230 | Base,
231 | );
232 | mainGroup = 73C4670818224A0A003BC7C3;
233 | productRefGroup = 73C4671218224A0B003BC7C3 /* Products */;
234 | projectDirPath = "";
235 | projectRoot = "";
236 | targets = (
237 | 73C4671018224A0A003BC7C3 /* MZLoading */,
238 | 73C4673418224A0B003BC7C3 /* MZLoadingTests */,
239 | );
240 | };
241 | /* End PBXProject section */
242 |
243 | /* Begin PBXResourcesBuildPhase section */
244 | 73C4670F18224A0A003BC7C3 /* Resources */ = {
245 | isa = PBXResourcesBuildPhase;
246 | buildActionMask = 2147483647;
247 | files = (
248 | 73C4672B18224A0B003BC7C3 /* Main_iPad.storyboard in Resources */,
249 | 73C4673018224A0B003BC7C3 /* Images.xcassets in Resources */,
250 | 73C4672818224A0B003BC7C3 /* Main_iPhone.storyboard in Resources */,
251 | 73C4671F18224A0B003BC7C3 /* InfoPlist.strings in Resources */,
252 | );
253 | runOnlyForDeploymentPostprocessing = 0;
254 | };
255 | 73C4673318224A0B003BC7C3 /* Resources */ = {
256 | isa = PBXResourcesBuildPhase;
257 | buildActionMask = 2147483647;
258 | files = (
259 | 73C4674118224A0B003BC7C3 /* InfoPlist.strings in Resources */,
260 | );
261 | runOnlyForDeploymentPostprocessing = 0;
262 | };
263 | /* End PBXResourcesBuildPhase section */
264 |
265 | /* Begin PBXSourcesBuildPhase section */
266 | 73C4670D18224A0A003BC7C3 /* Sources */ = {
267 | isa = PBXSourcesBuildPhase;
268 | buildActionMask = 2147483647;
269 | files = (
270 | 73C4672E18224A0B003BC7C3 /* MZViewController.m in Sources */,
271 | 73C4674E18224A3E003BC7C3 /* MZLoadingCircle.m in Sources */,
272 | 73C4672118224A0B003BC7C3 /* main.m in Sources */,
273 | 73C4672518224A0B003BC7C3 /* MZAppDelegate.m in Sources */,
274 | );
275 | runOnlyForDeploymentPostprocessing = 0;
276 | };
277 | 73C4673118224A0B003BC7C3 /* Sources */ = {
278 | isa = PBXSourcesBuildPhase;
279 | buildActionMask = 2147483647;
280 | files = (
281 | 73C4674318224A0B003BC7C3 /* MZLoadingTests.m in Sources */,
282 | );
283 | runOnlyForDeploymentPostprocessing = 0;
284 | };
285 | /* End PBXSourcesBuildPhase section */
286 |
287 | /* Begin PBXTargetDependency section */
288 | 73C4673B18224A0B003BC7C3 /* PBXTargetDependency */ = {
289 | isa = PBXTargetDependency;
290 | target = 73C4671018224A0A003BC7C3 /* MZLoading */;
291 | targetProxy = 73C4673A18224A0B003BC7C3 /* PBXContainerItemProxy */;
292 | };
293 | /* End PBXTargetDependency section */
294 |
295 | /* Begin PBXVariantGroup section */
296 | 73C4671D18224A0B003BC7C3 /* InfoPlist.strings */ = {
297 | isa = PBXVariantGroup;
298 | children = (
299 | 73C4671E18224A0B003BC7C3 /* en */,
300 | );
301 | name = InfoPlist.strings;
302 | sourceTree = "";
303 | };
304 | 73C4672618224A0B003BC7C3 /* Main_iPhone.storyboard */ = {
305 | isa = PBXVariantGroup;
306 | children = (
307 | 73C4672718224A0B003BC7C3 /* Base */,
308 | );
309 | name = Main_iPhone.storyboard;
310 | sourceTree = "";
311 | };
312 | 73C4672918224A0B003BC7C3 /* Main_iPad.storyboard */ = {
313 | isa = PBXVariantGroup;
314 | children = (
315 | 73C4672A18224A0B003BC7C3 /* Base */,
316 | );
317 | name = Main_iPad.storyboard;
318 | sourceTree = "";
319 | };
320 | 73C4673F18224A0B003BC7C3 /* InfoPlist.strings */ = {
321 | isa = PBXVariantGroup;
322 | children = (
323 | 73C4674018224A0B003BC7C3 /* en */,
324 | );
325 | name = InfoPlist.strings;
326 | sourceTree = "";
327 | };
328 | /* End PBXVariantGroup section */
329 |
330 | /* Begin XCBuildConfiguration section */
331 | 73C4674418224A0B003BC7C3 /* Debug */ = {
332 | isa = XCBuildConfiguration;
333 | buildSettings = {
334 | ALWAYS_SEARCH_USER_PATHS = NO;
335 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
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__DUPLICATE_METHOD_MATCH = YES;
348 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
349 | COPY_PHASE_STRIP = NO;
350 | GCC_C_LANGUAGE_STANDARD = gnu99;
351 | GCC_DYNAMIC_NO_PIC = NO;
352 | GCC_OPTIMIZATION_LEVEL = 0;
353 | GCC_PREPROCESSOR_DEFINITIONS = (
354 | "DEBUG=1",
355 | "$(inherited)",
356 | );
357 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
358 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
359 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
360 | GCC_WARN_UNDECLARED_SELECTOR = YES;
361 | GCC_WARN_UNINITIALIZED_AUTOS = YES;
362 | GCC_WARN_UNUSED_FUNCTION = YES;
363 | GCC_WARN_UNUSED_VARIABLE = YES;
364 | IPHONEOS_DEPLOYMENT_TARGET = 7.0;
365 | ONLY_ACTIVE_ARCH = YES;
366 | SDKROOT = iphoneos;
367 | TARGETED_DEVICE_FAMILY = "1,2";
368 | };
369 | name = Debug;
370 | };
371 | 73C4674518224A0B003BC7C3 /* Release */ = {
372 | isa = XCBuildConfiguration;
373 | buildSettings = {
374 | ALWAYS_SEARCH_USER_PATHS = NO;
375 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
376 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
377 | CLANG_CXX_LIBRARY = "libc++";
378 | CLANG_ENABLE_MODULES = YES;
379 | CLANG_ENABLE_OBJC_ARC = YES;
380 | CLANG_WARN_BOOL_CONVERSION = YES;
381 | CLANG_WARN_CONSTANT_CONVERSION = YES;
382 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
383 | CLANG_WARN_EMPTY_BODY = YES;
384 | CLANG_WARN_ENUM_CONVERSION = YES;
385 | CLANG_WARN_INT_CONVERSION = YES;
386 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
387 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
388 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
389 | COPY_PHASE_STRIP = YES;
390 | ENABLE_NS_ASSERTIONS = NO;
391 | GCC_C_LANGUAGE_STANDARD = gnu99;
392 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
393 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
394 | GCC_WARN_UNDECLARED_SELECTOR = YES;
395 | GCC_WARN_UNINITIALIZED_AUTOS = YES;
396 | GCC_WARN_UNUSED_FUNCTION = YES;
397 | GCC_WARN_UNUSED_VARIABLE = YES;
398 | IPHONEOS_DEPLOYMENT_TARGET = 7.0;
399 | SDKROOT = iphoneos;
400 | TARGETED_DEVICE_FAMILY = "1,2";
401 | VALIDATE_PRODUCT = YES;
402 | };
403 | name = Release;
404 | };
405 | 73C4674718224A0B003BC7C3 /* Debug */ = {
406 | isa = XCBuildConfiguration;
407 | buildSettings = {
408 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
409 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
410 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
411 | GCC_PREFIX_HEADER = "MZLoading/MZLoading-Prefix.pch";
412 | INFOPLIST_FILE = "MZLoading/MZLoading-Info.plist";
413 | IPHONEOS_DEPLOYMENT_TARGET = 6.0;
414 | PRODUCT_NAME = "$(TARGET_NAME)";
415 | WRAPPER_EXTENSION = app;
416 | };
417 | name = Debug;
418 | };
419 | 73C4674818224A0B003BC7C3 /* Release */ = {
420 | isa = XCBuildConfiguration;
421 | buildSettings = {
422 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
423 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
424 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
425 | GCC_PREFIX_HEADER = "MZLoading/MZLoading-Prefix.pch";
426 | INFOPLIST_FILE = "MZLoading/MZLoading-Info.plist";
427 | IPHONEOS_DEPLOYMENT_TARGET = 6.0;
428 | PRODUCT_NAME = "$(TARGET_NAME)";
429 | WRAPPER_EXTENSION = app;
430 | };
431 | name = Release;
432 | };
433 | 73C4674A18224A0B003BC7C3 /* Debug */ = {
434 | isa = XCBuildConfiguration;
435 | buildSettings = {
436 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
437 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/MZLoading.app/MZLoading";
438 | FRAMEWORK_SEARCH_PATHS = (
439 | "$(SDKROOT)/Developer/Library/Frameworks",
440 | "$(inherited)",
441 | "$(DEVELOPER_FRAMEWORKS_DIR)",
442 | );
443 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
444 | GCC_PREFIX_HEADER = "MZLoading/MZLoading-Prefix.pch";
445 | GCC_PREPROCESSOR_DEFINITIONS = (
446 | "DEBUG=1",
447 | "$(inherited)",
448 | );
449 | INFOPLIST_FILE = "MZLoadingTests/MZLoadingTests-Info.plist";
450 | PRODUCT_NAME = "$(TARGET_NAME)";
451 | TEST_HOST = "$(BUNDLE_LOADER)";
452 | WRAPPER_EXTENSION = xctest;
453 | };
454 | name = Debug;
455 | };
456 | 73C4674B18224A0B003BC7C3 /* Release */ = {
457 | isa = XCBuildConfiguration;
458 | buildSettings = {
459 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
460 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/MZLoading.app/MZLoading";
461 | FRAMEWORK_SEARCH_PATHS = (
462 | "$(SDKROOT)/Developer/Library/Frameworks",
463 | "$(inherited)",
464 | "$(DEVELOPER_FRAMEWORKS_DIR)",
465 | );
466 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
467 | GCC_PREFIX_HEADER = "MZLoading/MZLoading-Prefix.pch";
468 | INFOPLIST_FILE = "MZLoadingTests/MZLoadingTests-Info.plist";
469 | PRODUCT_NAME = "$(TARGET_NAME)";
470 | TEST_HOST = "$(BUNDLE_LOADER)";
471 | WRAPPER_EXTENSION = xctest;
472 | };
473 | name = Release;
474 | };
475 | /* End XCBuildConfiguration section */
476 |
477 | /* Begin XCConfigurationList section */
478 | 73C4670C18224A0A003BC7C3 /* Build configuration list for PBXProject "MZLoading" */ = {
479 | isa = XCConfigurationList;
480 | buildConfigurations = (
481 | 73C4674418224A0B003BC7C3 /* Debug */,
482 | 73C4674518224A0B003BC7C3 /* Release */,
483 | );
484 | defaultConfigurationIsVisible = 0;
485 | defaultConfigurationName = Release;
486 | };
487 | 73C4674618224A0B003BC7C3 /* Build configuration list for PBXNativeTarget "MZLoading" */ = {
488 | isa = XCConfigurationList;
489 | buildConfigurations = (
490 | 73C4674718224A0B003BC7C3 /* Debug */,
491 | 73C4674818224A0B003BC7C3 /* Release */,
492 | );
493 | defaultConfigurationIsVisible = 0;
494 | defaultConfigurationName = Release;
495 | };
496 | 73C4674918224A0B003BC7C3 /* Build configuration list for PBXNativeTarget "MZLoadingTests" */ = {
497 | isa = XCConfigurationList;
498 | buildConfigurations = (
499 | 73C4674A18224A0B003BC7C3 /* Debug */,
500 | 73C4674B18224A0B003BC7C3 /* Release */,
501 | );
502 | defaultConfigurationIsVisible = 0;
503 | defaultConfigurationName = Release;
504 | };
505 | /* End XCConfigurationList section */
506 | };
507 | rootObject = 73C4670918224A0A003BC7C3 /* Project object */;
508 | }
509 |
--------------------------------------------------------------------------------