├── demo.gif
├── NTSlidingViewController
├── en.lproj
│ └── InfoPlist.strings
├── ViewController.h
├── ViewController2.h
├── ViewController3.h
├── ViewController4.h
├── ViewController5.h
├── AppDelegate.h
├── main.m
├── NTSlidingViewController-Prefix.pch
├── ViewController.m
├── ViewController2.m
├── ViewController3.m
├── ViewController4.m
├── ViewController5.m
├── Images.xcassets
│ ├── AppIcon.appiconset
│ │ └── Contents.json
│ └── LaunchImage.launchimage
│ │ └── Contents.json
├── NTSlidingViewController-Info.plist
├── Base.lproj
│ ├── Main_iPad.storyboard
│ └── Main_iPhone.storyboard
└── AppDelegate.m
├── NTSlidingViewControllerTests
├── en.lproj
│ └── InfoPlist.strings
├── NTSlidingViewControllerTests-Info.plist
└── NTSlidingViewControllerTests.m
├── NTSlidingViewController.xcodeproj
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ ├── xcuserdata
│ │ ├── mac.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ │ └── null.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ └── xcshareddata
│ │ └── NTSlidingViewController.xccheckout
├── xcuserdata
│ ├── mac.xcuserdatad
│ │ ├── xcschemes
│ │ │ ├── xcschememanagement.plist
│ │ │ └── NTSlidingViewController.xcscheme
│ │ └── xcdebugger
│ │ │ └── Breakpoints_v2.xcbkptlist
│ └── null.xcuserdatad
│ │ └── xcschemes
│ │ ├── xcschememanagement.plist
│ │ └── NTSlidingViewController.xcscheme
└── project.pbxproj
├── LICENSE
├── NTSlidingViewController.podspec
├── Classes
├── NTSlidingViewController.h
└── NTSlidingViewController.m
└── README.md
/demo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nonstriater/NTSlidingViewController/HEAD/demo.gif
--------------------------------------------------------------------------------
/NTSlidingViewController/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/NTSlidingViewControllerTests/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/NTSlidingViewController.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/NTSlidingViewController.xcodeproj/project.xcworkspace/xcuserdata/mac.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nonstriater/NTSlidingViewController/HEAD/NTSlidingViewController.xcodeproj/project.xcworkspace/xcuserdata/mac.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/NTSlidingViewController.xcodeproj/project.xcworkspace/xcuserdata/null.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nonstriater/NTSlidingViewController/HEAD/NTSlidingViewController.xcodeproj/project.xcworkspace/xcuserdata/null.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/NTSlidingViewController/ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.h
3 | // NTSlidingViewController
4 | //
5 | // Created by nonstriater on 14-2-24.
6 | // Copyright (c) 2014年 xiaoran. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController : UIViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/NTSlidingViewController/ViewController2.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController2.h
3 | // NTSlidingViewController
4 | //
5 | // Created by nonstriater on 14-2-24.
6 | // Copyright (c) 2014年 xiaoran. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController2 : UIViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/NTSlidingViewController/ViewController3.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController3.h
3 | // NTSlidingViewController
4 | //
5 | // Created by nonstriater on 14-2-24.
6 | // Copyright (c) 2014年 xiaoran. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController3 : UIViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/NTSlidingViewController/ViewController4.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController4.h
3 | // NTSlidingViewController
4 | //
5 | // Created by nonstriater on 14-2-24.
6 | // Copyright (c) 2014年 xiaoran. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController4 : UIViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/NTSlidingViewController/ViewController5.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController5.h
3 | // NTSlidingViewController
4 | //
5 | // Created by nonstriater on 14-2-24.
6 | // Copyright (c) 2014年 xiaoran. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController5 : UIViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/NTSlidingViewController/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // NTSlidingViewController
4 | //
5 | // Created by nonstriater on 14-2-24.
6 | // Copyright (c) 2014年 xiaoran. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface AppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/NTSlidingViewController/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // NTSlidingViewController
4 | //
5 | // Created by nonstriater on 14-2-24.
6 | // Copyright (c) 2014年 xiaoran. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import "AppDelegate.h"
12 |
13 | int main(int argc, char * argv[])
14 | {
15 | @autoreleasepool {
16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/NTSlidingViewController/NTSlidingViewController-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 |
--------------------------------------------------------------------------------
/NTSlidingViewController/ViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.m
3 | // NTSlidingViewController
4 | //
5 | // Created by nonstriater on 14-2-24.
6 | // Copyright (c) 2014年 xiaoran. All rights reserved.
7 | //
8 |
9 | #import "ViewController.h"
10 |
11 | @interface ViewController ()
12 |
13 | @end
14 |
15 | @implementation ViewController
16 |
17 | - (void)viewDidLoad
18 | {
19 | [super viewDidLoad];
20 | // Do any additional setup after loading the view, typically from a nib.
21 | }
22 |
23 | - (void)didReceiveMemoryWarning
24 | {
25 | [super didReceiveMemoryWarning];
26 | // Dispose of any resources that can be recreated.
27 | }
28 |
29 | @end
30 |
--------------------------------------------------------------------------------
/NTSlidingViewController.xcodeproj/xcuserdata/mac.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | NTSlidingViewController.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 04A7B73018BB80E80095A319
16 |
17 | primary
18 |
19 |
20 | 04A7B75418BB80E80095A319
21 |
22 | primary
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/NTSlidingViewController.xcodeproj/xcuserdata/null.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | NTSlidingViewController.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 04A7B73018BB80E80095A319
16 |
17 | primary
18 |
19 |
20 | 04A7B75418BB80E80095A319
21 |
22 | primary
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/NTSlidingViewControllerTests/NTSlidingViewControllerTests-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIdentifier
10 | com.xiaoran.${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 |
--------------------------------------------------------------------------------
/NTSlidingViewControllerTests/NTSlidingViewControllerTests.m:
--------------------------------------------------------------------------------
1 | //
2 | // NTSlidingViewControllerTests.m
3 | // NTSlidingViewControllerTests
4 | //
5 | // Created by nonstriater on 14-2-24.
6 | // Copyright (c) 2014年 xiaoran. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface NTSlidingViewControllerTests : XCTestCase
12 |
13 | @end
14 |
15 | @implementation NTSlidingViewControllerTests
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 |
--------------------------------------------------------------------------------
/NTSlidingViewController/ViewController2.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController2.m
3 | // NTSlidingViewController
4 | //
5 | // Created by nonstriater on 14-2-24.
6 | // Copyright (c) 2014年 xiaoran. All rights reserved.
7 | //
8 |
9 | #import "ViewController2.h"
10 |
11 | @interface ViewController2 ()
12 |
13 | @end
14 |
15 | @implementation ViewController2
16 |
17 | - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
18 | {
19 | self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
20 | if (self) {
21 | // Custom initialization
22 | }
23 | return self;
24 | }
25 |
26 | - (void)viewDidLoad
27 | {
28 | [super viewDidLoad];
29 | // Do any additional setup after loading the view.
30 | }
31 |
32 | - (void)didReceiveMemoryWarning
33 | {
34 | [super didReceiveMemoryWarning];
35 | // Dispose of any resources that can be recreated.
36 | }
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/NTSlidingViewController/ViewController3.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController3.m
3 | // NTSlidingViewController
4 | //
5 | // Created by nonstriater on 14-2-24.
6 | // Copyright (c) 2014年 xiaoran. All rights reserved.
7 | //
8 |
9 | #import "ViewController3.h"
10 |
11 | @interface ViewController3 ()
12 |
13 | @end
14 |
15 | @implementation ViewController3
16 |
17 | - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
18 | {
19 | self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
20 | if (self) {
21 | // Custom initialization
22 | }
23 | return self;
24 | }
25 |
26 | - (void)viewDidLoad
27 | {
28 | [super viewDidLoad];
29 | // Do any additional setup after loading the view.
30 | }
31 |
32 | - (void)didReceiveMemoryWarning
33 | {
34 | [super didReceiveMemoryWarning];
35 | // Dispose of any resources that can be recreated.
36 | }
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/NTSlidingViewController/ViewController4.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController4.m
3 | // NTSlidingViewController
4 | //
5 | // Created by nonstriater on 14-2-24.
6 | // Copyright (c) 2014年 xiaoran. All rights reserved.
7 | //
8 |
9 | #import "ViewController4.h"
10 |
11 | @interface ViewController4 ()
12 |
13 | @end
14 |
15 | @implementation ViewController4
16 |
17 | - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
18 | {
19 | self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
20 | if (self) {
21 | // Custom initialization
22 | }
23 | return self;
24 | }
25 |
26 | - (void)viewDidLoad
27 | {
28 | [super viewDidLoad];
29 | // Do any additional setup after loading the view.
30 | }
31 |
32 | - (void)didReceiveMemoryWarning
33 | {
34 | [super didReceiveMemoryWarning];
35 | // Dispose of any resources that can be recreated.
36 | }
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/NTSlidingViewController/ViewController5.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController5.m
3 | // NTSlidingViewController
4 | //
5 | // Created by nonstriater on 14-2-24.
6 | // Copyright (c) 2014年 xiaoran. All rights reserved.
7 | //
8 |
9 | #import "ViewController5.h"
10 |
11 | @interface ViewController5 ()
12 |
13 | @end
14 |
15 | @implementation ViewController5
16 |
17 | - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
18 | {
19 | self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
20 | if (self) {
21 | // Custom initialization
22 | }
23 | return self;
24 | }
25 |
26 | - (void)viewDidLoad
27 | {
28 | [super viewDidLoad];
29 | // Do any additional setup after loading the view.
30 | }
31 |
32 | - (void)didReceiveMemoryWarning
33 | {
34 | [super didReceiveMemoryWarning];
35 | // Dispose of any resources that can be recreated.
36 | }
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/NTSlidingViewController.xcodeproj/xcuserdata/mac.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
8 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | NTSlidingViewContrller is available under the MIT license.
2 |
3 | Copyright © 2014 @Nonstriater.
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6 |
7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/NTSlidingViewController/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 | }
--------------------------------------------------------------------------------
/NTSlidingViewController/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 | }
--------------------------------------------------------------------------------
/NTSlidingViewController.podspec:
--------------------------------------------------------------------------------
1 | #
2 | # Be sure to run `pod spec lint NTSlidingViewController.podspec' to ensure this is a
3 | # valid spec and to remove all comments including this before submitting the spec.
4 | #
5 | # To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html
6 | # To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
7 | #
8 |
9 | Pod::Spec.new do |s|
10 |
11 |
12 | s.name = "NTSlidingViewController"
13 | s.version = "1.0.0"
14 | s.summary = "NTSlidingViewController is right-and-left sliding view controller container"
15 | s.homepage = "https://github.com/nonstriater/NTSlidingViewController"
16 | s.screenshots = "https://github.com/nonstriater/NTSlidingViewController/raw/master/demo.gif"
17 |
18 |
19 | s.license = "MIT"
20 | s.license = { :type => "MIT", :file => "LICENSE" }
21 |
22 | s.author = { "nonstriater" => "410495266@qq.com" }
23 | s.social_media_url = "https://twitter.com/nonstriater"
24 |
25 | s.platform = :ios
26 | s.platform = :ios, "6.0"
27 |
28 |
29 | s.source = { :git => "https://github.com/nonstriater/NTSlidingViewController.git", :commit => "fad183634f8269e3a0f9e8c969bffb2365d9fcbb", :tag => "1.0.0" }
30 | s.source_files = "Classes/*.{h,m}"
31 |
32 |
33 | s.requires_arc = true
34 |
35 | # s.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" }
36 | # s.dependency "JSONKit", "~> 1.4"
37 |
38 | end
39 |
--------------------------------------------------------------------------------
/Classes/NTSlidingViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // NTSlidingViewController.h
3 | // NTSlidingViewController
4 | //
5 | // Created by nonstriater on 14-2-24.
6 | // Copyright (c) 2014年 xiaoran. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | typedef void (^NTTransitionCompleteBlock)(NSUInteger from,NSUInteger to);
12 |
13 |
14 | @interface NTSlidingViewController : UINavigationController
15 |
16 | @property(nonatomic,assign) NSUInteger selectedIndex;
17 | @property(nonatomic,strong) UIColor *selectedLabelColor;
18 | @property(nonatomic,strong) UIColor *unselectedLabelColor;
19 | @property(nonatomic,strong) UIView *navigationBarView;
20 | @property(nonatomic,strong,readonly) NSMutableArray *titles;//array of NSString
21 | @property(nonatomic,strong,readonly) NSMutableArray *childControllers;//array of UIViewControllers
22 |
23 |
24 | - (instancetype)initSlidingViewControllerWithTitle:(NSString *)title viewController:(UIViewController *)controller;
25 | - (instancetype)initSlidingViewControllerWithTitlesAndControllers:(NSDictionary *)titlesAndControllers;
26 | - (void)addControllerWithTitle:(NSString *)title viewController:(UIViewController *)controller;
27 | + (instancetype)slidingViewControllerWithTitlesAndControllers:(NSDictionary *)titlesAndControllers;
28 |
29 | - (void)transitionToViewControllerAtIndex:(NSUInteger)index;
30 | - (void)transitionToViewController:(UIViewController *)controller;
31 | - (void)transitionToViewController:(UIViewController *)controller complteBlock:(NTTransitionCompleteBlock)block;
32 |
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/NTSlidingViewController/NTSlidingViewController-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | ${PRODUCT_NAME}
9 | CFBundleExecutable
10 | ${EXECUTABLE_NAME}
11 | CFBundleIdentifier
12 | com.xiaoran.${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 |
39 | UISupportedInterfaceOrientations~ipad
40 |
41 | UIInterfaceOrientationPortrait
42 | UIInterfaceOrientationPortraitUpsideDown
43 | UIInterfaceOrientationLandscapeLeft
44 | UIInterfaceOrientationLandscapeRight
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/NTSlidingViewController/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 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/NTSlidingViewController.xcodeproj/project.xcworkspace/xcshareddata/NTSlidingViewController.xccheckout:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDESourceControlProjectFavoriteDictionaryKey
6 |
7 | IDESourceControlProjectIdentifier
8 | 8A172405-DFE6-4CF1-9017-221E7DA9162C
9 | IDESourceControlProjectName
10 | NTSlidingViewController
11 | IDESourceControlProjectOriginsDictionary
12 |
13 | CD0BFF24-9F3B-4189-A172-895151BE36E3
14 | https://github.com/nonstriater/NTSlidingViewController.git
15 |
16 | IDESourceControlProjectPath
17 | NTSlidingViewController.xcodeproj/project.xcworkspace
18 | IDESourceControlProjectRelativeInstallPathDictionary
19 |
20 | CD0BFF24-9F3B-4189-A172-895151BE36E3
21 | ../..
22 |
23 | IDESourceControlProjectURL
24 | https://github.com/nonstriater/NTSlidingViewController.git
25 | IDESourceControlProjectVersion
26 | 110
27 | IDESourceControlProjectWCCIdentifier
28 | CD0BFF24-9F3B-4189-A172-895151BE36E3
29 | IDESourceControlProjectWCConfigurations
30 |
31 |
32 | IDESourceControlRepositoryExtensionIdentifierKey
33 | public.vcs.git
34 | IDESourceControlWCCIdentifierKey
35 | CD0BFF24-9F3B-4189-A172-895151BE36E3
36 | IDESourceControlWCCName
37 | NTSlidingViewController
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 | # NTSlidingViewController
3 |
4 | NTSlidingViewController is right-and-left sliding view controller container.It's created just for fun.
5 |
6 |
7 |
8 | the gif designed by [licecap](http://www.cockos.com/licecap/).
9 |
10 | ## Requiredments
11 |
12 | * ARC
13 | * Xcode 5 or higher
14 | * Apple LLVM compiler
15 | * iOS 6.0 or higher
16 |
17 |
18 | ## Installation
19 |
20 | NTSlidingViewController can be installed using [CocoaPods](http://cocoapods.org/)
21 |
22 | pod NTSlidingViewController
23 |
24 | or using the source code directly:
25 |
26 | All you need to do is drop `NTSlidingViewController` files into your project, and add `#include "NTSlidingViewController.h"` to the top of classes that will use it.
27 |
28 | ## Example Usage
29 |
30 |
31 | In your AppDelegate's `- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions` create the sliding view controller and assign child view controllers.
32 |
33 | ``` objective-c
34 | // Create sliding view controller and childs view controllers
35 |
36 | NTSlidingViewController *sliding = [[NTSlidingViewController alloc] initSlidingViewControllerWithTitle:@"推荐" viewController:vc1];
37 | [sliding addControllerWithTitle:@"精选集" viewController:vc2];
38 | [sliding addControllerWithTitle:@"排行榜" viewController:vc3];
39 | [sliding addControllerWithTitle:@"专辑" viewController:vc4];
40 | [sliding addControllerWithTitle:@"艺人" viewController:vc5];
41 |
42 | // Make it a root controller
43 | self.window.rootViewController = sideMenuViewController;
44 | ```
45 |
46 | you can alse configure the select and unselect color for sliding view controller:
47 |
48 | ``` objective-c
49 |
50 | sliding.selectedLabelColor = [UIColor magentaColor];
51 | sliding.unselectedLabelColor = [UIColor redColor];
52 |
53 | ```
54 |
55 |
56 | ## Contact
57 |
58 | @Nonstriater
59 |
60 | - https://twitter.com/nonstriater
61 | - http://weibo.com/ranwj
62 | - http://github.com/nonstriater
63 | - http://nonstriater.github.io
64 | - nonstriater@qq.com
65 |
66 |
67 | ## Licence
68 |
69 | NTSlidingViewContrller is available under the MIT license.
70 |
71 | Copyright © 2014 @Nonstriater.
72 |
73 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
74 |
75 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
76 |
77 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/NTSlidingViewController.xcodeproj/xcuserdata/mac.xcuserdatad/xcschemes/NTSlidingViewController.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 |
--------------------------------------------------------------------------------
/NTSlidingViewController.xcodeproj/xcuserdata/null.xcuserdatad/xcschemes/NTSlidingViewController.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 |
--------------------------------------------------------------------------------
/NTSlidingViewController/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // NTSlidingViewController
4 | //
5 | // Created by nonstriater on 14-2-24.
6 | // Copyright (c) 2014年 xiaoran. All rights reserved.
7 | //
8 |
9 | #import "AppDelegate.h"
10 | #import "NTSlidingViewController.h"
11 |
12 | @implementation AppDelegate
13 |
14 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
15 | {
16 | // Override point for customization after application launch.
17 | UIViewController *vc1 = [[UIStoryboard storyboardWithName:@"Main_iPhone" bundle:nil] instantiateInitialViewController];
18 | UIViewController *vc2 = [[UIStoryboard storyboardWithName:@"Main_iPhone" bundle:nil] instantiateViewControllerWithIdentifier:@"vc2"];
19 | UIViewController *vc3 = [[UIStoryboard storyboardWithName:@"Main_iPhone" bundle:nil] instantiateViewControllerWithIdentifier:@"vc3"];
20 | UIViewController *vc4 = [[UIStoryboard storyboardWithName:@"Main_iPhone" bundle:nil] instantiateViewControllerWithIdentifier:@"vc4"];
21 | UIViewController *vc5 = [[UIStoryboard storyboardWithName:@"Main_iPhone" bundle:nil] instantiateViewControllerWithIdentifier:@"vc5"];
22 |
23 | // NTSlidingViewController *sliding = [NTSlidingViewController slidingViewControllerWithTitlesAndControllers:@{
24 | //
25 | // @"推荐":vc1,
26 | // @"精选集":vc2,
27 | // @"排行榜":vc3,
28 | // @"专辑":vc4,
29 | // @"艺人":vc5
30 | //
31 | // }];
32 |
33 | NTSlidingViewController *sliding = [[NTSlidingViewController alloc] initSlidingViewControllerWithTitle:@"推荐" viewController:vc1];
34 | [sliding addControllerWithTitle:@"精选集" viewController:vc2];
35 | [sliding addControllerWithTitle:@"排行榜" viewController:vc3];
36 | [sliding addControllerWithTitle:@"专辑" viewController:vc4];
37 | [sliding addControllerWithTitle:@"艺人" viewController:vc5];
38 | sliding.selectedLabelColor = [UIColor redColor];
39 | sliding.unselectedLabelColor = [UIColor brownColor];
40 |
41 | self.window.rootViewController = sliding;
42 |
43 | return YES;
44 | }
45 |
46 | - (void)applicationWillResignActive:(UIApplication *)application
47 | {
48 | // 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.
49 | // 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.
50 | }
51 |
52 | - (void)applicationDidEnterBackground:(UIApplication *)application
53 | {
54 | // 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.
55 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
56 | }
57 |
58 | - (void)applicationWillEnterForeground:(UIApplication *)application
59 | {
60 | // 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.
61 | }
62 |
63 | - (void)applicationDidBecomeActive:(UIApplication *)application
64 | {
65 | // 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.
66 | }
67 |
68 | - (void)applicationWillTerminate:(UIApplication *)application
69 | {
70 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
71 | }
72 |
73 | @end
74 |
--------------------------------------------------------------------------------
/NTSlidingViewController/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 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
--------------------------------------------------------------------------------
/Classes/NTSlidingViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // NTSlidingViewController.m
3 | // NTSlidingViewController
4 | //
5 | // Created by nonstriater on 14-2-24.
6 | // Copyright (c) 2014年 xiaoran. All rights reserved.
7 | //
8 |
9 | #import "NTSlidingViewController.h"
10 |
11 | static const CGFloat kMaximumNumberChildControllers = 6;
12 | static const CGFloat kNavbarButtonScaleFactor = 1.4f;
13 |
14 |
15 | @interface UIColor (components)
16 |
17 | - (CGFloat)red;
18 | - (CGFloat)green;
19 | - (CGFloat)blue;
20 |
21 | @end
22 |
23 | @implementation UIColor (components)
24 |
25 | - (CGFloat)red{
26 | return CGColorGetComponents(self.CGColor)[0];
27 | }
28 | - (CGFloat)green{
29 | return CGColorGetComponents(self.CGColor)[1];
30 | }
31 | - (CGFloat)blue{
32 | return CGColorGetComponents(self.CGColor)[2];
33 | }
34 |
35 |
36 | @end
37 |
38 |
39 | @interface NTSlidingViewController (){
40 |
41 | UIScrollView *_scrollView;
42 | }
43 |
44 | @end
45 |
46 | @implementation NTSlidingViewController
47 |
48 | #pragma mark- contrller lifecircle
49 |
50 | - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
51 | {
52 | self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
53 | if (self) {
54 | // Custom initialization
55 | }
56 | return self;
57 | }
58 |
59 |
60 | - (instancetype)init{
61 | if (self=[super init]) {
62 | [self commonInit];
63 | }
64 | return self;
65 | }
66 |
67 | - (instancetype)initSlidingViewControllerWithTitle:(NSString *)title viewController:(UIViewController *)controller{
68 |
69 | self = [self init];
70 | if (self) {
71 |
72 | [self.titles addObject:title];
73 | [self.childControllers addObject:controller];
74 | }
75 | return self;
76 | }
77 | - (instancetype)initSlidingViewControllerWithTitlesAndControllers:(NSDictionary *)titlesAndControllers{
78 |
79 | if (self = [self init]) {
80 |
81 | [titlesAndControllers enumerateKeysAndObjectsUsingBlock:^(id key,id obj,BOOL *stop){
82 | if ([key isKindOfClass:[NSString class]] && [obj isKindOfClass:[UIViewController class]]) {
83 |
84 | [self.titles addObject:key];
85 | [self.childControllers addObject:obj];
86 | }
87 | }];
88 |
89 | }
90 | return self;
91 | }
92 |
93 |
94 | - (void)addControllerWithTitle:(NSString *)title viewController:(UIViewController *)controller{
95 |
96 | [self.titles addObject:title];
97 | [self.childControllers addObject:controller];
98 |
99 | }
100 |
101 | + (instancetype)slidingViewControllerWithTitlesAndControllers:(NSDictionary *)titlesAndControllers{
102 |
103 | return [[self alloc] initSlidingViewControllerWithTitlesAndControllers:titlesAndControllers];
104 |
105 | }
106 |
107 | - (void)commonInit{
108 |
109 | _titles = [[NSMutableArray alloc] init];
110 | _childControllers = [[NSMutableArray alloc] init];
111 |
112 | _unselectedLabelColor = [UIColor grayColor];
113 | _selectedLabelColor = [UIColor redColor];
114 | _selectedIndex = 1;
115 | }
116 |
117 |
118 | - (void)didReceiveMemoryWarning
119 | {
120 | [super didReceiveMemoryWarning];
121 | // Dispose of any resources that can be recreated.
122 | }
123 |
124 |
125 | #pragma mark - config
126 |
127 | -(UIInterfaceOrientation)interfaceOrientation{
128 | return UIInterfaceOrientationPortrait;
129 | }
130 |
131 | #pragma mark - view lifecircle
132 | - (void)viewDidLoad
133 | {
134 | [super viewDidLoad];
135 | // Do any additional setup after loading the view.
136 | [self.view setBackgroundColor:[UIColor clearColor]];
137 |
138 | [self.navigationBar addSubview:self.navigationBarView];
139 |
140 | [self.view addSubview:[self contentScrollView]];
141 |
142 | }
143 |
144 | // 动态适配
145 | // 最多 6 个
146 | //
147 | -(UIView *)navigationBarView{
148 |
149 | if (!_navigationBarView) {
150 | _navigationBarView = [[UIView alloc] initWithFrame:self.navigationBar.bounds];
151 | CGFloat barViewWidth = self.view.frame.size.width;
152 | CGFloat itemWidth = barViewWidth/kMaximumNumberChildControllers ;
153 | NSUInteger itemCount = [self.titles count];
154 | CGFloat itemMargin = (barViewWidth - itemCount*itemWidth)/(itemCount+1);
155 | for (int i=0; i0 && _selectedIndex<[self.titles count]){//右
269 | relativeButton = (UIButton *)[_navigationBarView viewWithTag:_selectedIndex+1];
270 | }else if(offset<0 && _selectedIndex>1){
271 | relativeButton = (UIButton *)[_navigationBarView viewWithTag:_selectedIndex-1];
272 | }
273 |
274 | offset = fabsf(offset);
275 | if (relativeButton) {
276 |
277 | CGFloat scrollViewWidth = scrollView.frame.size.width;
278 | CGFloat currentScaleFactor = (kNavbarButtonScaleFactor)-(kNavbarButtonScaleFactor-1)*fabsf(offset)/scrollViewWidth;
279 | CGFloat relativeScaleFactor = (kNavbarButtonScaleFactor-1)*fabsf(offset)/scrollViewWidth+1.f;
280 |
281 |
282 |
283 | UIColor *currentColor = [UIColor colorWithRed:((self.unselectedLabelColor.red-self.selectedLabelColor.red)*offset/scrollViewWidth+self.selectedLabelColor.red)
284 | green:((self.unselectedLabelColor.green-self.selectedLabelColor.green)*offset/scrollViewWidth+self.selectedLabelColor.green)
285 | blue:((self.unselectedLabelColor.blue-self.selectedLabelColor.blue)*offset/scrollViewWidth+self.selectedLabelColor.blue)
286 | alpha:1];
287 |
288 | UIColor *relativeColor = [UIColor colorWithRed:((self.selectedLabelColor.red-self.unselectedLabelColor.red)*offset/scrollViewWidth+self.unselectedLabelColor.red)
289 | green:((self.selectedLabelColor.green-self.unselectedLabelColor.green)*offset/scrollViewWidth+self.unselectedLabelColor.green)
290 | blue:((self.selectedLabelColor.blue-self.unselectedLabelColor.blue)*offset/scrollViewWidth+self.unselectedLabelColor.blue)
291 | alpha:1];
292 |
293 | currentButton.transform = CGAffineTransformMakeScale(currentScaleFactor,currentScaleFactor );
294 | [currentButton setTitleColor:currentColor forState:UIControlStateNormal];
295 |
296 | relativeButton.transform = CGAffineTransformMakeScale(relativeScaleFactor,relativeScaleFactor );
297 | [relativeButton setTitleColor:relativeColor forState:UIControlStateNormal];
298 |
299 |
300 | }
301 |
302 | }
303 |
304 |
305 | #pragma mark - public
306 |
307 |
308 | - (void)transitionToViewControllerAtIndex:(NSUInteger)index{
309 |
310 | [_scrollView setContentOffset:CGPointMake(index*_scrollView.frame.size.width, 0)];
311 |
312 | }
313 | - (void)transitionToViewController:(UIViewController *)controller{
314 |
315 | [self transitionToViewControllerAtIndex:[self.childControllers indexOfObject:controller]];
316 | }
317 |
318 | - (void)transitionToViewController:(UIViewController *)controller complteBlock:(NTTransitionCompleteBlock)block{
319 |
320 | }
321 |
322 |
323 |
324 | @end
325 |
--------------------------------------------------------------------------------
/NTSlidingViewController.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 04A7B73518BB80E80095A319 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 04A7B73418BB80E80095A319 /* Foundation.framework */; };
11 | 04A7B73718BB80E80095A319 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 04A7B73618BB80E80095A319 /* CoreGraphics.framework */; };
12 | 04A7B73918BB80E80095A319 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 04A7B73818BB80E80095A319 /* UIKit.framework */; };
13 | 04A7B73F18BB80E80095A319 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 04A7B73D18BB80E80095A319 /* InfoPlist.strings */; };
14 | 04A7B74118BB80E80095A319 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 04A7B74018BB80E80095A319 /* main.m */; };
15 | 04A7B74518BB80E80095A319 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 04A7B74418BB80E80095A319 /* AppDelegate.m */; };
16 | 04A7B74818BB80E80095A319 /* Main_iPhone.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 04A7B74618BB80E80095A319 /* Main_iPhone.storyboard */; };
17 | 04A7B74B18BB80E80095A319 /* Main_iPad.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 04A7B74918BB80E80095A319 /* Main_iPad.storyboard */; };
18 | 04A7B74E18BB80E80095A319 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 04A7B74D18BB80E80095A319 /* ViewController.m */; };
19 | 04A7B75018BB80E80095A319 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 04A7B74F18BB80E80095A319 /* Images.xcassets */; };
20 | 04A7B75718BB80E80095A319 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 04A7B75618BB80E80095A319 /* XCTest.framework */; };
21 | 04A7B75818BB80E80095A319 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 04A7B73418BB80E80095A319 /* Foundation.framework */; };
22 | 04A7B75918BB80E80095A319 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 04A7B73818BB80E80095A319 /* UIKit.framework */; };
23 | 04A7B76118BB80E80095A319 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 04A7B75F18BB80E80095A319 /* InfoPlist.strings */; };
24 | 04A7B76318BB80E80095A319 /* NTSlidingViewControllerTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 04A7B76218BB80E80095A319 /* NTSlidingViewControllerTests.m */; };
25 | 04A7B76E18BB81210095A319 /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = 04A7B76D18BB81210095A319 /* README.md */; };
26 | 04A7B77118BB83630095A319 /* NTSlidingViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 04A7B77018BB83630095A319 /* NTSlidingViewController.m */; };
27 | 04A7B77418BB9E730095A319 /* ViewController2.m in Sources */ = {isa = PBXBuildFile; fileRef = 04A7B77318BB9E730095A319 /* ViewController2.m */; };
28 | 04A7B77718BB9E7D0095A319 /* ViewController3.m in Sources */ = {isa = PBXBuildFile; fileRef = 04A7B77618BB9E7D0095A319 /* ViewController3.m */; };
29 | 04A7B77A18BBA2020095A319 /* ViewController4.m in Sources */ = {isa = PBXBuildFile; fileRef = 04A7B77918BBA2020095A319 /* ViewController4.m */; };
30 | 04A7B77D18BBA2090095A319 /* ViewController5.m in Sources */ = {isa = PBXBuildFile; fileRef = 04A7B77C18BBA2090095A319 /* ViewController5.m */; };
31 | /* End PBXBuildFile section */
32 |
33 | /* Begin PBXContainerItemProxy section */
34 | 04A7B75A18BB80E80095A319 /* PBXContainerItemProxy */ = {
35 | isa = PBXContainerItemProxy;
36 | containerPortal = 04A7B72918BB80E80095A319 /* Project object */;
37 | proxyType = 1;
38 | remoteGlobalIDString = 04A7B73018BB80E80095A319;
39 | remoteInfo = NTSlidingViewController;
40 | };
41 | /* End PBXContainerItemProxy section */
42 |
43 | /* Begin PBXFileReference section */
44 | 04A7B73118BB80E80095A319 /* NTSlidingViewController.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = NTSlidingViewController.app; sourceTree = BUILT_PRODUCTS_DIR; };
45 | 04A7B73418BB80E80095A319 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
46 | 04A7B73618BB80E80095A319 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
47 | 04A7B73818BB80E80095A319 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
48 | 04A7B73C18BB80E80095A319 /* NTSlidingViewController-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "NTSlidingViewController-Info.plist"; sourceTree = ""; };
49 | 04A7B73E18BB80E80095A319 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; };
50 | 04A7B74018BB80E80095A319 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
51 | 04A7B74218BB80E80095A319 /* NTSlidingViewController-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NTSlidingViewController-Prefix.pch"; sourceTree = ""; };
52 | 04A7B74318BB80E80095A319 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
53 | 04A7B74418BB80E80095A319 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
54 | 04A7B74718BB80E80095A319 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main_iPhone.storyboard; sourceTree = ""; };
55 | 04A7B74A18BB80E80095A319 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main_iPad.storyboard; sourceTree = ""; };
56 | 04A7B74C18BB80E80095A319 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; };
57 | 04A7B74D18BB80E80095A319 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; };
58 | 04A7B74F18BB80E80095A319 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; };
59 | 04A7B75518BB80E80095A319 /* NTSlidingViewControllerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = NTSlidingViewControllerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
60 | 04A7B75618BB80E80095A319 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
61 | 04A7B75E18BB80E80095A319 /* NTSlidingViewControllerTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "NTSlidingViewControllerTests-Info.plist"; sourceTree = ""; };
62 | 04A7B76018BB80E80095A319 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; };
63 | 04A7B76218BB80E80095A319 /* NTSlidingViewControllerTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = NTSlidingViewControllerTests.m; sourceTree = ""; };
64 | 04A7B76D18BB81210095A319 /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = README.md; sourceTree = ""; };
65 | 04A7B76F18BB83630095A319 /* NTSlidingViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NTSlidingViewController.h; sourceTree = ""; };
66 | 04A7B77018BB83630095A319 /* NTSlidingViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NTSlidingViewController.m; sourceTree = ""; };
67 | 04A7B77218BB9E730095A319 /* ViewController2.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ViewController2.h; sourceTree = ""; };
68 | 04A7B77318BB9E730095A319 /* ViewController2.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ViewController2.m; sourceTree = ""; };
69 | 04A7B77518BB9E7D0095A319 /* ViewController3.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ViewController3.h; sourceTree = ""; };
70 | 04A7B77618BB9E7D0095A319 /* ViewController3.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ViewController3.m; sourceTree = ""; };
71 | 04A7B77818BBA2020095A319 /* ViewController4.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ViewController4.h; sourceTree = ""; };
72 | 04A7B77918BBA2020095A319 /* ViewController4.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ViewController4.m; sourceTree = ""; };
73 | 04A7B77B18BBA2090095A319 /* ViewController5.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ViewController5.h; sourceTree = ""; };
74 | 04A7B77C18BBA2090095A319 /* ViewController5.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ViewController5.m; sourceTree = ""; };
75 | /* End PBXFileReference section */
76 |
77 | /* Begin PBXFrameworksBuildPhase section */
78 | 04A7B72E18BB80E80095A319 /* Frameworks */ = {
79 | isa = PBXFrameworksBuildPhase;
80 | buildActionMask = 2147483647;
81 | files = (
82 | 04A7B73718BB80E80095A319 /* CoreGraphics.framework in Frameworks */,
83 | 04A7B73918BB80E80095A319 /* UIKit.framework in Frameworks */,
84 | 04A7B73518BB80E80095A319 /* Foundation.framework in Frameworks */,
85 | );
86 | runOnlyForDeploymentPostprocessing = 0;
87 | };
88 | 04A7B75218BB80E80095A319 /* Frameworks */ = {
89 | isa = PBXFrameworksBuildPhase;
90 | buildActionMask = 2147483647;
91 | files = (
92 | 04A7B75718BB80E80095A319 /* XCTest.framework in Frameworks */,
93 | 04A7B75918BB80E80095A319 /* UIKit.framework in Frameworks */,
94 | 04A7B75818BB80E80095A319 /* Foundation.framework in Frameworks */,
95 | );
96 | runOnlyForDeploymentPostprocessing = 0;
97 | };
98 | /* End PBXFrameworksBuildPhase section */
99 |
100 | /* Begin PBXGroup section */
101 | 04A7B72818BB80E80095A319 = {
102 | isa = PBXGroup;
103 | children = (
104 | 04A7B76D18BB81210095A319 /* README.md */,
105 | 04A7B76C18BB81090095A319 /* Classes */,
106 | 04A7B73A18BB80E80095A319 /* NTSlidingViewController */,
107 | 04A7B75C18BB80E80095A319 /* NTSlidingViewControllerTests */,
108 | 04A7B73318BB80E80095A319 /* Frameworks */,
109 | 04A7B73218BB80E80095A319 /* Products */,
110 | );
111 | sourceTree = "";
112 | };
113 | 04A7B73218BB80E80095A319 /* Products */ = {
114 | isa = PBXGroup;
115 | children = (
116 | 04A7B73118BB80E80095A319 /* NTSlidingViewController.app */,
117 | 04A7B75518BB80E80095A319 /* NTSlidingViewControllerTests.xctest */,
118 | );
119 | name = Products;
120 | sourceTree = "";
121 | };
122 | 04A7B73318BB80E80095A319 /* Frameworks */ = {
123 | isa = PBXGroup;
124 | children = (
125 | 04A7B73418BB80E80095A319 /* Foundation.framework */,
126 | 04A7B73618BB80E80095A319 /* CoreGraphics.framework */,
127 | 04A7B73818BB80E80095A319 /* UIKit.framework */,
128 | 04A7B75618BB80E80095A319 /* XCTest.framework */,
129 | );
130 | name = Frameworks;
131 | sourceTree = "";
132 | };
133 | 04A7B73A18BB80E80095A319 /* NTSlidingViewController */ = {
134 | isa = PBXGroup;
135 | children = (
136 | 04A7B74318BB80E80095A319 /* AppDelegate.h */,
137 | 04A7B74418BB80E80095A319 /* AppDelegate.m */,
138 | 04A7B74618BB80E80095A319 /* Main_iPhone.storyboard */,
139 | 04A7B74918BB80E80095A319 /* Main_iPad.storyboard */,
140 | 04A7B74C18BB80E80095A319 /* ViewController.h */,
141 | 04A7B77218BB9E730095A319 /* ViewController2.h */,
142 | 04A7B77318BB9E730095A319 /* ViewController2.m */,
143 | 04A7B77518BB9E7D0095A319 /* ViewController3.h */,
144 | 04A7B77618BB9E7D0095A319 /* ViewController3.m */,
145 | 04A7B74D18BB80E80095A319 /* ViewController.m */,
146 | 04A7B77818BBA2020095A319 /* ViewController4.h */,
147 | 04A7B77918BBA2020095A319 /* ViewController4.m */,
148 | 04A7B77B18BBA2090095A319 /* ViewController5.h */,
149 | 04A7B77C18BBA2090095A319 /* ViewController5.m */,
150 | 04A7B74F18BB80E80095A319 /* Images.xcassets */,
151 | 04A7B73B18BB80E80095A319 /* Supporting Files */,
152 | );
153 | path = NTSlidingViewController;
154 | sourceTree = "";
155 | };
156 | 04A7B73B18BB80E80095A319 /* Supporting Files */ = {
157 | isa = PBXGroup;
158 | children = (
159 | 04A7B73C18BB80E80095A319 /* NTSlidingViewController-Info.plist */,
160 | 04A7B73D18BB80E80095A319 /* InfoPlist.strings */,
161 | 04A7B74018BB80E80095A319 /* main.m */,
162 | 04A7B74218BB80E80095A319 /* NTSlidingViewController-Prefix.pch */,
163 | );
164 | name = "Supporting Files";
165 | sourceTree = "";
166 | };
167 | 04A7B75C18BB80E80095A319 /* NTSlidingViewControllerTests */ = {
168 | isa = PBXGroup;
169 | children = (
170 | 04A7B76218BB80E80095A319 /* NTSlidingViewControllerTests.m */,
171 | 04A7B75D18BB80E80095A319 /* Supporting Files */,
172 | );
173 | path = NTSlidingViewControllerTests;
174 | sourceTree = "";
175 | };
176 | 04A7B75D18BB80E80095A319 /* Supporting Files */ = {
177 | isa = PBXGroup;
178 | children = (
179 | 04A7B75E18BB80E80095A319 /* NTSlidingViewControllerTests-Info.plist */,
180 | 04A7B75F18BB80E80095A319 /* InfoPlist.strings */,
181 | );
182 | name = "Supporting Files";
183 | sourceTree = "";
184 | };
185 | 04A7B76C18BB81090095A319 /* Classes */ = {
186 | isa = PBXGroup;
187 | children = (
188 | 04A7B76F18BB83630095A319 /* NTSlidingViewController.h */,
189 | 04A7B77018BB83630095A319 /* NTSlidingViewController.m */,
190 | );
191 | path = Classes;
192 | sourceTree = "";
193 | };
194 | /* End PBXGroup section */
195 |
196 | /* Begin PBXNativeTarget section */
197 | 04A7B73018BB80E80095A319 /* NTSlidingViewController */ = {
198 | isa = PBXNativeTarget;
199 | buildConfigurationList = 04A7B76618BB80E80095A319 /* Build configuration list for PBXNativeTarget "NTSlidingViewController" */;
200 | buildPhases = (
201 | 04A7B72D18BB80E80095A319 /* Sources */,
202 | 04A7B72E18BB80E80095A319 /* Frameworks */,
203 | 04A7B72F18BB80E80095A319 /* Resources */,
204 | );
205 | buildRules = (
206 | );
207 | dependencies = (
208 | );
209 | name = NTSlidingViewController;
210 | productName = NTSlidingViewController;
211 | productReference = 04A7B73118BB80E80095A319 /* NTSlidingViewController.app */;
212 | productType = "com.apple.product-type.application";
213 | };
214 | 04A7B75418BB80E80095A319 /* NTSlidingViewControllerTests */ = {
215 | isa = PBXNativeTarget;
216 | buildConfigurationList = 04A7B76918BB80E80095A319 /* Build configuration list for PBXNativeTarget "NTSlidingViewControllerTests" */;
217 | buildPhases = (
218 | 04A7B75118BB80E80095A319 /* Sources */,
219 | 04A7B75218BB80E80095A319 /* Frameworks */,
220 | 04A7B75318BB80E80095A319 /* Resources */,
221 | );
222 | buildRules = (
223 | );
224 | dependencies = (
225 | 04A7B75B18BB80E80095A319 /* PBXTargetDependency */,
226 | );
227 | name = NTSlidingViewControllerTests;
228 | productName = NTSlidingViewControllerTests;
229 | productReference = 04A7B75518BB80E80095A319 /* NTSlidingViewControllerTests.xctest */;
230 | productType = "com.apple.product-type.bundle.unit-test";
231 | };
232 | /* End PBXNativeTarget section */
233 |
234 | /* Begin PBXProject section */
235 | 04A7B72918BB80E80095A319 /* Project object */ = {
236 | isa = PBXProject;
237 | attributes = {
238 | LastUpgradeCheck = 0500;
239 | ORGANIZATIONNAME = xiaoran;
240 | TargetAttributes = {
241 | 04A7B75418BB80E80095A319 = {
242 | TestTargetID = 04A7B73018BB80E80095A319;
243 | };
244 | };
245 | };
246 | buildConfigurationList = 04A7B72C18BB80E80095A319 /* Build configuration list for PBXProject "NTSlidingViewController" */;
247 | compatibilityVersion = "Xcode 3.2";
248 | developmentRegion = English;
249 | hasScannedForEncodings = 0;
250 | knownRegions = (
251 | en,
252 | Base,
253 | );
254 | mainGroup = 04A7B72818BB80E80095A319;
255 | productRefGroup = 04A7B73218BB80E80095A319 /* Products */;
256 | projectDirPath = "";
257 | projectRoot = "";
258 | targets = (
259 | 04A7B73018BB80E80095A319 /* NTSlidingViewController */,
260 | 04A7B75418BB80E80095A319 /* NTSlidingViewControllerTests */,
261 | );
262 | };
263 | /* End PBXProject section */
264 |
265 | /* Begin PBXResourcesBuildPhase section */
266 | 04A7B72F18BB80E80095A319 /* Resources */ = {
267 | isa = PBXResourcesBuildPhase;
268 | buildActionMask = 2147483647;
269 | files = (
270 | 04A7B74B18BB80E80095A319 /* Main_iPad.storyboard in Resources */,
271 | 04A7B76E18BB81210095A319 /* README.md in Resources */,
272 | 04A7B75018BB80E80095A319 /* Images.xcassets in Resources */,
273 | 04A7B74818BB80E80095A319 /* Main_iPhone.storyboard in Resources */,
274 | 04A7B73F18BB80E80095A319 /* InfoPlist.strings in Resources */,
275 | );
276 | runOnlyForDeploymentPostprocessing = 0;
277 | };
278 | 04A7B75318BB80E80095A319 /* Resources */ = {
279 | isa = PBXResourcesBuildPhase;
280 | buildActionMask = 2147483647;
281 | files = (
282 | 04A7B76118BB80E80095A319 /* InfoPlist.strings in Resources */,
283 | );
284 | runOnlyForDeploymentPostprocessing = 0;
285 | };
286 | /* End PBXResourcesBuildPhase section */
287 |
288 | /* Begin PBXSourcesBuildPhase section */
289 | 04A7B72D18BB80E80095A319 /* Sources */ = {
290 | isa = PBXSourcesBuildPhase;
291 | buildActionMask = 2147483647;
292 | files = (
293 | 04A7B77D18BBA2090095A319 /* ViewController5.m in Sources */,
294 | 04A7B74E18BB80E80095A319 /* ViewController.m in Sources */,
295 | 04A7B74518BB80E80095A319 /* AppDelegate.m in Sources */,
296 | 04A7B77718BB9E7D0095A319 /* ViewController3.m in Sources */,
297 | 04A7B77418BB9E730095A319 /* ViewController2.m in Sources */,
298 | 04A7B74118BB80E80095A319 /* main.m in Sources */,
299 | 04A7B77A18BBA2020095A319 /* ViewController4.m in Sources */,
300 | 04A7B77118BB83630095A319 /* NTSlidingViewController.m in Sources */,
301 | );
302 | runOnlyForDeploymentPostprocessing = 0;
303 | };
304 | 04A7B75118BB80E80095A319 /* Sources */ = {
305 | isa = PBXSourcesBuildPhase;
306 | buildActionMask = 2147483647;
307 | files = (
308 | 04A7B76318BB80E80095A319 /* NTSlidingViewControllerTests.m in Sources */,
309 | );
310 | runOnlyForDeploymentPostprocessing = 0;
311 | };
312 | /* End PBXSourcesBuildPhase section */
313 |
314 | /* Begin PBXTargetDependency section */
315 | 04A7B75B18BB80E80095A319 /* PBXTargetDependency */ = {
316 | isa = PBXTargetDependency;
317 | target = 04A7B73018BB80E80095A319 /* NTSlidingViewController */;
318 | targetProxy = 04A7B75A18BB80E80095A319 /* PBXContainerItemProxy */;
319 | };
320 | /* End PBXTargetDependency section */
321 |
322 | /* Begin PBXVariantGroup section */
323 | 04A7B73D18BB80E80095A319 /* InfoPlist.strings */ = {
324 | isa = PBXVariantGroup;
325 | children = (
326 | 04A7B73E18BB80E80095A319 /* en */,
327 | );
328 | name = InfoPlist.strings;
329 | sourceTree = "";
330 | };
331 | 04A7B74618BB80E80095A319 /* Main_iPhone.storyboard */ = {
332 | isa = PBXVariantGroup;
333 | children = (
334 | 04A7B74718BB80E80095A319 /* Base */,
335 | );
336 | name = Main_iPhone.storyboard;
337 | sourceTree = "";
338 | };
339 | 04A7B74918BB80E80095A319 /* Main_iPad.storyboard */ = {
340 | isa = PBXVariantGroup;
341 | children = (
342 | 04A7B74A18BB80E80095A319 /* Base */,
343 | );
344 | name = Main_iPad.storyboard;
345 | sourceTree = "";
346 | };
347 | 04A7B75F18BB80E80095A319 /* InfoPlist.strings */ = {
348 | isa = PBXVariantGroup;
349 | children = (
350 | 04A7B76018BB80E80095A319 /* en */,
351 | );
352 | name = InfoPlist.strings;
353 | sourceTree = "";
354 | };
355 | /* End PBXVariantGroup section */
356 |
357 | /* Begin XCBuildConfiguration section */
358 | 04A7B76418BB80E80095A319 /* Debug */ = {
359 | isa = XCBuildConfiguration;
360 | buildSettings = {
361 | ALWAYS_SEARCH_USER_PATHS = NO;
362 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
363 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
364 | CLANG_CXX_LIBRARY = "libc++";
365 | CLANG_ENABLE_MODULES = YES;
366 | CLANG_ENABLE_OBJC_ARC = YES;
367 | CLANG_WARN_BOOL_CONVERSION = YES;
368 | CLANG_WARN_CONSTANT_CONVERSION = YES;
369 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
370 | CLANG_WARN_EMPTY_BODY = YES;
371 | CLANG_WARN_ENUM_CONVERSION = YES;
372 | CLANG_WARN_INT_CONVERSION = YES;
373 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
374 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
375 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
376 | COPY_PHASE_STRIP = NO;
377 | GCC_C_LANGUAGE_STANDARD = gnu99;
378 | GCC_DYNAMIC_NO_PIC = NO;
379 | GCC_OPTIMIZATION_LEVEL = 0;
380 | GCC_PREPROCESSOR_DEFINITIONS = (
381 | "DEBUG=1",
382 | "$(inherited)",
383 | );
384 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
385 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
386 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
387 | GCC_WARN_UNDECLARED_SELECTOR = YES;
388 | GCC_WARN_UNINITIALIZED_AUTOS = YES;
389 | GCC_WARN_UNUSED_FUNCTION = YES;
390 | GCC_WARN_UNUSED_VARIABLE = YES;
391 | IPHONEOS_DEPLOYMENT_TARGET = 7.0;
392 | ONLY_ACTIVE_ARCH = YES;
393 | SDKROOT = iphoneos;
394 | TARGETED_DEVICE_FAMILY = "1,2";
395 | };
396 | name = Debug;
397 | };
398 | 04A7B76518BB80E80095A319 /* Release */ = {
399 | isa = XCBuildConfiguration;
400 | buildSettings = {
401 | ALWAYS_SEARCH_USER_PATHS = NO;
402 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
403 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
404 | CLANG_CXX_LIBRARY = "libc++";
405 | CLANG_ENABLE_MODULES = YES;
406 | CLANG_ENABLE_OBJC_ARC = YES;
407 | CLANG_WARN_BOOL_CONVERSION = YES;
408 | CLANG_WARN_CONSTANT_CONVERSION = YES;
409 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
410 | CLANG_WARN_EMPTY_BODY = YES;
411 | CLANG_WARN_ENUM_CONVERSION = YES;
412 | CLANG_WARN_INT_CONVERSION = YES;
413 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
414 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
415 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
416 | COPY_PHASE_STRIP = YES;
417 | ENABLE_NS_ASSERTIONS = NO;
418 | GCC_C_LANGUAGE_STANDARD = gnu99;
419 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
420 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
421 | GCC_WARN_UNDECLARED_SELECTOR = YES;
422 | GCC_WARN_UNINITIALIZED_AUTOS = YES;
423 | GCC_WARN_UNUSED_FUNCTION = YES;
424 | GCC_WARN_UNUSED_VARIABLE = YES;
425 | IPHONEOS_DEPLOYMENT_TARGET = 7.0;
426 | SDKROOT = iphoneos;
427 | TARGETED_DEVICE_FAMILY = "1,2";
428 | VALIDATE_PRODUCT = YES;
429 | };
430 | name = Release;
431 | };
432 | 04A7B76718BB80E80095A319 /* Debug */ = {
433 | isa = XCBuildConfiguration;
434 | buildSettings = {
435 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
436 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
437 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
438 | GCC_PREFIX_HEADER = "NTSlidingViewController/NTSlidingViewController-Prefix.pch";
439 | INFOPLIST_FILE = "NTSlidingViewController/NTSlidingViewController-Info.plist";
440 | PRODUCT_NAME = "$(TARGET_NAME)";
441 | WRAPPER_EXTENSION = app;
442 | };
443 | name = Debug;
444 | };
445 | 04A7B76818BB80E80095A319 /* Release */ = {
446 | isa = XCBuildConfiguration;
447 | buildSettings = {
448 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
449 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
450 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
451 | GCC_PREFIX_HEADER = "NTSlidingViewController/NTSlidingViewController-Prefix.pch";
452 | INFOPLIST_FILE = "NTSlidingViewController/NTSlidingViewController-Info.plist";
453 | PRODUCT_NAME = "$(TARGET_NAME)";
454 | WRAPPER_EXTENSION = app;
455 | };
456 | name = Release;
457 | };
458 | 04A7B76A18BB80E80095A319 /* Debug */ = {
459 | isa = XCBuildConfiguration;
460 | buildSettings = {
461 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
462 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/NTSlidingViewController.app/NTSlidingViewController";
463 | FRAMEWORK_SEARCH_PATHS = (
464 | "$(SDKROOT)/Developer/Library/Frameworks",
465 | "$(inherited)",
466 | "$(DEVELOPER_FRAMEWORKS_DIR)",
467 | );
468 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
469 | GCC_PREFIX_HEADER = "NTSlidingViewController/NTSlidingViewController-Prefix.pch";
470 | GCC_PREPROCESSOR_DEFINITIONS = (
471 | "DEBUG=1",
472 | "$(inherited)",
473 | );
474 | INFOPLIST_FILE = "NTSlidingViewControllerTests/NTSlidingViewControllerTests-Info.plist";
475 | PRODUCT_NAME = "$(TARGET_NAME)";
476 | TEST_HOST = "$(BUNDLE_LOADER)";
477 | WRAPPER_EXTENSION = xctest;
478 | };
479 | name = Debug;
480 | };
481 | 04A7B76B18BB80E80095A319 /* Release */ = {
482 | isa = XCBuildConfiguration;
483 | buildSettings = {
484 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
485 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/NTSlidingViewController.app/NTSlidingViewController";
486 | FRAMEWORK_SEARCH_PATHS = (
487 | "$(SDKROOT)/Developer/Library/Frameworks",
488 | "$(inherited)",
489 | "$(DEVELOPER_FRAMEWORKS_DIR)",
490 | );
491 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
492 | GCC_PREFIX_HEADER = "NTSlidingViewController/NTSlidingViewController-Prefix.pch";
493 | INFOPLIST_FILE = "NTSlidingViewControllerTests/NTSlidingViewControllerTests-Info.plist";
494 | PRODUCT_NAME = "$(TARGET_NAME)";
495 | TEST_HOST = "$(BUNDLE_LOADER)";
496 | WRAPPER_EXTENSION = xctest;
497 | };
498 | name = Release;
499 | };
500 | /* End XCBuildConfiguration section */
501 |
502 | /* Begin XCConfigurationList section */
503 | 04A7B72C18BB80E80095A319 /* Build configuration list for PBXProject "NTSlidingViewController" */ = {
504 | isa = XCConfigurationList;
505 | buildConfigurations = (
506 | 04A7B76418BB80E80095A319 /* Debug */,
507 | 04A7B76518BB80E80095A319 /* Release */,
508 | );
509 | defaultConfigurationIsVisible = 0;
510 | defaultConfigurationName = Release;
511 | };
512 | 04A7B76618BB80E80095A319 /* Build configuration list for PBXNativeTarget "NTSlidingViewController" */ = {
513 | isa = XCConfigurationList;
514 | buildConfigurations = (
515 | 04A7B76718BB80E80095A319 /* Debug */,
516 | 04A7B76818BB80E80095A319 /* Release */,
517 | );
518 | defaultConfigurationIsVisible = 0;
519 | defaultConfigurationName = Release;
520 | };
521 | 04A7B76918BB80E80095A319 /* Build configuration list for PBXNativeTarget "NTSlidingViewControllerTests" */ = {
522 | isa = XCConfigurationList;
523 | buildConfigurations = (
524 | 04A7B76A18BB80E80095A319 /* Debug */,
525 | 04A7B76B18BB80E80095A319 /* Release */,
526 | );
527 | defaultConfigurationIsVisible = 0;
528 | defaultConfigurationName = Release;
529 | };
530 | /* End XCConfigurationList section */
531 | };
532 | rootObject = 04A7B72918BB80E80095A319 /* Project object */;
533 | }
534 |
--------------------------------------------------------------------------------