├── MovieSource ├── 1.m4v ├── 2.m4v ├── 3.m4v ├── keep.png └── keep@2x.png ├── README.md ├── SIHomePage.xcodeproj ├── project.xcworkspace │ └── contents.xcworkspacedata ├── xcuserdata │ └── bisheng.xcuserdatad │ │ └── xcschemes │ │ ├── xcschememanagement.plist │ │ └── SIHomePage.xcscheme └── project.pbxproj ├── SIHomePage ├── ViewController.h ├── SILoginViewController.h ├── SIRegistViewController.h ├── SIStartViewController.h ├── AppDelegate.h ├── main.m ├── ViewController.m ├── SILoginViewController.m ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── SIRegistViewController.m ├── Info.plist ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── AppDelegate.m └── SIStartViewController.m ├── SIHomePageTests ├── Info.plist └── SIHomePageTests.m └── SIHomePageUITests ├── Info.plist └── SIHomePageUITests.m /MovieSource/1.m4v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinceresk/SIHomePage/HEAD/MovieSource/1.m4v -------------------------------------------------------------------------------- /MovieSource/2.m4v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinceresk/SIHomePage/HEAD/MovieSource/2.m4v -------------------------------------------------------------------------------- /MovieSource/3.m4v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinceresk/SIHomePage/HEAD/MovieSource/3.m4v -------------------------------------------------------------------------------- /MovieSource/keep.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinceresk/SIHomePage/HEAD/MovieSource/keep.png -------------------------------------------------------------------------------- /MovieSource/keep@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinceresk/SIHomePage/HEAD/MovieSource/keep@2x.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SIHomePage 2 |   一个好的引导页会使得用户体验大大提升,利用视频来做,可以更简单的达到优雅的效果。 3 |    使用MediaPlayer.framework框架下的AVPlayerLayer,它和Core Animation紧密地结合在一起,提供了一个CALayer子类来显示自定义的内容类型。 4 | 效果见简书:http://www.jianshu.com/p/c6639efab6bb 5 | 6 | -------------------------------------------------------------------------------- /SIHomePage.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /SIHomePage/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // SIHomePage 4 | // 5 | // Created by sincere on 16/9/8. 6 | // Copyright © 2016年 cofortune. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /SIHomePage/SILoginViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // SILoginViewController.h 3 | // SIHomePage 4 | // 5 | // Created by sincere on 16/9/8. 6 | // Copyright © 2016年 cofortune. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface SILoginViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /SIHomePage/SIRegistViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // SIRegistViewController.h 3 | // SIHomePage 4 | // 5 | // Created by sincere on 16/9/8. 6 | // Copyright © 2016年 cofortune. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface SIRegistViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /SIHomePage/SIStartViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // SIStartViewController.h 3 | // SIHomePage 4 | // 5 | // Created by sincere on 16/9/8. 6 | // Copyright © 2016年 cofortune. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface SIStartViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /SIHomePage/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // SIHomePage 4 | // 5 | // Created by sincere on 16/9/8. 6 | // Copyright © 2016年 cofortune. 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 | -------------------------------------------------------------------------------- /SIHomePage/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // SIHomePage 4 | // 5 | // Created by sincere on 16/9/8. 6 | // Copyright © 2016年 cofortune. 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 | -------------------------------------------------------------------------------- /SIHomePage/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // SIHomePage 4 | // 5 | // Created by sincere on 16/9/8. 6 | // Copyright © 2016年 cofortune. 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 | [super viewDidLoad]; 19 | 20 | } 21 | 22 | - (void)didReceiveMemoryWarning { 23 | [super didReceiveMemoryWarning]; 24 | 25 | } 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /SIHomePage/SILoginViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // SILoginViewController.m 3 | // SIHomePage 4 | // 5 | // Created by sincere on 16/9/8. 6 | // Copyright © 2016年 cofortune. All rights reserved. 7 | // 8 | 9 | #import "SILoginViewController.h" 10 | 11 | @interface SILoginViewController () 12 | 13 | @end 14 | 15 | @implementation SILoginViewController 16 | 17 | - (void)viewDidLoad { 18 | [super viewDidLoad]; 19 | self.navigationController.navigationBarHidden = NO; 20 | 21 | } 22 | 23 | - (void)didReceiveMemoryWarning { 24 | [super didReceiveMemoryWarning]; 25 | 26 | } 27 | 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /SIHomePage/Assets.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 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /SIHomePageTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /SIHomePageUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /SIHomePage.xcodeproj/xcuserdata/bisheng.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | SIHomePage.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 10E8A2E51D814044002BD5D5 16 | 17 | primary 18 | 19 | 20 | 10E8A2FE1D814045002BD5D5 21 | 22 | primary 23 | 24 | 25 | 10E8A3091D814045002BD5D5 26 | 27 | primary 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /SIHomePageTests/SIHomePageTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // SIHomePageTests.m 3 | // SIHomePageTests 4 | // 5 | // Created by sincere on 16/9/8. 6 | // Copyright © 2016年 cofortune. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface SIHomePageTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation SIHomePageTests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | // Put setup code here. This method is called before the invocation of each test method in the class. 20 | } 21 | 22 | - (void)tearDown { 23 | // Put teardown code here. This method is called after the invocation of each test method in the class. 24 | [super tearDown]; 25 | } 26 | 27 | - (void)testExample { 28 | // This is an example of a functional test case. 29 | // Use XCTAssert and related functions to verify your tests produce the correct results. 30 | } 31 | 32 | - (void)testPerformanceExample { 33 | // This is an example of a performance test case. 34 | [self measureBlock:^{ 35 | // Put the code you want to measure the time of here. 36 | }]; 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /SIHomePage/SIRegistViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // SIRegistViewController.m 3 | // SIHomePage 4 | // 5 | // Created by sincere on 16/9/8. 6 | // Copyright © 2016年 cofortune. All rights reserved. 7 | // 8 | 9 | #import "SIRegistViewController.h" 10 | 11 | @interface SIRegistViewController () 12 | 13 | @end 14 | 15 | @implementation SIRegistViewController 16 | 17 | 18 | 19 | 20 | - (void)viewDidLoad { 21 | [super viewDidLoad]; 22 | 23 | self.navigationController.navigationBarHidden = NO; 24 | // Do any additional setup after loading the view. 25 | } 26 | 27 | - (void)didReceiveMemoryWarning { 28 | [super didReceiveMemoryWarning]; 29 | // Dispose of any resources that can be recreated. 30 | } 31 | 32 | /* 33 | #pragma mark - Navigation 34 | 35 | // In a storyboard-based application, you will often want to do a little preparation before navigation 36 | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { 37 | // Get the new view controller using [segue destinationViewController]. 38 | // Pass the selected object to the new view controller. 39 | } 40 | */ 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /SIHomePage/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /SIHomePageUITests/SIHomePageUITests.m: -------------------------------------------------------------------------------- 1 | // 2 | // SIHomePageUITests.m 3 | // SIHomePageUITests 4 | // 5 | // Created by sincere on 16/9/8. 6 | // Copyright © 2016年 cofortune. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface SIHomePageUITests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation SIHomePageUITests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | 22 | // In UI tests it is usually best to stop immediately when a failure occurs. 23 | self.continueAfterFailure = NO; 24 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 25 | [[[XCUIApplication alloc] init] launch]; 26 | 27 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 28 | } 29 | 30 | - (void)tearDown { 31 | // Put teardown code here. This method is called after the invocation of each test method in the class. 32 | [super tearDown]; 33 | } 34 | 35 | - (void)testExample { 36 | // Use recording to get started writing UI tests. 37 | // Use XCTAssert and related functions to verify your tests produce the correct results. 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /SIHomePage/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /SIHomePage/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // SIHomePage 4 | // 5 | // Created by sincere on 16/9/8. 6 | // Copyright © 2016年 cofortune. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 19 | // Override point for customization after application launch. 20 | return YES; 21 | } 22 | 23 | - (void)applicationWillResignActive:(UIApplication *)application { 24 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 25 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 26 | } 27 | 28 | - (void)applicationDidEnterBackground:(UIApplication *)application { 29 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 31 | } 32 | 33 | - (void)applicationWillEnterForeground:(UIApplication *)application { 34 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 35 | } 36 | 37 | - (void)applicationDidBecomeActive:(UIApplication *)application { 38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application { 42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /SIHomePage.xcodeproj/xcuserdata/bisheng.xcuserdatad/xcschemes/SIHomePage.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 43 | 49 | 50 | 51 | 52 | 53 | 59 | 60 | 61 | 62 | 63 | 64 | 74 | 76 | 82 | 83 | 84 | 85 | 86 | 87 | 93 | 95 | 101 | 102 | 103 | 104 | 106 | 107 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /SIHomePage/SIStartViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // SIStartViewController.m 3 | // SIHomePage 4 | // 5 | // Created by sincere on 16/9/8. 6 | // Copyright © 2016年 cofortune. All rights reserved. 7 | // 8 | 9 | #import "SIStartViewController.h" 10 | #import 11 | #import 12 | 13 | #define SCREEN_WIDTH CGRectGetWidth([UIScreen mainScreen].bounds) 14 | #define SCREEN_HEIGHT CGRectGetHeight([UIScreen mainScreen].bounds) 15 | #define RGBCOLOR(r,g,b) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:1] 16 | #define RGBACOLOR(r,g,b,a) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:(a)] 17 | int lastindex = 0; 18 | 19 | @interface SIStartViewController (){ 20 | 21 | AVPlayer *avPlayer1; 22 | AVPlayer *avPlayer2; 23 | AVPlayer *avPlayer3; 24 | AVPlayerLayer *avlayer1; 25 | AVPlayerLayer *avlayer2; 26 | AVPlayerLayer *avlayer3; 27 | UIPageControl *_pagecontrol; 28 | 29 | } 30 | @property (nonatomic,strong) UIScrollView *scroll; 31 | 32 | @end 33 | 34 | @implementation SIStartViewController 35 | @synthesize scroll = _scroll; 36 | 37 | -(void)viewWillAppear:(BOOL)animated{ 38 | 39 | self.navigationController.navigationBarHidden = YES; 40 | 41 | } 42 | 43 | - (void)viewDidLoad { 44 | [super viewDidLoad]; 45 | self.automaticallyAdjustsScrollViewInsets = NO; 46 | _scroll = [[UIScrollView alloc]init]; 47 | _scroll.backgroundColor = [UIColor whiteColor]; 48 | _scroll.delegate = self; 49 | _scroll.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; 50 | _scroll.backgroundColor = [UIColor clearColor]; 51 | _scroll.showsHorizontalScrollIndicator = NO; 52 | _scroll.showsVerticalScrollIndicator = NO; 53 | _scroll.pagingEnabled = YES; 54 | _scroll.frame = CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height); 55 | _scroll.contentSize = CGSizeMake((self.view.frame.size.width)*3, _scroll.frame.size.height); 56 | _scroll.bounces = NO; 57 | [self.view addSubview:_scroll]; 58 | 59 | [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback withOptions:AVAudioSessionCategoryOptionMixWithOthers error:nil]; 60 | NSURL *urlMovie1 = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"1" ofType:@"m4v"]]; 61 | AVURLAsset *asset1 = [AVURLAsset URLAssetWithURL:urlMovie1 options:nil]; 62 | AVPlayerItem *playerItem1 = [AVPlayerItem playerItemWithAsset:asset1]; 63 | avPlayer1 = [AVPlayer playerWithPlayerItem: playerItem1]; 64 | avlayer1 = [AVPlayerLayer playerLayerWithPlayer:avPlayer1]; 65 | avlayer1.frame = (CGRect){0, 0, self.view.frame.size.width, self.view.frame.size.height}; 66 | avlayer1.videoGravity = AVLayerVideoGravityResizeAspectFill; 67 | [_scroll.layer addSublayer:avlayer1]; 68 | 69 | NSURL *urlMovie2 = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"2" ofType:@"m4v"]]; 70 | AVURLAsset *asset2 = [AVURLAsset URLAssetWithURL:urlMovie2 options:nil]; 71 | AVPlayerItem *playerItem2 = [AVPlayerItem playerItemWithAsset:asset2]; 72 | avPlayer2 = [AVPlayer playerWithPlayerItem: playerItem2]; 73 | avlayer2 = [AVPlayerLayer playerLayerWithPlayer:avPlayer2]; 74 | avlayer2.frame = (CGRect){self.view.frame.size.width, 0, self.view.frame.size.width, self.view.frame.size.height}; 75 | //视频充满 76 | avlayer2.videoGravity = AVLayerVideoGravityResizeAspectFill; 77 | [_scroll.layer addSublayer:avlayer2]; 78 | 79 | NSURL *urlMovie3 = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"3" ofType:@"m4v"]]; 80 | AVURLAsset *asset3 = [AVURLAsset URLAssetWithURL:urlMovie3 options:nil]; 81 | AVPlayerItem *playerItem3 = [AVPlayerItem playerItemWithAsset:asset3]; 82 | avPlayer3 = [AVPlayer playerWithPlayerItem: playerItem3]; 83 | avlayer3 = [AVPlayerLayer playerLayerWithPlayer:avPlayer3]; 84 | avlayer3.frame = (CGRect){self.view.frame.size.width*2, 0, self.view.frame.size.width, self.view.frame.size.height}; 85 | avlayer3.videoGravity = AVLayerVideoGravityResizeAspectFill; 86 | [_scroll.layer addSublayer:avlayer3]; 87 | 88 | [avPlayer1 play]; 89 | 90 | _pagecontrol=[[UIPageControl alloc]initWithFrame:CGRectMake(SCREEN_WIDTH/2-100, SCREEN_HEIGHT-100, 200, 30)]; 91 | _pagecontrol.numberOfPages=3; 92 | [self.view addSubview:_pagecontrol]; 93 | 94 | 95 | UIImageView * logoIV = [[UIImageView alloc] initWithImage: [UIImage imageNamed:@"keep"]]; 96 | logoIV.frame = CGRectMake((SCREEN_WIDTH-180)/2,(SCREEN_HEIGHT-100)/2, 180, 50); 97 | [self.view addSubview:logoIV]; 98 | 99 | } 100 | 101 | 102 | - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView{ 103 | 104 | int Offset = _scroll.contentOffset.x/_scroll.frame.size.width; 105 | 106 | if (Offset == lastindex) 107 | { 108 | return; 109 | } 110 | if (Offset == 0) 111 | { 112 | [avPlayer1 seekToTime:kCMTimeZero]; 113 | [avPlayer1 play]; 114 | [avPlayer2 seekToTime:kCMTimeZero]; 115 | [avPlayer2 pause]; 116 | [avPlayer3 seekToTime:kCMTimeZero]; 117 | [avPlayer3 pause]; 118 | _pagecontrol.currentPage = 0; 119 | } 120 | else if (Offset == 1) 121 | { 122 | [avPlayer2 seekToTime:kCMTimeZero]; 123 | [avPlayer2 play]; 124 | [avPlayer1 seekToTime:kCMTimeZero]; 125 | [avPlayer1 pause]; 126 | [avPlayer3 seekToTime:kCMTimeZero]; 127 | [avPlayer3 pause]; 128 | _pagecontrol.currentPage = 1; 129 | } 130 | else if (Offset == 2) 131 | { 132 | [avPlayer3 seekToTime:kCMTimeZero]; 133 | [avPlayer3 play]; 134 | [avPlayer1 seekToTime:kCMTimeZero]; 135 | [avPlayer1 pause]; 136 | [avPlayer2 seekToTime:kCMTimeZero]; 137 | [avPlayer2 pause]; 138 | _pagecontrol.currentPage = 2; 139 | } 140 | lastindex = Offset; 141 | } 142 | 143 | 144 | 145 | 146 | 147 | 148 | - (void)didReceiveMemoryWarning { 149 | [super didReceiveMemoryWarning]; 150 | 151 | } 152 | 153 | 154 | 155 | @end 156 | -------------------------------------------------------------------------------- /SIHomePage/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 48 | 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 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | -------------------------------------------------------------------------------- /SIHomePage.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 10E8A2EB1D814045002BD5D5 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 10E8A2EA1D814045002BD5D5 /* main.m */; }; 11 | 10E8A2EE1D814045002BD5D5 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 10E8A2ED1D814045002BD5D5 /* AppDelegate.m */; }; 12 | 10E8A2F11D814045002BD5D5 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 10E8A2F01D814045002BD5D5 /* ViewController.m */; }; 13 | 10E8A2F41D814045002BD5D5 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 10E8A2F21D814045002BD5D5 /* Main.storyboard */; }; 14 | 10E8A2F61D814045002BD5D5 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 10E8A2F51D814045002BD5D5 /* Assets.xcassets */; }; 15 | 10E8A2F91D814045002BD5D5 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 10E8A2F71D814045002BD5D5 /* LaunchScreen.storyboard */; }; 16 | 10E8A3041D814045002BD5D5 /* SIHomePageTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 10E8A3031D814045002BD5D5 /* SIHomePageTests.m */; }; 17 | 10E8A30F1D814045002BD5D5 /* SIHomePageUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 10E8A30E1D814045002BD5D5 /* SIHomePageUITests.m */; }; 18 | 10E8A3211D8140AE002BD5D5 /* 1.m4v in Resources */ = {isa = PBXBuildFile; fileRef = 10E8A31E1D8140AE002BD5D5 /* 1.m4v */; }; 19 | 10E8A3221D8140AE002BD5D5 /* 2.m4v in Resources */ = {isa = PBXBuildFile; fileRef = 10E8A31F1D8140AE002BD5D5 /* 2.m4v */; }; 20 | 10E8A3231D8140AE002BD5D5 /* 3.m4v in Resources */ = {isa = PBXBuildFile; fileRef = 10E8A3201D8140AE002BD5D5 /* 3.m4v */; }; 21 | 10E8A3261D814133002BD5D5 /* SILoginViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 10E8A3251D814133002BD5D5 /* SILoginViewController.m */; }; 22 | 10E8A3291D814154002BD5D5 /* SIStartViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 10E8A3281D814154002BD5D5 /* SIStartViewController.m */; }; 23 | 10E8A32C1D814169002BD5D5 /* SIRegistViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 10E8A32B1D814169002BD5D5 /* SIRegistViewController.m */; }; 24 | 10E8A32F1D815727002BD5D5 /* keep.png in Resources */ = {isa = PBXBuildFile; fileRef = 10E8A32D1D815727002BD5D5 /* keep.png */; }; 25 | 10E8A3301D815727002BD5D5 /* keep@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 10E8A32E1D815727002BD5D5 /* keep@2x.png */; }; 26 | /* End PBXBuildFile section */ 27 | 28 | /* Begin PBXContainerItemProxy section */ 29 | 10E8A3001D814045002BD5D5 /* PBXContainerItemProxy */ = { 30 | isa = PBXContainerItemProxy; 31 | containerPortal = 10E8A2DE1D814044002BD5D5 /* Project object */; 32 | proxyType = 1; 33 | remoteGlobalIDString = 10E8A2E51D814044002BD5D5; 34 | remoteInfo = SIHomePage; 35 | }; 36 | 10E8A30B1D814045002BD5D5 /* PBXContainerItemProxy */ = { 37 | isa = PBXContainerItemProxy; 38 | containerPortal = 10E8A2DE1D814044002BD5D5 /* Project object */; 39 | proxyType = 1; 40 | remoteGlobalIDString = 10E8A2E51D814044002BD5D5; 41 | remoteInfo = SIHomePage; 42 | }; 43 | /* End PBXContainerItemProxy section */ 44 | 45 | /* Begin PBXFileReference section */ 46 | 10E8A2E61D814044002BD5D5 /* SIHomePage.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SIHomePage.app; sourceTree = BUILT_PRODUCTS_DIR; }; 47 | 10E8A2EA1D814045002BD5D5 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 48 | 10E8A2EC1D814045002BD5D5 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 49 | 10E8A2ED1D814045002BD5D5 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 50 | 10E8A2EF1D814045002BD5D5 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 51 | 10E8A2F01D814045002BD5D5 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 52 | 10E8A2F31D814045002BD5D5 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 53 | 10E8A2F51D814045002BD5D5 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 54 | 10E8A2F81D814045002BD5D5 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 55 | 10E8A2FA1D814045002BD5D5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 56 | 10E8A2FF1D814045002BD5D5 /* SIHomePageTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SIHomePageTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 57 | 10E8A3031D814045002BD5D5 /* SIHomePageTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SIHomePageTests.m; sourceTree = ""; }; 58 | 10E8A3051D814045002BD5D5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 59 | 10E8A30A1D814045002BD5D5 /* SIHomePageUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SIHomePageUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 60 | 10E8A30E1D814045002BD5D5 /* SIHomePageUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SIHomePageUITests.m; sourceTree = ""; }; 61 | 10E8A3101D814045002BD5D5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 62 | 10E8A31E1D8140AE002BD5D5 /* 1.m4v */ = {isa = PBXFileReference; lastKnownFileType = file; path = 1.m4v; sourceTree = ""; }; 63 | 10E8A31F1D8140AE002BD5D5 /* 2.m4v */ = {isa = PBXFileReference; lastKnownFileType = file; path = 2.m4v; sourceTree = ""; }; 64 | 10E8A3201D8140AE002BD5D5 /* 3.m4v */ = {isa = PBXFileReference; lastKnownFileType = file; path = 3.m4v; sourceTree = ""; }; 65 | 10E8A3241D814133002BD5D5 /* SILoginViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SILoginViewController.h; sourceTree = ""; }; 66 | 10E8A3251D814133002BD5D5 /* SILoginViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SILoginViewController.m; sourceTree = ""; }; 67 | 10E8A3271D814154002BD5D5 /* SIStartViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SIStartViewController.h; sourceTree = ""; }; 68 | 10E8A3281D814154002BD5D5 /* SIStartViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SIStartViewController.m; sourceTree = ""; }; 69 | 10E8A32A1D814169002BD5D5 /* SIRegistViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SIRegistViewController.h; sourceTree = ""; }; 70 | 10E8A32B1D814169002BD5D5 /* SIRegistViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SIRegistViewController.m; sourceTree = ""; }; 71 | 10E8A32D1D815727002BD5D5 /* keep.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = keep.png; sourceTree = ""; }; 72 | 10E8A32E1D815727002BD5D5 /* keep@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "keep@2x.png"; sourceTree = ""; }; 73 | /* End PBXFileReference section */ 74 | 75 | /* Begin PBXFrameworksBuildPhase section */ 76 | 10E8A2E31D814044002BD5D5 /* Frameworks */ = { 77 | isa = PBXFrameworksBuildPhase; 78 | buildActionMask = 2147483647; 79 | files = ( 80 | ); 81 | runOnlyForDeploymentPostprocessing = 0; 82 | }; 83 | 10E8A2FC1D814045002BD5D5 /* Frameworks */ = { 84 | isa = PBXFrameworksBuildPhase; 85 | buildActionMask = 2147483647; 86 | files = ( 87 | ); 88 | runOnlyForDeploymentPostprocessing = 0; 89 | }; 90 | 10E8A3071D814045002BD5D5 /* Frameworks */ = { 91 | isa = PBXFrameworksBuildPhase; 92 | buildActionMask = 2147483647; 93 | files = ( 94 | ); 95 | runOnlyForDeploymentPostprocessing = 0; 96 | }; 97 | /* End PBXFrameworksBuildPhase section */ 98 | 99 | /* Begin PBXGroup section */ 100 | 10E8A2DD1D814044002BD5D5 = { 101 | isa = PBXGroup; 102 | children = ( 103 | 10E8A31D1D8140AE002BD5D5 /* MovieSource */, 104 | 10E8A2E81D814045002BD5D5 /* SIHomePage */, 105 | 10E8A3021D814045002BD5D5 /* SIHomePageTests */, 106 | 10E8A30D1D814045002BD5D5 /* SIHomePageUITests */, 107 | 10E8A2E71D814044002BD5D5 /* Products */, 108 | ); 109 | sourceTree = ""; 110 | }; 111 | 10E8A2E71D814044002BD5D5 /* Products */ = { 112 | isa = PBXGroup; 113 | children = ( 114 | 10E8A2E61D814044002BD5D5 /* SIHomePage.app */, 115 | 10E8A2FF1D814045002BD5D5 /* SIHomePageTests.xctest */, 116 | 10E8A30A1D814045002BD5D5 /* SIHomePageUITests.xctest */, 117 | ); 118 | name = Products; 119 | sourceTree = ""; 120 | }; 121 | 10E8A2E81D814045002BD5D5 /* SIHomePage */ = { 122 | isa = PBXGroup; 123 | children = ( 124 | 10E8A2EC1D814045002BD5D5 /* AppDelegate.h */, 125 | 10E8A2ED1D814045002BD5D5 /* AppDelegate.m */, 126 | 10E8A2EF1D814045002BD5D5 /* ViewController.h */, 127 | 10E8A2F01D814045002BD5D5 /* ViewController.m */, 128 | 10E8A3241D814133002BD5D5 /* SILoginViewController.h */, 129 | 10E8A3251D814133002BD5D5 /* SILoginViewController.m */, 130 | 10E8A3271D814154002BD5D5 /* SIStartViewController.h */, 131 | 10E8A3281D814154002BD5D5 /* SIStartViewController.m */, 132 | 10E8A32A1D814169002BD5D5 /* SIRegistViewController.h */, 133 | 10E8A32B1D814169002BD5D5 /* SIRegistViewController.m */, 134 | 10E8A2F21D814045002BD5D5 /* Main.storyboard */, 135 | 10E8A2F51D814045002BD5D5 /* Assets.xcassets */, 136 | 10E8A2F71D814045002BD5D5 /* LaunchScreen.storyboard */, 137 | 10E8A2FA1D814045002BD5D5 /* Info.plist */, 138 | 10E8A2E91D814045002BD5D5 /* Supporting Files */, 139 | ); 140 | path = SIHomePage; 141 | sourceTree = ""; 142 | }; 143 | 10E8A2E91D814045002BD5D5 /* Supporting Files */ = { 144 | isa = PBXGroup; 145 | children = ( 146 | 10E8A2EA1D814045002BD5D5 /* main.m */, 147 | ); 148 | name = "Supporting Files"; 149 | sourceTree = ""; 150 | }; 151 | 10E8A3021D814045002BD5D5 /* SIHomePageTests */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | 10E8A3031D814045002BD5D5 /* SIHomePageTests.m */, 155 | 10E8A3051D814045002BD5D5 /* Info.plist */, 156 | ); 157 | path = SIHomePageTests; 158 | sourceTree = ""; 159 | }; 160 | 10E8A30D1D814045002BD5D5 /* SIHomePageUITests */ = { 161 | isa = PBXGroup; 162 | children = ( 163 | 10E8A30E1D814045002BD5D5 /* SIHomePageUITests.m */, 164 | 10E8A3101D814045002BD5D5 /* Info.plist */, 165 | ); 166 | path = SIHomePageUITests; 167 | sourceTree = ""; 168 | }; 169 | 10E8A31D1D8140AE002BD5D5 /* MovieSource */ = { 170 | isa = PBXGroup; 171 | children = ( 172 | 10E8A32D1D815727002BD5D5 /* keep.png */, 173 | 10E8A32E1D815727002BD5D5 /* keep@2x.png */, 174 | 10E8A31E1D8140AE002BD5D5 /* 1.m4v */, 175 | 10E8A31F1D8140AE002BD5D5 /* 2.m4v */, 176 | 10E8A3201D8140AE002BD5D5 /* 3.m4v */, 177 | ); 178 | path = MovieSource; 179 | sourceTree = ""; 180 | }; 181 | /* End PBXGroup section */ 182 | 183 | /* Begin PBXNativeTarget section */ 184 | 10E8A2E51D814044002BD5D5 /* SIHomePage */ = { 185 | isa = PBXNativeTarget; 186 | buildConfigurationList = 10E8A3131D814045002BD5D5 /* Build configuration list for PBXNativeTarget "SIHomePage" */; 187 | buildPhases = ( 188 | 10E8A2E21D814044002BD5D5 /* Sources */, 189 | 10E8A2E31D814044002BD5D5 /* Frameworks */, 190 | 10E8A2E41D814044002BD5D5 /* Resources */, 191 | ); 192 | buildRules = ( 193 | ); 194 | dependencies = ( 195 | ); 196 | name = SIHomePage; 197 | productName = SIHomePage; 198 | productReference = 10E8A2E61D814044002BD5D5 /* SIHomePage.app */; 199 | productType = "com.apple.product-type.application"; 200 | }; 201 | 10E8A2FE1D814045002BD5D5 /* SIHomePageTests */ = { 202 | isa = PBXNativeTarget; 203 | buildConfigurationList = 10E8A3161D814045002BD5D5 /* Build configuration list for PBXNativeTarget "SIHomePageTests" */; 204 | buildPhases = ( 205 | 10E8A2FB1D814045002BD5D5 /* Sources */, 206 | 10E8A2FC1D814045002BD5D5 /* Frameworks */, 207 | 10E8A2FD1D814045002BD5D5 /* Resources */, 208 | ); 209 | buildRules = ( 210 | ); 211 | dependencies = ( 212 | 10E8A3011D814045002BD5D5 /* PBXTargetDependency */, 213 | ); 214 | name = SIHomePageTests; 215 | productName = SIHomePageTests; 216 | productReference = 10E8A2FF1D814045002BD5D5 /* SIHomePageTests.xctest */; 217 | productType = "com.apple.product-type.bundle.unit-test"; 218 | }; 219 | 10E8A3091D814045002BD5D5 /* SIHomePageUITests */ = { 220 | isa = PBXNativeTarget; 221 | buildConfigurationList = 10E8A3191D814045002BD5D5 /* Build configuration list for PBXNativeTarget "SIHomePageUITests" */; 222 | buildPhases = ( 223 | 10E8A3061D814045002BD5D5 /* Sources */, 224 | 10E8A3071D814045002BD5D5 /* Frameworks */, 225 | 10E8A3081D814045002BD5D5 /* Resources */, 226 | ); 227 | buildRules = ( 228 | ); 229 | dependencies = ( 230 | 10E8A30C1D814045002BD5D5 /* PBXTargetDependency */, 231 | ); 232 | name = SIHomePageUITests; 233 | productName = SIHomePageUITests; 234 | productReference = 10E8A30A1D814045002BD5D5 /* SIHomePageUITests.xctest */; 235 | productType = "com.apple.product-type.bundle.ui-testing"; 236 | }; 237 | /* End PBXNativeTarget section */ 238 | 239 | /* Begin PBXProject section */ 240 | 10E8A2DE1D814044002BD5D5 /* Project object */ = { 241 | isa = PBXProject; 242 | attributes = { 243 | LastUpgradeCheck = 0730; 244 | ORGANIZATIONNAME = cofortune; 245 | TargetAttributes = { 246 | 10E8A2E51D814044002BD5D5 = { 247 | CreatedOnToolsVersion = 7.3.1; 248 | }; 249 | 10E8A2FE1D814045002BD5D5 = { 250 | CreatedOnToolsVersion = 7.3.1; 251 | TestTargetID = 10E8A2E51D814044002BD5D5; 252 | }; 253 | 10E8A3091D814045002BD5D5 = { 254 | CreatedOnToolsVersion = 7.3.1; 255 | TestTargetID = 10E8A2E51D814044002BD5D5; 256 | }; 257 | }; 258 | }; 259 | buildConfigurationList = 10E8A2E11D814044002BD5D5 /* Build configuration list for PBXProject "SIHomePage" */; 260 | compatibilityVersion = "Xcode 3.2"; 261 | developmentRegion = English; 262 | hasScannedForEncodings = 0; 263 | knownRegions = ( 264 | en, 265 | Base, 266 | ); 267 | mainGroup = 10E8A2DD1D814044002BD5D5; 268 | productRefGroup = 10E8A2E71D814044002BD5D5 /* Products */; 269 | projectDirPath = ""; 270 | projectRoot = ""; 271 | targets = ( 272 | 10E8A2E51D814044002BD5D5 /* SIHomePage */, 273 | 10E8A2FE1D814045002BD5D5 /* SIHomePageTests */, 274 | 10E8A3091D814045002BD5D5 /* SIHomePageUITests */, 275 | ); 276 | }; 277 | /* End PBXProject section */ 278 | 279 | /* Begin PBXResourcesBuildPhase section */ 280 | 10E8A2E41D814044002BD5D5 /* Resources */ = { 281 | isa = PBXResourcesBuildPhase; 282 | buildActionMask = 2147483647; 283 | files = ( 284 | 10E8A2F91D814045002BD5D5 /* LaunchScreen.storyboard in Resources */, 285 | 10E8A32F1D815727002BD5D5 /* keep.png in Resources */, 286 | 10E8A2F61D814045002BD5D5 /* Assets.xcassets in Resources */, 287 | 10E8A2F41D814045002BD5D5 /* Main.storyboard in Resources */, 288 | 10E8A3231D8140AE002BD5D5 /* 3.m4v in Resources */, 289 | 10E8A3301D815727002BD5D5 /* keep@2x.png in Resources */, 290 | 10E8A3221D8140AE002BD5D5 /* 2.m4v in Resources */, 291 | 10E8A3211D8140AE002BD5D5 /* 1.m4v in Resources */, 292 | ); 293 | runOnlyForDeploymentPostprocessing = 0; 294 | }; 295 | 10E8A2FD1D814045002BD5D5 /* Resources */ = { 296 | isa = PBXResourcesBuildPhase; 297 | buildActionMask = 2147483647; 298 | files = ( 299 | ); 300 | runOnlyForDeploymentPostprocessing = 0; 301 | }; 302 | 10E8A3081D814045002BD5D5 /* Resources */ = { 303 | isa = PBXResourcesBuildPhase; 304 | buildActionMask = 2147483647; 305 | files = ( 306 | ); 307 | runOnlyForDeploymentPostprocessing = 0; 308 | }; 309 | /* End PBXResourcesBuildPhase section */ 310 | 311 | /* Begin PBXSourcesBuildPhase section */ 312 | 10E8A2E21D814044002BD5D5 /* Sources */ = { 313 | isa = PBXSourcesBuildPhase; 314 | buildActionMask = 2147483647; 315 | files = ( 316 | 10E8A32C1D814169002BD5D5 /* SIRegistViewController.m in Sources */, 317 | 10E8A3291D814154002BD5D5 /* SIStartViewController.m in Sources */, 318 | 10E8A2F11D814045002BD5D5 /* ViewController.m in Sources */, 319 | 10E8A2EE1D814045002BD5D5 /* AppDelegate.m in Sources */, 320 | 10E8A3261D814133002BD5D5 /* SILoginViewController.m in Sources */, 321 | 10E8A2EB1D814045002BD5D5 /* main.m in Sources */, 322 | ); 323 | runOnlyForDeploymentPostprocessing = 0; 324 | }; 325 | 10E8A2FB1D814045002BD5D5 /* Sources */ = { 326 | isa = PBXSourcesBuildPhase; 327 | buildActionMask = 2147483647; 328 | files = ( 329 | 10E8A3041D814045002BD5D5 /* SIHomePageTests.m in Sources */, 330 | ); 331 | runOnlyForDeploymentPostprocessing = 0; 332 | }; 333 | 10E8A3061D814045002BD5D5 /* Sources */ = { 334 | isa = PBXSourcesBuildPhase; 335 | buildActionMask = 2147483647; 336 | files = ( 337 | 10E8A30F1D814045002BD5D5 /* SIHomePageUITests.m in Sources */, 338 | ); 339 | runOnlyForDeploymentPostprocessing = 0; 340 | }; 341 | /* End PBXSourcesBuildPhase section */ 342 | 343 | /* Begin PBXTargetDependency section */ 344 | 10E8A3011D814045002BD5D5 /* PBXTargetDependency */ = { 345 | isa = PBXTargetDependency; 346 | target = 10E8A2E51D814044002BD5D5 /* SIHomePage */; 347 | targetProxy = 10E8A3001D814045002BD5D5 /* PBXContainerItemProxy */; 348 | }; 349 | 10E8A30C1D814045002BD5D5 /* PBXTargetDependency */ = { 350 | isa = PBXTargetDependency; 351 | target = 10E8A2E51D814044002BD5D5 /* SIHomePage */; 352 | targetProxy = 10E8A30B1D814045002BD5D5 /* PBXContainerItemProxy */; 353 | }; 354 | /* End PBXTargetDependency section */ 355 | 356 | /* Begin PBXVariantGroup section */ 357 | 10E8A2F21D814045002BD5D5 /* Main.storyboard */ = { 358 | isa = PBXVariantGroup; 359 | children = ( 360 | 10E8A2F31D814045002BD5D5 /* Base */, 361 | ); 362 | name = Main.storyboard; 363 | sourceTree = ""; 364 | }; 365 | 10E8A2F71D814045002BD5D5 /* LaunchScreen.storyboard */ = { 366 | isa = PBXVariantGroup; 367 | children = ( 368 | 10E8A2F81D814045002BD5D5 /* Base */, 369 | ); 370 | name = LaunchScreen.storyboard; 371 | sourceTree = ""; 372 | }; 373 | /* End PBXVariantGroup section */ 374 | 375 | /* Begin XCBuildConfiguration section */ 376 | 10E8A3111D814045002BD5D5 /* Debug */ = { 377 | isa = XCBuildConfiguration; 378 | buildSettings = { 379 | ALWAYS_SEARCH_USER_PATHS = NO; 380 | CLANG_ANALYZER_NONNULL = YES; 381 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 382 | CLANG_CXX_LIBRARY = "libc++"; 383 | CLANG_ENABLE_MODULES = YES; 384 | CLANG_ENABLE_OBJC_ARC = YES; 385 | CLANG_WARN_BOOL_CONVERSION = YES; 386 | CLANG_WARN_CONSTANT_CONVERSION = YES; 387 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 388 | CLANG_WARN_EMPTY_BODY = YES; 389 | CLANG_WARN_ENUM_CONVERSION = YES; 390 | CLANG_WARN_INT_CONVERSION = YES; 391 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 392 | CLANG_WARN_UNREACHABLE_CODE = YES; 393 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 394 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 395 | COPY_PHASE_STRIP = NO; 396 | DEBUG_INFORMATION_FORMAT = dwarf; 397 | ENABLE_STRICT_OBJC_MSGSEND = YES; 398 | ENABLE_TESTABILITY = YES; 399 | GCC_C_LANGUAGE_STANDARD = gnu99; 400 | GCC_DYNAMIC_NO_PIC = NO; 401 | GCC_NO_COMMON_BLOCKS = YES; 402 | GCC_OPTIMIZATION_LEVEL = 0; 403 | GCC_PREPROCESSOR_DEFINITIONS = ( 404 | "DEBUG=1", 405 | "$(inherited)", 406 | ); 407 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 408 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 409 | GCC_WARN_UNDECLARED_SELECTOR = YES; 410 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 411 | GCC_WARN_UNUSED_FUNCTION = YES; 412 | GCC_WARN_UNUSED_VARIABLE = YES; 413 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 414 | MTL_ENABLE_DEBUG_INFO = YES; 415 | ONLY_ACTIVE_ARCH = YES; 416 | SDKROOT = iphoneos; 417 | }; 418 | name = Debug; 419 | }; 420 | 10E8A3121D814045002BD5D5 /* Release */ = { 421 | isa = XCBuildConfiguration; 422 | buildSettings = { 423 | ALWAYS_SEARCH_USER_PATHS = NO; 424 | CLANG_ANALYZER_NONNULL = YES; 425 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 426 | CLANG_CXX_LIBRARY = "libc++"; 427 | CLANG_ENABLE_MODULES = YES; 428 | CLANG_ENABLE_OBJC_ARC = YES; 429 | CLANG_WARN_BOOL_CONVERSION = YES; 430 | CLANG_WARN_CONSTANT_CONVERSION = YES; 431 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 432 | CLANG_WARN_EMPTY_BODY = YES; 433 | CLANG_WARN_ENUM_CONVERSION = YES; 434 | CLANG_WARN_INT_CONVERSION = YES; 435 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 436 | CLANG_WARN_UNREACHABLE_CODE = YES; 437 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 438 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 439 | COPY_PHASE_STRIP = NO; 440 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 441 | ENABLE_NS_ASSERTIONS = NO; 442 | ENABLE_STRICT_OBJC_MSGSEND = YES; 443 | GCC_C_LANGUAGE_STANDARD = gnu99; 444 | GCC_NO_COMMON_BLOCKS = YES; 445 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 446 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 447 | GCC_WARN_UNDECLARED_SELECTOR = YES; 448 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 449 | GCC_WARN_UNUSED_FUNCTION = YES; 450 | GCC_WARN_UNUSED_VARIABLE = YES; 451 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 452 | MTL_ENABLE_DEBUG_INFO = NO; 453 | SDKROOT = iphoneos; 454 | VALIDATE_PRODUCT = YES; 455 | }; 456 | name = Release; 457 | }; 458 | 10E8A3141D814045002BD5D5 /* Debug */ = { 459 | isa = XCBuildConfiguration; 460 | buildSettings = { 461 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 462 | INFOPLIST_FILE = SIHomePage/Info.plist; 463 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 464 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 465 | PRODUCT_BUNDLE_IDENTIFIER = com.cofortune.www.SIHomePage; 466 | PRODUCT_NAME = "$(TARGET_NAME)"; 467 | }; 468 | name = Debug; 469 | }; 470 | 10E8A3151D814045002BD5D5 /* Release */ = { 471 | isa = XCBuildConfiguration; 472 | buildSettings = { 473 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 474 | INFOPLIST_FILE = SIHomePage/Info.plist; 475 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 476 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 477 | PRODUCT_BUNDLE_IDENTIFIER = com.cofortune.www.SIHomePage; 478 | PRODUCT_NAME = "$(TARGET_NAME)"; 479 | }; 480 | name = Release; 481 | }; 482 | 10E8A3171D814045002BD5D5 /* Debug */ = { 483 | isa = XCBuildConfiguration; 484 | buildSettings = { 485 | BUNDLE_LOADER = "$(TEST_HOST)"; 486 | INFOPLIST_FILE = SIHomePageTests/Info.plist; 487 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 488 | PRODUCT_BUNDLE_IDENTIFIER = com.cofortune.www.SIHomePageTests; 489 | PRODUCT_NAME = "$(TARGET_NAME)"; 490 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SIHomePage.app/SIHomePage"; 491 | }; 492 | name = Debug; 493 | }; 494 | 10E8A3181D814045002BD5D5 /* Release */ = { 495 | isa = XCBuildConfiguration; 496 | buildSettings = { 497 | BUNDLE_LOADER = "$(TEST_HOST)"; 498 | INFOPLIST_FILE = SIHomePageTests/Info.plist; 499 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 500 | PRODUCT_BUNDLE_IDENTIFIER = com.cofortune.www.SIHomePageTests; 501 | PRODUCT_NAME = "$(TARGET_NAME)"; 502 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SIHomePage.app/SIHomePage"; 503 | }; 504 | name = Release; 505 | }; 506 | 10E8A31A1D814045002BD5D5 /* Debug */ = { 507 | isa = XCBuildConfiguration; 508 | buildSettings = { 509 | INFOPLIST_FILE = SIHomePageUITests/Info.plist; 510 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 511 | PRODUCT_BUNDLE_IDENTIFIER = com.cofortune.www.SIHomePageUITests; 512 | PRODUCT_NAME = "$(TARGET_NAME)"; 513 | TEST_TARGET_NAME = SIHomePage; 514 | }; 515 | name = Debug; 516 | }; 517 | 10E8A31B1D814045002BD5D5 /* Release */ = { 518 | isa = XCBuildConfiguration; 519 | buildSettings = { 520 | INFOPLIST_FILE = SIHomePageUITests/Info.plist; 521 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 522 | PRODUCT_BUNDLE_IDENTIFIER = com.cofortune.www.SIHomePageUITests; 523 | PRODUCT_NAME = "$(TARGET_NAME)"; 524 | TEST_TARGET_NAME = SIHomePage; 525 | }; 526 | name = Release; 527 | }; 528 | /* End XCBuildConfiguration section */ 529 | 530 | /* Begin XCConfigurationList section */ 531 | 10E8A2E11D814044002BD5D5 /* Build configuration list for PBXProject "SIHomePage" */ = { 532 | isa = XCConfigurationList; 533 | buildConfigurations = ( 534 | 10E8A3111D814045002BD5D5 /* Debug */, 535 | 10E8A3121D814045002BD5D5 /* Release */, 536 | ); 537 | defaultConfigurationIsVisible = 0; 538 | defaultConfigurationName = Release; 539 | }; 540 | 10E8A3131D814045002BD5D5 /* Build configuration list for PBXNativeTarget "SIHomePage" */ = { 541 | isa = XCConfigurationList; 542 | buildConfigurations = ( 543 | 10E8A3141D814045002BD5D5 /* Debug */, 544 | 10E8A3151D814045002BD5D5 /* Release */, 545 | ); 546 | defaultConfigurationIsVisible = 0; 547 | }; 548 | 10E8A3161D814045002BD5D5 /* Build configuration list for PBXNativeTarget "SIHomePageTests" */ = { 549 | isa = XCConfigurationList; 550 | buildConfigurations = ( 551 | 10E8A3171D814045002BD5D5 /* Debug */, 552 | 10E8A3181D814045002BD5D5 /* Release */, 553 | ); 554 | defaultConfigurationIsVisible = 0; 555 | }; 556 | 10E8A3191D814045002BD5D5 /* Build configuration list for PBXNativeTarget "SIHomePageUITests" */ = { 557 | isa = XCConfigurationList; 558 | buildConfigurations = ( 559 | 10E8A31A1D814045002BD5D5 /* Debug */, 560 | 10E8A31B1D814045002BD5D5 /* Release */, 561 | ); 562 | defaultConfigurationIsVisible = 0; 563 | }; 564 | /* End XCConfigurationList section */ 565 | }; 566 | rootObject = 10E8A2DE1D814044002BD5D5 /* Project object */; 567 | } 568 | --------------------------------------------------------------------------------