├── SCIntroView
├── Images.xcassets
│ ├── Intro_1.imageset
│ │ ├── Intro_1@2x.png
│ │ └── Contents.json
│ ├── Intro_2.imageset
│ │ ├── Intro_2@2x.png
│ │ └── Contents.json
│ ├── Intro_3.imageset
│ │ ├── Intro_3@2x.png
│ │ └── Contents.json
│ ├── guideView_1.imageset
│ │ ├── guideView_1.jpg
│ │ └── Contents.json
│ ├── guideView_2.imageset
│ │ ├── guideView_2.jpg
│ │ └── Contents.json
│ ├── guideView_3.imageset
│ │ ├── guideView_3.jpg
│ │ └── Contents.json
│ ├── introStart.imageset
│ │ ├── introStart@2x.png
│ │ └── Contents.json
│ ├── introBackground.imageset
│ │ ├── introBackground@2x.png
│ │ └── Contents.json
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── ViewController.h
├── AppDelegate.h
├── main.m
├── Info.plist
├── ViewController.m
├── AppDelegate.m
├── Base.lproj
│ └── LaunchScreen.xib
└── SCIntroView
│ ├── SCIntroView.h
│ └── SCIntroView.m
├── .gitignore
├── SCIntroView.xcodeproj
├── project.xcworkspace
│ └── contents.xcworkspacedata
├── xcuserdata
│ └── MLS.xcuserdatad
│ │ └── xcschemes
│ │ ├── xcschememanagement.plist
│ │ └── SCIntroView.xcscheme
└── project.pbxproj
├── SCIntroViewTests
├── Info.plist
└── SCIntroViewTests.m
└── README.md
/SCIntroView/Images.xcassets/Intro_1.imageset/Intro_1@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sichenhz/SCIntroView/HEAD/SCIntroView/Images.xcassets/Intro_1.imageset/Intro_1@2x.png
--------------------------------------------------------------------------------
/SCIntroView/Images.xcassets/Intro_2.imageset/Intro_2@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sichenhz/SCIntroView/HEAD/SCIntroView/Images.xcassets/Intro_2.imageset/Intro_2@2x.png
--------------------------------------------------------------------------------
/SCIntroView/Images.xcassets/Intro_3.imageset/Intro_3@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sichenhz/SCIntroView/HEAD/SCIntroView/Images.xcassets/Intro_3.imageset/Intro_3@2x.png
--------------------------------------------------------------------------------
/SCIntroView/Images.xcassets/guideView_1.imageset/guideView_1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sichenhz/SCIntroView/HEAD/SCIntroView/Images.xcassets/guideView_1.imageset/guideView_1.jpg
--------------------------------------------------------------------------------
/SCIntroView/Images.xcassets/guideView_2.imageset/guideView_2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sichenhz/SCIntroView/HEAD/SCIntroView/Images.xcassets/guideView_2.imageset/guideView_2.jpg
--------------------------------------------------------------------------------
/SCIntroView/Images.xcassets/guideView_3.imageset/guideView_3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sichenhz/SCIntroView/HEAD/SCIntroView/Images.xcassets/guideView_3.imageset/guideView_3.jpg
--------------------------------------------------------------------------------
/SCIntroView/Images.xcassets/introStart.imageset/introStart@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sichenhz/SCIntroView/HEAD/SCIntroView/Images.xcassets/introStart.imageset/introStart@2x.png
--------------------------------------------------------------------------------
/SCIntroView/Images.xcassets/introBackground.imageset/introBackground@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sichenhz/SCIntroView/HEAD/SCIntroView/Images.xcassets/introBackground.imageset/introBackground@2x.png
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | project.xcworkspace
2 | xcuserdata
3 | *.xccheckout
4 | config.plist
5 | *.swp
6 | .DS_Store
7 | Build
8 | SCIntroView.xcodeproj/project.xcworkspace/xcuserdata/MLS.xcuserdatad/UserInterfaceState.xcuserstate
9 |
--------------------------------------------------------------------------------
/SCIntroView.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/SCIntroView/ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.h
3 | // SCIntroView
4 | //
5 | // Created by 2014-763 on 15/4/12.
6 | // Copyright (c) 2015年 meilishuo. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController : UIViewController
12 |
13 | @end
14 |
15 |
--------------------------------------------------------------------------------
/SCIntroView/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // SCIntroView
4 | //
5 | // Created by 2014-763 on 15/4/12.
6 | // Copyright (c) 2015年 meilishuo. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface AppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 |
16 | @end
17 |
18 |
--------------------------------------------------------------------------------
/SCIntroView/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // SCIntroView
4 | //
5 | // Created by 2014-763 on 15/4/12.
6 | // Copyright (c) 2015年 meilishuo. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "AppDelegate.h"
11 |
12 | int main(int argc, char * argv[]) {
13 | @autoreleasepool {
14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/SCIntroView/Images.xcassets/Intro_1.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x",
10 | "filename" : "Intro_1@2x.png"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/SCIntroView/Images.xcassets/Intro_2.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x",
10 | "filename" : "Intro_2@2x.png"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/SCIntroView/Images.xcassets/Intro_3.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x",
10 | "filename" : "Intro_3@2x.png"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/SCIntroView/Images.xcassets/guideView_1.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x",
6 | "filename" : "guideView_1.jpg"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/SCIntroView/Images.xcassets/guideView_2.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x",
6 | "filename" : "guideView_2.jpg"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/SCIntroView/Images.xcassets/guideView_3.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x",
6 | "filename" : "guideView_3.jpg"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/SCIntroView/Images.xcassets/introStart.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x",
10 | "filename" : "IntroStart@2x.png"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/SCIntroView/Images.xcassets/introBackground.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x",
10 | "filename" : "IntroBackground@2x.png"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/SCIntroView.xcodeproj/xcuserdata/MLS.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | SCIntroView.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 256384E81ADA83C90066103F
16 |
17 | primary
18 |
19 |
20 | 256385011ADA83C90066103F
21 |
22 | primary
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/SCIntroViewTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | com.meilishuo.bizfe.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/SCIntroViewTests/SCIntroViewTests.m:
--------------------------------------------------------------------------------
1 | //
2 | // SCIntroViewTests.m
3 | // SCIntroViewTests
4 | //
5 | // Created by 2014-763 on 15/4/12.
6 | // Copyright (c) 2015年 meilishuo. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 | @interface SCIntroViewTests : XCTestCase
13 |
14 | @end
15 |
16 | @implementation SCIntroViewTests
17 |
18 | - (void)setUp {
19 | [super setUp];
20 | // Put setup code here. This method is called before the invocation of each test method in the class.
21 | }
22 |
23 | - (void)tearDown {
24 | // Put teardown code here. This method is called after the invocation of each test method in the class.
25 | [super tearDown];
26 | }
27 |
28 | - (void)testExample {
29 | // This is an example of a functional test case.
30 | XCTAssert(YES, @"Pass");
31 | }
32 |
33 | - (void)testPerformanceExample {
34 | // This is an example of a performance test case.
35 | [self measureBlock:^{
36 | // Put the code you want to measure the time of here.
37 | }];
38 | }
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/SCIntroView/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "ipad",
35 | "size" : "29x29",
36 | "scale" : "1x"
37 | },
38 | {
39 | "idiom" : "ipad",
40 | "size" : "29x29",
41 | "scale" : "2x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "40x40",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "40x40",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "76x76",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "76x76",
61 | "scale" : "2x"
62 | }
63 | ],
64 | "info" : {
65 | "version" : 1,
66 | "author" : "xcode"
67 | }
68 | }
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | 
2 | 
3 |
4 | ####Introduction
5 | 1. 自动存储版本号,自动识别是否有新版本
6 | 2. 自动识别用户是否点击完成按钮,如没有点击过,始终会展示introView
7 | 3. 更多功能请参考demo
8 |
9 | ####导入主头文件
10 | #import "SCIntroView.h"
11 |
12 | ####使用步骤
13 |
14 | 1.调用show方法
15 |
16 | [SCIntroView showIntrolViewFromView:self.view dataSource:self];
17 |
18 | 2.设置数据源
19 |
20 | @required
21 | /**
22 | * 返回每一页需显示的内容图
23 | */
24 | - (NSArray *)contentImagesInIntroView:(SCIntroView *)introView;
25 |
26 |
27 | @optional
28 | /**
29 | * 返回背景图
30 | */
31 | - (UIImage *)backgroundImageInIntroView:(SCIntroView *)introView;
32 | /**
33 | * 返回每一页需显示的标题
34 | */
35 | - (NSArray *)titlesInIntroView:(SCIntroView *)introView;
36 | /**
37 | * 返回每一页需显示的子标题
38 | */
39 | - (NSArray *)descriptionTitlesInIntroView:(SCIntroView *)introView;
40 | /**
41 | * 返回完成按钮
42 | */
43 | - (UIButton *)doneButtonInIntroView:(SCIntroView *)introView;
44 | /**
45 | * 返回pageControl在纵坐标上的位置
46 | */
47 | - (CGFloat)pageControlLocationInIntroView:(SCIntroView *)introView;
48 | /**
49 | * 返回完成按钮在纵坐标上的位置
50 | */
51 | - (CGFloat)doneButtonLocationInIntroView:(SCIntroView *)introView;
52 |
--------------------------------------------------------------------------------
/SCIntroView/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | com.meilishuo.bizfe.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/SCIntroView/ViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.m
3 | // SCIntroView
4 | //
5 | // Created by 2014-763 on 15/4/12.
6 | // Copyright (c) 2015年 meilishuo. All rights reserved.
7 | //
8 |
9 | #import "ViewController.h"
10 | #import "SCIntroView.h"
11 |
12 | @interface ViewController ()
13 |
14 | @end
15 |
16 | @implementation ViewController
17 |
18 | - (void)viewDidLoad {
19 | [super viewDidLoad];
20 |
21 | // 设置根控制器
22 | [self setUpRootVc];
23 |
24 | [SCIntroView showIntrolViewFromView:self.view dataSource:self];
25 | }
26 |
27 | - (void)setUpRootVc {
28 | self.view.backgroundColor = [UIColor whiteColor];
29 | UILabel *label = [[UILabel alloc] init];
30 | label.text = @"rootViewController";
31 | label.font = [UIFont systemFontOfSize:22.0];
32 | [label sizeToFit];
33 | label.center = self.view.center;
34 | [self.view addSubview:label];
35 | }
36 |
37 | #pragma mark -
38 | - (NSArray *)contentImagesInIntroView:(SCIntroView *)introView {
39 | return @[
40 | [UIImage imageNamed:@"Intro_1"],
41 | [UIImage imageNamed:@"Intro_2"],
42 | [UIImage imageNamed:@"Intro_3"]
43 | ];
44 | }
45 |
46 | - (UIImage *)backgroundImageInIntroView:(SCIntroView *)introView {
47 | return [UIImage imageNamed:@"IntroBackground"];
48 | }
49 |
50 | - (NSArray *)titlesInIntroView:(SCIntroView *)introView {
51 | return @[
52 | @"Page First",
53 | @"Page Second",
54 | @"Page Third",
55 | ];
56 | }
57 |
58 | - (NSArray *)descriptionTitlesInIntroView:(SCIntroView *)introView {
59 | return @[
60 | @"Description for First Screen.",
61 | @"Description for Second Screen.",
62 | @"Description for Third Screen.",
63 | ];
64 | }
65 |
66 | - (UIButton *)doneButtonInIntroView:(SCIntroView *)introView {
67 | UIButton *doneButton = [UIButton buttonWithType:UIButtonTypeCustom];
68 | [doneButton setImage:[UIImage imageNamed:@"IntroStart"] forState:UIControlStateNormal];
69 | return doneButton;
70 | }
71 |
72 | @end
73 |
--------------------------------------------------------------------------------
/SCIntroView/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // SCIntroView
4 | //
5 | // Created by 2014-763 on 15/4/12.
6 | // Copyright (c) 2015年 meilishuo. All rights reserved.
7 | //
8 |
9 | #import "AppDelegate.h"
10 | #import "ViewController.h"
11 |
12 | @interface AppDelegate ()
13 |
14 | @end
15 |
16 | @implementation AppDelegate
17 |
18 |
19 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
20 | // Override point for customization after application launch.
21 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
22 | self.window.rootViewController = [[ViewController alloc] init];
23 | [self.window makeKeyAndVisible];
24 | return YES;
25 | }
26 |
27 | - (void)applicationWillResignActive:(UIApplication *)application {
28 | // 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.
29 | // 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.
30 | }
31 |
32 | - (void)applicationDidEnterBackground:(UIApplication *)application {
33 | // 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.
34 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
35 | }
36 |
37 | - (void)applicationWillEnterForeground:(UIApplication *)application {
38 | // 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.
39 | }
40 |
41 | - (void)applicationDidBecomeActive:(UIApplication *)application {
42 | // 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.
43 | }
44 |
45 | - (void)applicationWillTerminate:(UIApplication *)application {
46 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
47 | }
48 |
49 | @end
50 |
--------------------------------------------------------------------------------
/SCIntroView/Base.lproj/LaunchScreen.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
20 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/SCIntroView.xcodeproj/xcuserdata/MLS.xcuserdatad/xcschemes/SCIntroView.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
29 |
35 |
36 |
37 |
38 |
39 |
44 |
45 |
47 |
53 |
54 |
55 |
56 |
57 |
63 |
64 |
65 |
66 |
75 |
77 |
83 |
84 |
85 |
86 |
87 |
88 |
94 |
96 |
102 |
103 |
104 |
105 |
107 |
108 |
111 |
112 |
113 |
--------------------------------------------------------------------------------
/SCIntroView/SCIntroView/SCIntroView.h:
--------------------------------------------------------------------------------
1 | //
2 | // SCIntroView.h
3 | // Intro引导页
4 | //
5 | // Created by Jason on 14/11/22.
6 | // Copyright (c) 2014年 Jason’s Application House. All rights reserved.
7 | //
8 |
9 | #import
10 | @class SCIntroView;
11 |
12 | // 内容图片展示的模式
13 | typedef enum{
14 | SCIntroViewContentImageModeDefault, // 全屏显示图片
15 | SCIntroViewContentImageModeCenter // 居中显示图片(图片最大为屏幕宽*0.8)
16 | } SCIntroViewContentImageMode;
17 |
18 | // 结束Intro的模式
19 | typedef enum{
20 | SCIntroViewDoneModeDefault, // 点击按钮结束Intro
21 | SCIntroViewDoneModePanGesture, // 拖拽结束Intro(默认隐藏完成按钮)
22 | SCIntroViewDoneModePanGestureWithAnimation // 拖拽结束Intro(带渐变动画,默认隐藏完成按钮)
23 | } SCIntroViewDoneMode;
24 |
25 | @protocol SCIntroViewDataSource
26 |
27 | @required
28 | /**
29 | * 返回每一页需显示的内容图
30 | */
31 | - (NSArray *)contentImagesInIntroView:(SCIntroView *)introView;
32 |
33 | @optional
34 | /** 返回背景图 */
35 | - (UIImage *)backgroundImageInIntroView:(SCIntroView *)introView;
36 | /** 返回每一页需显示的标题*/
37 | - (NSArray *)titlesInIntroView:(SCIntroView *)introView;
38 | /** 返回每一页需显示的子标题*/
39 | - (NSArray *)descriptionTitlesInIntroView:(SCIntroView *)introView;
40 | /** 返回完成按钮 */
41 | - (UIButton *)doneButtonInIntroView:(SCIntroView *)introView;
42 |
43 | /** 返回pageControl在纵坐标上的位置(SCIntroViewDoneMode为SCIntroViewDoneModeDefault时默认为0.8,其他默认为0.95) */
44 | - (CGFloat)pageControlLocationInIntroView:(SCIntroView *)introView;
45 | /** 返回完成按钮在纵坐标上的位置 */
46 | - (CGFloat)doneButtonLocationInIntroView:(SCIntroView *)introView;
47 |
48 | @end
49 |
50 | @interface SCIntroView : UIView
51 |
52 | @property (nonatomic, weak) id dataSource;
53 | /** 内容图片展示模式 */
54 | @property (nonatomic, assign) SCIntroViewContentImageMode introViewContentImageMode;
55 | /** 移除Intro的模式 */
56 | @property (nonatomic, assign) SCIntroViewDoneMode introViewDoneMode;
57 | /** 翻页指示器,默认hidden为YES */
58 | @property (nonatomic, strong) UIPageControl *introViewPageControl;
59 |
60 | /**
61 | * 快速展示introView,默认全屏展示图片和点击按钮的方式结束Intro
62 | *
63 | * @param fromView (必须)展示在哪个view之上
64 | * @param dataSource (必须)IntroView的数据源(背景图,背景色,内容图,标题等)
65 | */
66 | + (void)showIntrolViewFromView:(UIView *)fromView dataSource:(id)dataSource;
67 |
68 | /**
69 | * 快速展示introView,默认点击按钮的方式结束Intro,按钮可用数据源方法返回
70 | *
71 | * @param fromView (必须)展示在哪个view之上
72 | * @param dataSource (必须)IntroView的数据源(背景图,背景色,内容图,标题等)
73 | * @param introViewContentImageMode (可选)内容图片的展示形式 (如为空,默认为全屏显示)
74 | */
75 | + (void)showIntrolViewFromView:(UIView *)fromView dataSource:(id)dataSource introViewContentImageMode:(SCIntroViewContentImageMode)introViewContentImageMode;
76 |
77 | /**
78 | * 快速展示introView,默认为全屏展示图片
79 | *
80 | * @param fromView (必须)展示在哪个view之上
81 | * @param dataSource (必须)IntroView的数据源(背景图,背景色,内容图,标题等)
82 | * @param introViewDoneMode (可选)结束IntroView的方式 (默认为点击按钮结束)
83 | */
84 | + (void)showIntrolViewFromView:(UIView *)fromView dataSource:(id)dataSource introViewDoneMode:(SCIntroViewDoneMode)introViewDoneMode;
85 |
86 | /**
87 | * 快速展示introView
88 | *
89 | * @param fromView (必须)展示在哪个view之上
90 | * @param dataSource (必须)IntroView的数据源(背景图,背景色,内容图,标题等)
91 | * @param introViewContentImageMode (可选)内容图片的展示形式 (如为空,默认为全屏显示)
92 | * @param introViewDoneMode (可选)结束IntroView的方式 (默认为点击按钮结束)
93 | */
94 | + (void)showIntrolViewFromView:(UIView *)fromView dataSource:(id)dataSource introViewContentImageMode:(SCIntroViewContentImageMode)introViewContentImageMode introViewDoneMode:(SCIntroViewDoneMode)introViewDoneMode;
95 |
96 | /**
97 | * 初始化一个IntroView,如不指定contentImageMode和doneMode,默认为全屏展示图片和点击按钮的方式结束Intro
98 | *
99 | * @param frame (必须)
100 | * @param dataSource (必须)IntroView的数据源(背景图,背景色,内容图,标题等)
101 | */
102 | - (instancetype)initWithFrame:(CGRect)frame dataSource:(id)dataSource;
103 |
104 | /**
105 | * 初始化一个IntroView,如不指定doneMode,默认为点击按钮的方式结束Intro
106 | *
107 | * @param frame (必须)
108 | * @param contentImageMode (可选)内容图片的展示形式 (如为空,默认为全屏显示)
109 | * @param dataSource (必须)IntroView的数据源(背景图,背景色,内容图,标题等)
110 | */
111 | - (instancetype)initWithFrame:(CGRect)frame introViewContentImageMode:(SCIntroViewContentImageMode)introViewContentImageMode dataSource:(id)dataSource;
112 |
113 | /**
114 | * 初始化一个IntroView,如不指定contentImageMode和doneMode,默认为全屏展示图片
115 | *
116 | * @param frame (必须)
117 | * @param doneMode (可选)结束IntroView的方式 (如为空,默认为点击按钮结束)
118 | * @param dataSource (必须)IntroView的数据源(背景图,背景色,内容图,标题等)
119 | */
120 | - (instancetype)initWithFrame:(CGRect)frame introViewDoneMode:(SCIntroViewDoneMode)introViewDoneMode dataSource:(id)dataSource;
121 |
122 | /**
123 | * 初始化一个IntroView
124 | *
125 | * @param frame (必须)
126 | * @param contentImageMode (可选)内容图片的展示形式 (如为空,默认为全屏显示)
127 | * @param doneMode (可选)结束IntroView的方式 (默认为点击按钮结束)
128 | * @param dataSource (必须)IntroView的数据源(背景图,背景色,内容图,标题等)
129 | */
130 | - (instancetype)initWithFrame:(CGRect)frame introViewContentImageMode:(SCIntroViewContentImageMode)introViewContentImageMode introViewDoneMode:(SCIntroViewDoneMode)introViewDoneMode dataSource:(id)dataSource;
131 |
132 | @end
133 |
134 |
--------------------------------------------------------------------------------
/SCIntroView/SCIntroView/SCIntroView.m:
--------------------------------------------------------------------------------
1 | //
2 | // SCIntroView.m
3 | // Intro引导页
4 | //
5 | // Created by Jason on 14/11/22.
6 | // Copyright (c) 2014年 Jason’s Application House. All rights reserved.
7 | //
8 |
9 | #import "SCIntroView.h"
10 |
11 | #define kApplicationHasShowIntroViewKey @"ApplicationHasShowIntroViewKey"
12 | #define kApplicationVersion @"ApplicationVersion"
13 |
14 | @interface SCIntroView ()
15 |
16 | @property (nonatomic, strong) UIImage *background_Image;
17 | @property (nonatomic, strong) NSArray *contentImages;
18 | @property (nonatomic, strong) NSArray *titles;
19 | @property (nonatomic, strong) NSArray *descriptionTitles;
20 | @property (nonatomic, weak) UIButton *doneButton;
21 | @property (nonatomic, assign) CGFloat pageControlLocation;
22 | @property (nonatomic, assign) CGFloat doneButtonLocation;
23 | @property (nonatomic, strong) UIScrollView *scrollView;
24 | @property (nonatomic, weak) UIView *lastPageView;
25 | @property UIView *holeView;
26 | @property UIView *circleView;
27 |
28 | @end
29 |
30 | @implementation SCIntroView
31 |
32 | - (instancetype)init {
33 | if ([self shouldShowIntroView]) {
34 | if (self = [super init]) {
35 | // 这里还没有设置frame和dataSource,无需setUp
36 | }
37 | return self;
38 | } else {
39 | return nil;
40 | }
41 | }
42 |
43 | - (instancetype)initWithFrame:(CGRect)frame {
44 | if ([self shouldShowIntroView]) {
45 | if (self = [super initWithFrame:frame]) {
46 | // 这里没有设置dataSource,无需setUp
47 | }
48 | return self;
49 | } else {
50 | return nil;
51 | }
52 | }
53 |
54 | - (instancetype)initWithFrame:(CGRect)frame dataSource:(id)dataSource {
55 | if ([self shouldShowIntroView]) {
56 | if (self = [super initWithFrame:frame]) {
57 | _dataSource = dataSource;
58 | [self setUp];
59 | }
60 | return self;
61 | } else {
62 | return nil;
63 | }
64 | }
65 |
66 | - (instancetype)initWithFrame:(CGRect)frame introViewDoneMode:(SCIntroViewDoneMode)introViewDoneMode dataSource:(id)dataSource {
67 | if ([self shouldShowIntroView]) {
68 | if (self = [super initWithFrame:frame]) {
69 | _dataSource = dataSource;
70 | _introViewDoneMode = introViewDoneMode;
71 | [self setUp];
72 | }
73 | return self;
74 | } else {
75 | return nil;
76 | }
77 | }
78 |
79 | - (instancetype)initWithFrame:(CGRect)frame introViewContentImageMode:(SCIntroViewContentImageMode)introViewContentImageMode introViewDoneMode:(SCIntroViewDoneMode)introViewDoneMode dataSource:(id)dataSource {
80 | if ([self shouldShowIntroView]) {
81 | if (self = [super initWithFrame:frame]) {
82 | _dataSource = dataSource;
83 | _introViewContentImageMode = introViewContentImageMode;
84 | _introViewDoneMode = introViewDoneMode;
85 | [self setUp];
86 | }
87 | return self;
88 | } else {
89 | return nil;
90 | }
91 | }
92 |
93 | - (instancetype)initWithFrame:(CGRect)frame introViewContentImageMode:(SCIntroViewContentImageMode)introViewContentImageMode dataSource:(id)dataSource {
94 | if ([self shouldShowIntroView]) {
95 | if (self = [super initWithFrame:frame]) {
96 | _dataSource = dataSource;
97 | _introViewContentImageMode = introViewContentImageMode;
98 | [self setUp];
99 | }
100 | return self;
101 | } else {
102 | return nil;
103 | }
104 | }
105 |
106 | + (void)showIntrolViewFromView:(UIView *)fromView dataSource:(id)dataSource {
107 | CGRect frame = [UIScreen mainScreen].bounds;
108 | SCIntroView *introView = [[self alloc] initWithFrame:frame dataSource:dataSource];
109 | [fromView addSubview:introView];
110 | }
111 |
112 | + (void)showIntrolViewFromView:(UIView *)fromView dataSource:(id)dataSource
113 | introViewContentImageMode:(SCIntroViewContentImageMode)introViewContentImageMode {
114 | CGRect frame = [UIScreen mainScreen].bounds;
115 | SCIntroView *introView = [[self alloc] initWithFrame:frame introViewContentImageMode:introViewContentImageMode dataSource:dataSource];
116 | [fromView addSubview:introView];
117 | }
118 |
119 | + (void)showIntrolViewFromView:(UIView *)fromView dataSource:(id)dataSource introViewDoneMode:(SCIntroViewDoneMode)introViewDoneMode {
120 | CGRect frame = [UIScreen mainScreen].bounds;
121 | SCIntroView *introView = [[self alloc] initWithFrame:frame introViewDoneMode:introViewDoneMode dataSource:dataSource];
122 | [fromView addSubview:introView];
123 | }
124 |
125 | + (void)showIntrolViewFromView:(UIView *)fromView dataSource:(id)dataSource
126 | introViewContentImageMode:(SCIntroViewContentImageMode)introViewContentImageMode introViewDoneMode:(SCIntroViewDoneMode)introViewDoneMode {
127 | CGRect frame = [UIScreen mainScreen].bounds;
128 | SCIntroView *introView = [[self alloc] initWithFrame:frame introViewContentImageMode:introViewContentImageMode introViewDoneMode:introViewDoneMode dataSource:dataSource];
129 | [fromView addSubview:introView];
130 | }
131 |
132 | - (BOOL)shouldShowIntroView {
133 | NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
134 | // 获取当前版本
135 | NSString *curVersion = [NSBundle mainBundle].infoDictionary[@"CFBundleVersion"];
136 | // 获取之前存储版本
137 | NSString *lastVersion = [userDefault objectForKey:kApplicationVersion];
138 | if (![curVersion isEqualToString:lastVersion]) { // 有新版本, 需要显示引导页
139 | [userDefault setBool:NO forKey:kApplicationHasShowIntroViewKey];
140 | [userDefault setObject:[NSBundle mainBundle].infoDictionary[@"CFBundleVersion"] forKey:kApplicationVersion];
141 | }
142 | return ![userDefault boolForKey:kApplicationHasShowIntroViewKey];
143 | }
144 |
145 | - (void)setDataSource:(id)dataSource {
146 | if (_dataSource != dataSource) {
147 | _dataSource = dataSource;
148 | if (!CGRectEqualToRect(self.frame, CGRectZero)) {
149 | [self.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)];
150 | [self setUp];
151 | }
152 | }
153 | }
154 |
155 | - (void)setFrame:(CGRect)frame {
156 | [super setFrame:frame];
157 | if (!CGRectEqualToRect(self.frame, frame)) {
158 | if (self.dataSource) {
159 | [self.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)];
160 | [self setUp];
161 | }
162 | }
163 | }
164 |
165 | - (void)setIntroViewContentImageMode:(SCIntroViewContentImageMode)introViewContentImageMode {
166 | if (_introViewContentImageMode != introViewContentImageMode) {
167 | _introViewContentImageMode = introViewContentImageMode;
168 | if (!CGRectEqualToRect(self.frame, CGRectZero) && self.dataSource) {
169 | [self.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)];
170 | [self setUp];
171 | }
172 | }
173 | }
174 |
175 | - (void)setIntroViewDoneMode:(SCIntroViewDoneMode)introViewDoneMode {
176 | if (_introViewDoneMode != introViewDoneMode) {
177 | _introViewDoneMode = introViewDoneMode;
178 | if (!CGRectEqualToRect(self.frame, CGRectZero) && self.dataSource) {
179 | [self.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)];
180 | [self setUp];
181 | }
182 | }
183 | }
184 |
185 | - (void)setUp {
186 |
187 | // Background Image
188 | if (self.background_Image) {
189 | UIImageView *backgroundImageView = [[UIImageView alloc] initWithFrame:self.frame];
190 | backgroundImageView.image = self.background_Image;
191 | [self addSubview:backgroundImageView];
192 | }
193 |
194 | // scrollView
195 | self.scrollView = [[UIScrollView alloc] initWithFrame:self.frame];
196 | switch (self.introViewDoneMode) {
197 | case SCIntroViewDoneModePanGesture:
198 | case SCIntroViewDoneModePanGestureWithAnimation:
199 | self.scrollView.contentSize = CGSizeMake(self.frame.size.width*(self.contentImages.count+1), self.scrollView.frame.size.height);
200 | break;
201 | default:
202 | self.scrollView.contentSize = CGSizeMake(self.frame.size.width*self.contentImages.count, self.scrollView.frame.size.height);
203 | break;
204 | }
205 | self.scrollView.delegate = self;
206 | self.scrollView.pagingEnabled = YES;
207 | self.scrollView.showsHorizontalScrollIndicator = NO;
208 | [self addSubview:self.scrollView];
209 |
210 | // contentView
211 | [self createContentView];
212 |
213 | // pageControl
214 | if (self.introViewPageControl.hidden == NO) {
215 | self.introViewPageControl = [[UIPageControl alloc] initWithFrame:CGRectMake(0, self.frame.size.height*self.pageControlLocation, self.frame.size.width, 10)];
216 | self.introViewPageControl.currentPageIndicatorTintColor = [UIColor colorWithRed:0.153 green:0.533 blue:0.796 alpha:1.000];
217 | self.introViewPageControl.numberOfPages = self.contentImages.count;
218 | [self addSubview:self.introViewPageControl];
219 | }
220 |
221 | //Done Button
222 | switch (self.introViewDoneMode) {
223 | case SCIntroViewDoneModePanGesture:
224 | case SCIntroViewDoneModePanGestureWithAnimation:
225 | break;
226 | default:
227 | [self addSubview:self.doneButton];
228 | break;
229 | }
230 |
231 | //This is the starting point of the ScrollView
232 | CGPoint scrollPoint = CGPointMake(0, 0);
233 | [self.scrollView setContentOffset:scrollPoint animated:YES];
234 | }
235 |
236 | - (void)createContentView {
237 |
238 | for (int i = 0; i < self.contentImages.count; i++) {
239 | CGFloat originWidth = self.frame.size.width;
240 | CGFloat originHeight = self.frame.size.height;
241 |
242 | UIView *view = [[UIView alloc] initWithFrame:CGRectMake(originWidth*i, 0, originWidth, originHeight)];
243 | if (i == self.contentImages.count - 1) {
244 | self.lastPageView = view;
245 | }
246 | // 内容图
247 | UIImageView *imageview;
248 | switch (self.introViewContentImageMode) {
249 | case SCIntroViewContentImageModeCenter:
250 | imageview = [[UIImageView alloc] initWithFrame:CGRectMake(self.frame.size.width*.1, self.frame.size.height*.1, self.frame.size.width*.8, self.frame.size.width)];
251 | break;
252 | default:
253 | imageview = [[UIImageView alloc] initWithFrame:view.bounds];
254 | break;
255 | }
256 | imageview.contentMode = UIViewContentModeScaleAspectFit;
257 | imageview.image = self.contentImages[i];
258 | [view addSubview:imageview];
259 |
260 | // 标题
261 | if (self.titles) {
262 | UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, self.frame.size.height*.05, self.frame.size.width*.8, 60)];
263 | titleLabel.center = CGPointMake(self.center.x, self.frame.size.height*.1);
264 | titleLabel.text = self.titles.count > i ? self.titles[i] : nil;
265 | titleLabel.font = [UIFont fontWithName:@"HelveticaNeue" size:40.0];
266 | titleLabel.textColor = [UIColor whiteColor];
267 | titleLabel.textAlignment = NSTextAlignmentCenter;
268 | titleLabel.numberOfLines = 0;
269 | [view addSubview:titleLabel];
270 | }
271 |
272 | // 子标题
273 | if (self.descriptionTitles) {
274 | UILabel *descriptionLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width*.1, self.frame.size.height*.7, self.frame.size.width*.8, 60)];
275 | descriptionLabel.text = self.descriptionTitles.count > i ? self.descriptionTitles[i] : nil;
276 | descriptionLabel.font = [UIFont fontWithName:@"HelveticaNeue-Thin" size:18.0];
277 | descriptionLabel.textColor = [UIColor whiteColor];
278 | descriptionLabel.textAlignment = NSTextAlignmentCenter;
279 | descriptionLabel.numberOfLines = 0;
280 | [descriptionLabel sizeToFit];
281 | [view addSubview:descriptionLabel];
282 | CGPoint labelCenter = CGPointMake(self.center.x, self.frame.size.height*.7);
283 | descriptionLabel.center = labelCenter;
284 | }
285 |
286 | [self.scrollView addSubview:view];
287 | }
288 | }
289 |
290 | - (void)onFinishedIntroButtonPressed:(id)sender {
291 | NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
292 | [userDefault setBool:YES forKey:kApplicationHasShowIntroViewKey];
293 | [userDefault synchronize];
294 |
295 | [self removeIntroViewWithAnimation];
296 | }
297 |
298 | - (void)removeIntroViewWithAnimation {
299 | [UIView animateWithDuration:1.0 delay:0 options:UIViewAnimationOptionCurveEaseInOut animations:^{
300 | self.alpha = 0;
301 | } completion:^(BOOL finished) {
302 | [self removeFromSuperview];
303 | }];
304 | }
305 |
306 | - (void)scrollViewDidScroll:(UIScrollView *)scrollView {
307 | CGFloat pageWidth = CGRectGetWidth(self.bounds);
308 | CGFloat pageFraction = self.scrollView.contentOffset.x / pageWidth;
309 | self.introViewPageControl.currentPage = roundf(pageFraction);
310 |
311 | switch (self.introViewDoneMode) {
312 | case SCIntroViewDoneModePanGesture: {
313 | CGFloat pageWidth = CGRectGetWidth(self.bounds);
314 | if ((self.scrollView.contentOffset.x / pageWidth) >= self.contentImages.count) {
315 | [self removeIntroViewWithAnimation];
316 | }
317 | }
318 | break;
319 | case SCIntroViewDoneModePanGestureWithAnimation: {
320 | CGFloat pageWidth = CGRectGetWidth(self.bounds);
321 | if ((self.scrollView.contentOffset.x / pageWidth) >= (self.contentImages.count-1)) {
322 | float alpha = 1-((self.scrollView.contentOffset.x/pageWidth)-(self.contentImages.count-1));
323 | self.lastPageView.alpha = alpha;
324 | }
325 | if ((self.scrollView.contentOffset.x / pageWidth) >= self.contentImages.count) {
326 | [self removeIntroViewWithAnimation];
327 | }
328 | }
329 | break;
330 | default:
331 | break;
332 | }
333 | }
334 |
335 | #pragma mark - 私有方法(获得代理返回的数据源)
336 | - (NSArray *)contentImages {
337 | if ([self.dataSource respondsToSelector:@selector(contentImagesInIntroView:)]) {
338 | return [self.dataSource contentImagesInIntroView:self];
339 | }
340 | return nil;
341 | }
342 |
343 | - (UIImage *)background_Image {
344 | if ([self.dataSource respondsToSelector:@selector(backgroundImageInIntroView:)]) {
345 | return [self.dataSource backgroundImageInIntroView:self];
346 | }
347 | return nil;
348 | }
349 |
350 | - (NSArray *)titles {
351 | if ([self.dataSource respondsToSelector:@selector(titlesInIntroView:)]) {
352 | return [self.dataSource titlesInIntroView:self];
353 | }
354 | return nil;
355 | }
356 |
357 | - (NSArray *)descriptionTitles {
358 | if ([self.dataSource respondsToSelector:@selector(descriptionTitlesInIntroView:)]) {
359 | return [self.dataSource descriptionTitlesInIntroView:self];
360 | }
361 | return nil;
362 | }
363 |
364 | - (CGFloat)pageControlLocation {
365 | if ([self.dataSource respondsToSelector:@selector(pageControlLocationInIntroView:)]) {
366 | return [self.dataSource pageControlLocationInIntroView:self];
367 | }
368 | switch (self.introViewDoneMode) {
369 | case SCIntroViewDoneModePanGesture:
370 | case SCIntroViewDoneModePanGestureWithAnimation:
371 | return 0.95;
372 | break;
373 | default:
374 | return 0.8;
375 | break;
376 | }
377 | }
378 |
379 | - (CGFloat)doneButtonLocation {
380 | if ([self.dataSource respondsToSelector:@selector(doneButtonLocationInIntroView:)]) {
381 | return [self.dataSource doneButtonLocationInIntroView:self];
382 | }
383 | return 0.85;
384 | }
385 |
386 | - (UIButton *)doneButton {
387 | if ([self.dataSource respondsToSelector:@selector(doneButtonInIntroView:)]) {
388 | UIButton *doneButton = [self.dataSource doneButtonInIntroView:self];
389 | if (CGPointEqualToPoint(doneButton.frame.origin, CGPointZero)) {
390 | doneButton.frame = CGRectMake(self.frame.size.width*0.1, self.frame.size.height*self.doneButtonLocation, self.frame.size.width*0.8, 50);
391 | }
392 | [doneButton addTarget:self action:@selector(onFinishedIntroButtonPressed:) forControlEvents:UIControlEventTouchUpInside];
393 | return doneButton;
394 | }
395 | return [self defaultDoneButton];
396 | }
397 |
398 | - (UIButton *)defaultDoneButton {
399 | UIButton *doneButton = [[UIButton alloc] initWithFrame:CGRectMake(self.frame.size.width*0.1, self.frame.size.height*self.doneButtonLocation, self.frame.size.width*0.8, 50)];
400 | [doneButton setTitle:@"Let's Go!" forState:UIControlStateNormal];
401 | [doneButton.titleLabel setFont:[UIFont fontWithName:@"HelveticaNeue-Thin" size:16.0]];
402 | doneButton.backgroundColor = [UIColor colorWithRed:0.941 green:0.471 blue:0.529 alpha:1.000];
403 | doneButton.layer.cornerRadius = 5;
404 | [doneButton addTarget:self action:@selector(onFinishedIntroButtonPressed:) forControlEvents:UIControlEventTouchUpInside];
405 | return doneButton;
406 | }
407 |
408 | @end
409 |
--------------------------------------------------------------------------------
/SCIntroView.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 256384EF1ADA83C90066103F /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 256384EE1ADA83C90066103F /* main.m */; };
11 | 256384F21ADA83C90066103F /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 256384F11ADA83C90066103F /* AppDelegate.m */; };
12 | 256384F51ADA83C90066103F /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 256384F41ADA83C90066103F /* ViewController.m */; };
13 | 256384FA1ADA83C90066103F /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 256384F91ADA83C90066103F /* Images.xcassets */; };
14 | 256384FD1ADA83C90066103F /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 256384FB1ADA83C90066103F /* LaunchScreen.xib */; };
15 | 256385091ADA83C90066103F /* SCIntroViewTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 256385081ADA83C90066103F /* SCIntroViewTests.m */; };
16 | 256385151ADA844E0066103F /* SCIntroView.m in Sources */ = {isa = PBXBuildFile; fileRef = 256385141ADA844E0066103F /* SCIntroView.m */; };
17 | /* End PBXBuildFile section */
18 |
19 | /* Begin PBXContainerItemProxy section */
20 | 256385031ADA83C90066103F /* PBXContainerItemProxy */ = {
21 | isa = PBXContainerItemProxy;
22 | containerPortal = 256384E11ADA83C90066103F /* Project object */;
23 | proxyType = 1;
24 | remoteGlobalIDString = 256384E81ADA83C90066103F;
25 | remoteInfo = SCIntroView;
26 | };
27 | /* End PBXContainerItemProxy section */
28 |
29 | /* Begin PBXFileReference section */
30 | 256384E91ADA83C90066103F /* SCIntroView.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SCIntroView.app; sourceTree = BUILT_PRODUCTS_DIR; };
31 | 256384ED1ADA83C90066103F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
32 | 256384EE1ADA83C90066103F /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
33 | 256384F01ADA83C90066103F /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
34 | 256384F11ADA83C90066103F /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
35 | 256384F31ADA83C90066103F /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; };
36 | 256384F41ADA83C90066103F /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; };
37 | 256384F91ADA83C90066103F /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; };
38 | 256384FC1ADA83C90066103F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; };
39 | 256385021ADA83C90066103F /* SCIntroViewTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SCIntroViewTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
40 | 256385071ADA83C90066103F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
41 | 256385081ADA83C90066103F /* SCIntroViewTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SCIntroViewTests.m; sourceTree = ""; };
42 | 256385131ADA844E0066103F /* SCIntroView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SCIntroView.h; sourceTree = ""; };
43 | 256385141ADA844E0066103F /* SCIntroView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SCIntroView.m; sourceTree = ""; };
44 | /* End PBXFileReference section */
45 |
46 | /* Begin PBXFrameworksBuildPhase section */
47 | 256384E61ADA83C90066103F /* Frameworks */ = {
48 | isa = PBXFrameworksBuildPhase;
49 | buildActionMask = 2147483647;
50 | files = (
51 | );
52 | runOnlyForDeploymentPostprocessing = 0;
53 | };
54 | 256384FF1ADA83C90066103F /* Frameworks */ = {
55 | isa = PBXFrameworksBuildPhase;
56 | buildActionMask = 2147483647;
57 | files = (
58 | );
59 | runOnlyForDeploymentPostprocessing = 0;
60 | };
61 | /* End PBXFrameworksBuildPhase section */
62 |
63 | /* Begin PBXGroup section */
64 | 256384E01ADA83C90066103F = {
65 | isa = PBXGroup;
66 | children = (
67 | 256384EB1ADA83C90066103F /* SCIntroView */,
68 | 256385051ADA83C90066103F /* SCIntroViewTests */,
69 | 256384EA1ADA83C90066103F /* Products */,
70 | );
71 | sourceTree = "";
72 | };
73 | 256384EA1ADA83C90066103F /* Products */ = {
74 | isa = PBXGroup;
75 | children = (
76 | 256384E91ADA83C90066103F /* SCIntroView.app */,
77 | 256385021ADA83C90066103F /* SCIntroViewTests.xctest */,
78 | );
79 | name = Products;
80 | sourceTree = "";
81 | };
82 | 256384EB1ADA83C90066103F /* SCIntroView */ = {
83 | isa = PBXGroup;
84 | children = (
85 | 256385121ADA844E0066103F /* SCIntroView */,
86 | 256384F01ADA83C90066103F /* AppDelegate.h */,
87 | 256384F11ADA83C90066103F /* AppDelegate.m */,
88 | 256384F31ADA83C90066103F /* ViewController.h */,
89 | 256384F41ADA83C90066103F /* ViewController.m */,
90 | 256384F91ADA83C90066103F /* Images.xcassets */,
91 | 256384FB1ADA83C90066103F /* LaunchScreen.xib */,
92 | 256384EC1ADA83C90066103F /* Supporting Files */,
93 | );
94 | path = SCIntroView;
95 | sourceTree = "";
96 | };
97 | 256384EC1ADA83C90066103F /* Supporting Files */ = {
98 | isa = PBXGroup;
99 | children = (
100 | 256384ED1ADA83C90066103F /* Info.plist */,
101 | 256384EE1ADA83C90066103F /* main.m */,
102 | );
103 | name = "Supporting Files";
104 | sourceTree = "";
105 | };
106 | 256385051ADA83C90066103F /* SCIntroViewTests */ = {
107 | isa = PBXGroup;
108 | children = (
109 | 256385081ADA83C90066103F /* SCIntroViewTests.m */,
110 | 256385061ADA83C90066103F /* Supporting Files */,
111 | );
112 | path = SCIntroViewTests;
113 | sourceTree = "";
114 | };
115 | 256385061ADA83C90066103F /* Supporting Files */ = {
116 | isa = PBXGroup;
117 | children = (
118 | 256385071ADA83C90066103F /* Info.plist */,
119 | );
120 | name = "Supporting Files";
121 | sourceTree = "";
122 | };
123 | 256385121ADA844E0066103F /* SCIntroView */ = {
124 | isa = PBXGroup;
125 | children = (
126 | 256385131ADA844E0066103F /* SCIntroView.h */,
127 | 256385141ADA844E0066103F /* SCIntroView.m */,
128 | );
129 | path = SCIntroView;
130 | sourceTree = "";
131 | };
132 | /* End PBXGroup section */
133 |
134 | /* Begin PBXNativeTarget section */
135 | 256384E81ADA83C90066103F /* SCIntroView */ = {
136 | isa = PBXNativeTarget;
137 | buildConfigurationList = 2563850C1ADA83C90066103F /* Build configuration list for PBXNativeTarget "SCIntroView" */;
138 | buildPhases = (
139 | 256384E51ADA83C90066103F /* Sources */,
140 | 256384E61ADA83C90066103F /* Frameworks */,
141 | 256384E71ADA83C90066103F /* Resources */,
142 | );
143 | buildRules = (
144 | );
145 | dependencies = (
146 | );
147 | name = SCIntroView;
148 | productName = SCIntroView;
149 | productReference = 256384E91ADA83C90066103F /* SCIntroView.app */;
150 | productType = "com.apple.product-type.application";
151 | };
152 | 256385011ADA83C90066103F /* SCIntroViewTests */ = {
153 | isa = PBXNativeTarget;
154 | buildConfigurationList = 2563850F1ADA83C90066103F /* Build configuration list for PBXNativeTarget "SCIntroViewTests" */;
155 | buildPhases = (
156 | 256384FE1ADA83C90066103F /* Sources */,
157 | 256384FF1ADA83C90066103F /* Frameworks */,
158 | 256385001ADA83C90066103F /* Resources */,
159 | );
160 | buildRules = (
161 | );
162 | dependencies = (
163 | 256385041ADA83C90066103F /* PBXTargetDependency */,
164 | );
165 | name = SCIntroViewTests;
166 | productName = SCIntroViewTests;
167 | productReference = 256385021ADA83C90066103F /* SCIntroViewTests.xctest */;
168 | productType = "com.apple.product-type.bundle.unit-test";
169 | };
170 | /* End PBXNativeTarget section */
171 |
172 | /* Begin PBXProject section */
173 | 256384E11ADA83C90066103F /* Project object */ = {
174 | isa = PBXProject;
175 | attributes = {
176 | LastUpgradeCheck = 0620;
177 | ORGANIZATIONNAME = meilishuo;
178 | TargetAttributes = {
179 | 256384E81ADA83C90066103F = {
180 | CreatedOnToolsVersion = 6.2;
181 | };
182 | 256385011ADA83C90066103F = {
183 | CreatedOnToolsVersion = 6.2;
184 | TestTargetID = 256384E81ADA83C90066103F;
185 | };
186 | };
187 | };
188 | buildConfigurationList = 256384E41ADA83C90066103F /* Build configuration list for PBXProject "SCIntroView" */;
189 | compatibilityVersion = "Xcode 3.2";
190 | developmentRegion = English;
191 | hasScannedForEncodings = 0;
192 | knownRegions = (
193 | en,
194 | Base,
195 | );
196 | mainGroup = 256384E01ADA83C90066103F;
197 | productRefGroup = 256384EA1ADA83C90066103F /* Products */;
198 | projectDirPath = "";
199 | projectRoot = "";
200 | targets = (
201 | 256384E81ADA83C90066103F /* SCIntroView */,
202 | 256385011ADA83C90066103F /* SCIntroViewTests */,
203 | );
204 | };
205 | /* End PBXProject section */
206 |
207 | /* Begin PBXResourcesBuildPhase section */
208 | 256384E71ADA83C90066103F /* Resources */ = {
209 | isa = PBXResourcesBuildPhase;
210 | buildActionMask = 2147483647;
211 | files = (
212 | 256384FD1ADA83C90066103F /* LaunchScreen.xib in Resources */,
213 | 256384FA1ADA83C90066103F /* Images.xcassets in Resources */,
214 | );
215 | runOnlyForDeploymentPostprocessing = 0;
216 | };
217 | 256385001ADA83C90066103F /* Resources */ = {
218 | isa = PBXResourcesBuildPhase;
219 | buildActionMask = 2147483647;
220 | files = (
221 | );
222 | runOnlyForDeploymentPostprocessing = 0;
223 | };
224 | /* End PBXResourcesBuildPhase section */
225 |
226 | /* Begin PBXSourcesBuildPhase section */
227 | 256384E51ADA83C90066103F /* Sources */ = {
228 | isa = PBXSourcesBuildPhase;
229 | buildActionMask = 2147483647;
230 | files = (
231 | 256384F51ADA83C90066103F /* ViewController.m in Sources */,
232 | 256385151ADA844E0066103F /* SCIntroView.m in Sources */,
233 | 256384F21ADA83C90066103F /* AppDelegate.m in Sources */,
234 | 256384EF1ADA83C90066103F /* main.m in Sources */,
235 | );
236 | runOnlyForDeploymentPostprocessing = 0;
237 | };
238 | 256384FE1ADA83C90066103F /* Sources */ = {
239 | isa = PBXSourcesBuildPhase;
240 | buildActionMask = 2147483647;
241 | files = (
242 | 256385091ADA83C90066103F /* SCIntroViewTests.m in Sources */,
243 | );
244 | runOnlyForDeploymentPostprocessing = 0;
245 | };
246 | /* End PBXSourcesBuildPhase section */
247 |
248 | /* Begin PBXTargetDependency section */
249 | 256385041ADA83C90066103F /* PBXTargetDependency */ = {
250 | isa = PBXTargetDependency;
251 | target = 256384E81ADA83C90066103F /* SCIntroView */;
252 | targetProxy = 256385031ADA83C90066103F /* PBXContainerItemProxy */;
253 | };
254 | /* End PBXTargetDependency section */
255 |
256 | /* Begin PBXVariantGroup section */
257 | 256384FB1ADA83C90066103F /* LaunchScreen.xib */ = {
258 | isa = PBXVariantGroup;
259 | children = (
260 | 256384FC1ADA83C90066103F /* Base */,
261 | );
262 | name = LaunchScreen.xib;
263 | sourceTree = "";
264 | };
265 | /* End PBXVariantGroup section */
266 |
267 | /* Begin XCBuildConfiguration section */
268 | 2563850A1ADA83C90066103F /* Debug */ = {
269 | isa = XCBuildConfiguration;
270 | buildSettings = {
271 | ALWAYS_SEARCH_USER_PATHS = NO;
272 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
273 | CLANG_CXX_LIBRARY = "libc++";
274 | CLANG_ENABLE_MODULES = YES;
275 | CLANG_ENABLE_OBJC_ARC = YES;
276 | CLANG_WARN_BOOL_CONVERSION = YES;
277 | CLANG_WARN_CONSTANT_CONVERSION = YES;
278 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
279 | CLANG_WARN_EMPTY_BODY = YES;
280 | CLANG_WARN_ENUM_CONVERSION = YES;
281 | CLANG_WARN_INT_CONVERSION = YES;
282 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
283 | CLANG_WARN_UNREACHABLE_CODE = YES;
284 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
285 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
286 | COPY_PHASE_STRIP = NO;
287 | ENABLE_STRICT_OBJC_MSGSEND = YES;
288 | GCC_C_LANGUAGE_STANDARD = gnu99;
289 | GCC_DYNAMIC_NO_PIC = NO;
290 | GCC_OPTIMIZATION_LEVEL = 0;
291 | GCC_PREPROCESSOR_DEFINITIONS = (
292 | "DEBUG=1",
293 | "$(inherited)",
294 | );
295 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
296 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
297 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
298 | GCC_WARN_UNDECLARED_SELECTOR = YES;
299 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
300 | GCC_WARN_UNUSED_FUNCTION = YES;
301 | GCC_WARN_UNUSED_VARIABLE = YES;
302 | IPHONEOS_DEPLOYMENT_TARGET = 8.2;
303 | MTL_ENABLE_DEBUG_INFO = YES;
304 | ONLY_ACTIVE_ARCH = YES;
305 | SDKROOT = iphoneos;
306 | TARGETED_DEVICE_FAMILY = "1,2";
307 | };
308 | name = Debug;
309 | };
310 | 2563850B1ADA83C90066103F /* Release */ = {
311 | isa = XCBuildConfiguration;
312 | buildSettings = {
313 | ALWAYS_SEARCH_USER_PATHS = NO;
314 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
315 | CLANG_CXX_LIBRARY = "libc++";
316 | CLANG_ENABLE_MODULES = YES;
317 | CLANG_ENABLE_OBJC_ARC = YES;
318 | CLANG_WARN_BOOL_CONVERSION = YES;
319 | CLANG_WARN_CONSTANT_CONVERSION = YES;
320 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
321 | CLANG_WARN_EMPTY_BODY = YES;
322 | CLANG_WARN_ENUM_CONVERSION = YES;
323 | CLANG_WARN_INT_CONVERSION = YES;
324 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
325 | CLANG_WARN_UNREACHABLE_CODE = YES;
326 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
327 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
328 | COPY_PHASE_STRIP = NO;
329 | ENABLE_NS_ASSERTIONS = NO;
330 | ENABLE_STRICT_OBJC_MSGSEND = YES;
331 | GCC_C_LANGUAGE_STANDARD = gnu99;
332 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
333 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
334 | GCC_WARN_UNDECLARED_SELECTOR = YES;
335 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
336 | GCC_WARN_UNUSED_FUNCTION = YES;
337 | GCC_WARN_UNUSED_VARIABLE = YES;
338 | IPHONEOS_DEPLOYMENT_TARGET = 8.2;
339 | MTL_ENABLE_DEBUG_INFO = NO;
340 | SDKROOT = iphoneos;
341 | TARGETED_DEVICE_FAMILY = "1,2";
342 | VALIDATE_PRODUCT = YES;
343 | };
344 | name = Release;
345 | };
346 | 2563850D1ADA83C90066103F /* Debug */ = {
347 | isa = XCBuildConfiguration;
348 | buildSettings = {
349 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
350 | INFOPLIST_FILE = SCIntroView/Info.plist;
351 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
352 | PRODUCT_NAME = "$(TARGET_NAME)";
353 | };
354 | name = Debug;
355 | };
356 | 2563850E1ADA83C90066103F /* Release */ = {
357 | isa = XCBuildConfiguration;
358 | buildSettings = {
359 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
360 | INFOPLIST_FILE = SCIntroView/Info.plist;
361 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
362 | PRODUCT_NAME = "$(TARGET_NAME)";
363 | };
364 | name = Release;
365 | };
366 | 256385101ADA83C90066103F /* Debug */ = {
367 | isa = XCBuildConfiguration;
368 | buildSettings = {
369 | BUNDLE_LOADER = "$(TEST_HOST)";
370 | FRAMEWORK_SEARCH_PATHS = (
371 | "$(SDKROOT)/Developer/Library/Frameworks",
372 | "$(inherited)",
373 | );
374 | GCC_PREPROCESSOR_DEFINITIONS = (
375 | "DEBUG=1",
376 | "$(inherited)",
377 | );
378 | INFOPLIST_FILE = SCIntroViewTests/Info.plist;
379 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
380 | PRODUCT_NAME = "$(TARGET_NAME)";
381 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SCIntroView.app/SCIntroView";
382 | };
383 | name = Debug;
384 | };
385 | 256385111ADA83C90066103F /* Release */ = {
386 | isa = XCBuildConfiguration;
387 | buildSettings = {
388 | BUNDLE_LOADER = "$(TEST_HOST)";
389 | FRAMEWORK_SEARCH_PATHS = (
390 | "$(SDKROOT)/Developer/Library/Frameworks",
391 | "$(inherited)",
392 | );
393 | INFOPLIST_FILE = SCIntroViewTests/Info.plist;
394 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
395 | PRODUCT_NAME = "$(TARGET_NAME)";
396 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SCIntroView.app/SCIntroView";
397 | };
398 | name = Release;
399 | };
400 | /* End XCBuildConfiguration section */
401 |
402 | /* Begin XCConfigurationList section */
403 | 256384E41ADA83C90066103F /* Build configuration list for PBXProject "SCIntroView" */ = {
404 | isa = XCConfigurationList;
405 | buildConfigurations = (
406 | 2563850A1ADA83C90066103F /* Debug */,
407 | 2563850B1ADA83C90066103F /* Release */,
408 | );
409 | defaultConfigurationIsVisible = 0;
410 | defaultConfigurationName = Release;
411 | };
412 | 2563850C1ADA83C90066103F /* Build configuration list for PBXNativeTarget "SCIntroView" */ = {
413 | isa = XCConfigurationList;
414 | buildConfigurations = (
415 | 2563850D1ADA83C90066103F /* Debug */,
416 | 2563850E1ADA83C90066103F /* Release */,
417 | );
418 | defaultConfigurationIsVisible = 0;
419 | defaultConfigurationName = Release;
420 | };
421 | 2563850F1ADA83C90066103F /* Build configuration list for PBXNativeTarget "SCIntroViewTests" */ = {
422 | isa = XCConfigurationList;
423 | buildConfigurations = (
424 | 256385101ADA83C90066103F /* Debug */,
425 | 256385111ADA83C90066103F /* Release */,
426 | );
427 | defaultConfigurationIsVisible = 0;
428 | defaultConfigurationName = Release;
429 | };
430 | /* End XCConfigurationList section */
431 | };
432 | rootObject = 256384E11ADA83C90066103F /* Project object */;
433 | }
434 |
--------------------------------------------------------------------------------