├── AutoSlideScrollViewDemo ├── en.lproj │ └── InfoPlist.strings ├── Classes │ ├── HomeViewController.h │ ├── HomeViewController.xib │ └── HomeViewController.m ├── AppDelegate.h ├── AutoSlideScrollViewDemo-Prefix.pch ├── main.m ├── Images.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ └── LaunchImage.launchimage │ │ └── Contents.json ├── AutoSlideScrollViewDemo-Info.plist └── AppDelegate.m ├── AutoSlideScrollViewDemoTests ├── en.lproj │ └── InfoPlist.strings ├── AutoSlideScrollViewDemoTests-Info.plist └── AutoSlideScrollViewDemoTests.m ├── .gitignore ├── AutoSlideScrollView ├── Resources │ └── AutoSlideScrollView.bundle │ │ ├── page_state_normal@2x.png │ │ └── page_state_highlight@2x.png ├── NSTimer+Addition.h ├── NSTimer+Addition.m ├── MyPageControl.h ├── AutoSlideScrollView.h ├── MyPageControl.m └── AutoSlideScrollView.m ├── AutoSlideScrollViewDemo.xcodeproj ├── project.xcworkspace │ ├── xcuserdata │ │ └── zhengchen.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── project.pbxproj ├── README.md ├── LICENSE └── AutoSlideScrollView.podspec /AutoSlideScrollViewDemo/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /AutoSlideScrollViewDemoTests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.xcworkspacedata 2 | *.xccheckout 3 | *.xcsettings 4 | *.xcbkptlist 5 | *.xcscheme 6 | xcschememanagement.plist 7 | 8 | 9 | -------------------------------------------------------------------------------- /AutoSlideScrollView/Resources/AutoSlideScrollView.bundle/page_state_normal@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Navimark/PagedScrollView/HEAD/AutoSlideScrollView/Resources/AutoSlideScrollView.bundle/page_state_normal@2x.png -------------------------------------------------------------------------------- /AutoSlideScrollView/Resources/AutoSlideScrollView.bundle/page_state_highlight@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Navimark/PagedScrollView/HEAD/AutoSlideScrollView/Resources/AutoSlideScrollView.bundle/page_state_highlight@2x.png -------------------------------------------------------------------------------- /AutoSlideScrollViewDemo.xcodeproj/project.xcworkspace/xcuserdata/zhengchen.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Navimark/PagedScrollView/HEAD/AutoSlideScrollViewDemo.xcodeproj/project.xcworkspace/xcuserdata/zhengchen.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /AutoSlideScrollViewDemo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /AutoSlideScrollViewDemo/Classes/HomeViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // HomeViewController.h 3 | // AutoSlideScrollViewDemo 4 | // 5 | // Created by Mike Chen on 14-1-23. 6 | // Copyright (c) 2014年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface HomeViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /AutoSlideScrollViewDemo/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // AutoSlideScrollViewDemo 4 | // 5 | // Created by Mike Chen on 14-1-23. 6 | // Copyright (c) 2014年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ###About 2 | This scrollView usually performs as a header ad view, the features shows below, 3 | 4 | - auto silde scrollview 5 | - manual timer control 6 | - module-designed 7 | 8 | ###How to use 9 | - using CocoaPods with ``` pod 'AutoSlideScrollView'``` 10 | - copy the 'AutoSlideScrollView' folder into your project 11 | 12 | ###Additional 13 | It's warm welcome for a bug report or a pull request! 14 | -------------------------------------------------------------------------------- /AutoSlideScrollView/NSTimer+Addition.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSTimer+Addition.h 3 | // AutoSlideScrollViewDemo 4 | // 5 | // Created by Mike Chen on 14-1-24. 6 | // Copyright (c) 2014年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface NSTimer (Addition) 12 | 13 | - (void)pauseTimer; 14 | - (void)resumeTimer; 15 | - (void)resumeTimerAfterTimeInterval:(NSTimeInterval)interval; 16 | @end 17 | -------------------------------------------------------------------------------- /AutoSlideScrollViewDemo/AutoSlideScrollViewDemo-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every source file. 5 | // 6 | 7 | #import 8 | 9 | #ifndef __IPHONE_3_0 10 | #warning "This project uses features only available in iOS SDK 3.0 and later." 11 | #endif 12 | 13 | #ifdef __OBJC__ 14 | #import 15 | #import 16 | #endif 17 | -------------------------------------------------------------------------------- /AutoSlideScrollViewDemo/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // AutoSlideScrollViewDemo 4 | // 5 | // Created by Mike Chen on 14-1-23. 6 | // Copyright (c) 2014年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "AppDelegate.h" 12 | 13 | int main(int argc, char * argv[]) 14 | { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /AutoSlideScrollViewDemoTests/AutoSlideScrollViewDemoTests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | sf-express.com.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /AutoSlideScrollView/NSTimer+Addition.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSTimer+Addition.m 3 | // AutoSlideScrollViewDemo 4 | // 5 | // Created by Mike Chen on 14-1-24. 6 | // Copyright (c) 2014年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import "NSTimer+Addition.h" 10 | 11 | @implementation NSTimer (Addition) 12 | 13 | -(void)pauseTimer 14 | { 15 | if (![self isValid]) { 16 | return ; 17 | } 18 | [self setFireDate:[NSDate distantFuture]]; 19 | } 20 | 21 | 22 | -(void)resumeTimer 23 | { 24 | if (![self isValid]) { 25 | return ; 26 | } 27 | [self setFireDate:[NSDate date]]; 28 | } 29 | 30 | - (void)resumeTimerAfterTimeInterval:(NSTimeInterval)interval 31 | { 32 | if (![self isValid]) { 33 | return ; 34 | } 35 | [self setFireDate:[NSDate dateWithTimeIntervalSinceNow:interval]]; 36 | } 37 | 38 | @end 39 | -------------------------------------------------------------------------------- /AutoSlideScrollViewDemoTests/AutoSlideScrollViewDemoTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // AutoSlideScrollViewDemoTests.m 3 | // AutoSlideScrollViewDemoTests 4 | // 5 | // Created by Mike Chen on 14-1-23. 6 | // Copyright (c) 2014年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AutoSlideScrollViewDemoTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation AutoSlideScrollViewDemoTests 16 | 17 | - (void)setUp 18 | { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown 24 | { 25 | // Put teardown code here. This method is called after the invocation of each test method in the class. 26 | [super tearDown]; 27 | } 28 | 29 | - (void)testExample 30 | { 31 | XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); 32 | } 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /AutoSlideScrollView/MyPageControl.h: -------------------------------------------------------------------------------- 1 | // 2 | // MyPageControl.h 3 | // 4 | // 5 | // Created by Mike Chen on 12-7-26. 6 | // Copyright (c) 2012年 __MyCompanyName__. All rights reserved. 7 | // 8 | /* 9 | *自定义PageContrl控件,实现了setCurrentPage事件和touch事件这两个最基本的功能 10 | *如果要使用touch事件,请使用MyPageControlDelegate代理 11 | */ 12 | #import 13 | 14 | @protocol MyPageControlDelegate 15 | 16 | @optional 17 | 18 | - (void)pageControlDidStopAtIndex:(NSInteger)index; 19 | 20 | @end 21 | 22 | @interface MyPageControl : UIView 23 | 24 | @property (nonatomic , assign)NSInteger pageNumbers; 25 | @property (nonatomic , weak)id delegate; 26 | - (id)initWithFrame:(CGRect)frame 27 | normalImage:(UIImage *)nImage 28 | highlightedImage:(UIImage *)hImage 29 | dotsNumber:(NSInteger)pageNum 30 | sideLength:(NSInteger)size 31 | dotsGap:(NSInteger)gap; 32 | 33 | - (void)setCurrentPage:(NSInteger)pages; 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /AutoSlideScrollView/AutoSlideScrollView.h: -------------------------------------------------------------------------------- 1 | // 2 | // AutoSlideScrollView.h 3 | // AutoSlideScrollViewDemo 4 | // 5 | // Created by Mike Chen on 14-1-23. 6 | // Copyright (c) 2014年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AutoSlideScrollView : UIView 12 | 13 | @property (nonatomic , readonly) UIScrollView *scrollView; 14 | /** 15 | * 初始化 16 | * 17 | * @param frame frame 18 | * @param animationDuration 自动滚动的间隔时长。如果<=0,不自动滚动。 19 | * 20 | * @return instance 21 | */ 22 | - (id)initWithFrame:(CGRect)frame animationDuration:(NSTimeInterval)animationDuration; 23 | 24 | /** 25 | 数据源:获取总的page个数,如果少于2个,不自动滚动 26 | **/ 27 | @property (nonatomic , copy) NSInteger (^totalPagesCount)(void); 28 | 29 | /** 30 | 数据源:获取第pageIndex个位置的contentView 31 | **/ 32 | @property (nonatomic , copy) UIView *(^fetchContentViewAtIndex)(NSInteger pageIndex); 33 | 34 | /** 35 | 当点击的时候,执行的block 36 | **/ 37 | @property (nonatomic , copy) void (^TapActionBlock)(NSInteger pageIndex); 38 | 39 | @end -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | Copyright © 2015 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 5 | 6 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 7 | 8 | THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 9 | -------------------------------------------------------------------------------- /AutoSlideScrollViewDemo/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "40x40", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "60x60", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "60x60", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "ipad", 25 | "size" : "29x29", 26 | "scale" : "1x" 27 | }, 28 | { 29 | "idiom" : "ipad", 30 | "size" : "29x29", 31 | "scale" : "2x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "40x40", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "40x40", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "76x76", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "76x76", 51 | "scale" : "2x" 52 | } 53 | ], 54 | "info" : { 55 | "version" : 1, 56 | "author" : "xcode" 57 | } 58 | } -------------------------------------------------------------------------------- /AutoSlideScrollViewDemo/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "iphone", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "7.0", 8 | "scale" : "2x" 9 | }, 10 | { 11 | "orientation" : "portrait", 12 | "idiom" : "iphone", 13 | "subtype" : "retina4", 14 | "extent" : "full-screen", 15 | "minimum-system-version" : "7.0", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "orientation" : "portrait", 20 | "idiom" : "ipad", 21 | "extent" : "full-screen", 22 | "minimum-system-version" : "7.0", 23 | "scale" : "1x" 24 | }, 25 | { 26 | "orientation" : "landscape", 27 | "idiom" : "ipad", 28 | "extent" : "full-screen", 29 | "minimum-system-version" : "7.0", 30 | "scale" : "1x" 31 | }, 32 | { 33 | "orientation" : "portrait", 34 | "idiom" : "ipad", 35 | "extent" : "full-screen", 36 | "minimum-system-version" : "7.0", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "orientation" : "landscape", 41 | "idiom" : "ipad", 42 | "extent" : "full-screen", 43 | "minimum-system-version" : "7.0", 44 | "scale" : "2x" 45 | } 46 | ], 47 | "info" : { 48 | "version" : 1, 49 | "author" : "xcode" 50 | } 51 | } -------------------------------------------------------------------------------- /AutoSlideScrollViewDemo/Classes/HomeViewController.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /AutoSlideScrollViewDemo/AutoSlideScrollViewDemo-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | sf-express.com.${PRODUCT_NAME:rfc1034identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | 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 | -------------------------------------------------------------------------------- /AutoSlideScrollViewDemo/Classes/HomeViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // HomeViewController.m 3 | // AutoSlideScrollViewDemo 4 | // 5 | // Created by Mike Chen on 14-1-23. 6 | // Copyright (c) 2014年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import "HomeViewController.h" 10 | #import "AutoSlideScrollView.h" 11 | 12 | static const NSInteger kTotalPageCount = 5; 13 | 14 | @interface HomeViewController () 15 | 16 | @property (nonatomic , strong) AutoSlideScrollView *mainScorllView; 17 | 18 | @end 19 | 20 | @implementation HomeViewController 21 | 22 | - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil 23 | { 24 | self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; 25 | if (self) { 26 | // Custom initialization 27 | } 28 | return self; 29 | } 30 | 31 | - (void)viewDidLoad 32 | { 33 | [super viewDidLoad]; 34 | // Do any additional setup after loading the view from its nib. 35 | NSMutableArray *viewsArray = [@[] mutableCopy]; 36 | NSArray *colorArray = @[[UIColor cyanColor],[UIColor blueColor],[UIColor greenColor],[UIColor yellowColor],[UIColor purpleColor]]; 37 | for (int i = 0; i < kTotalPageCount; ++i) { 38 | UILabel *tempLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 320, 300)]; 39 | tempLabel.backgroundColor = [(UIColor *)[colorArray objectAtIndex:i] colorWithAlphaComponent:0.5]; 40 | [viewsArray addObject:tempLabel]; 41 | } 42 | 43 | self.mainScorllView = [[AutoSlideScrollView alloc] initWithFrame:CGRectMake(0, 100, 320, 300) animationDuration:3]; 44 | self.mainScorllView.backgroundColor = [[UIColor purpleColor] colorWithAlphaComponent:0.1]; 45 | 46 | self.mainScorllView.totalPagesCount = ^NSInteger(void){ 47 | return viewsArray.count; 48 | }; 49 | self.mainScorllView.fetchContentViewAtIndex = ^UIView *(NSInteger pageIndex){ 50 | return viewsArray[pageIndex]; 51 | }; 52 | self.mainScorllView.TapActionBlock = ^(NSInteger pageIndex){ 53 | NSLog(@"点击了第%ld个",pageIndex); 54 | }; 55 | [self.view addSubview:self.mainScorllView]; 56 | } 57 | 58 | - (void)didReceiveMemoryWarning 59 | { 60 | [super didReceiveMemoryWarning]; 61 | // Dispose of any resources that can be recreated. 62 | } 63 | 64 | @end 65 | -------------------------------------------------------------------------------- /AutoSlideScrollViewDemo/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // AutoSlideScrollViewDemo 4 | // 5 | // Created by Mike Chen on 14-1-23. 6 | // Copyright (c) 2014年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | #import "HomeViewController.h" 11 | 12 | @implementation AppDelegate 13 | 14 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 15 | { 16 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 17 | // Override point for customization after application launch. 18 | self.window.backgroundColor = [UIColor whiteColor]; 19 | [self.window makeKeyAndVisible]; 20 | 21 | self.window.rootViewController = [[HomeViewController alloc] init]; 22 | 23 | return YES; 24 | } 25 | 26 | - (void)applicationWillResignActive:(UIApplication *)application 27 | { 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 | { 34 | // 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. 35 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 36 | } 37 | 38 | - (void)applicationWillEnterForeground:(UIApplication *)application 39 | { 40 | // 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. 41 | } 42 | 43 | - (void)applicationDidBecomeActive:(UIApplication *)application 44 | { 45 | // 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. 46 | } 47 | 48 | - (void)applicationWillTerminate:(UIApplication *)application 49 | { 50 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 51 | } 52 | 53 | @end 54 | -------------------------------------------------------------------------------- /AutoSlideScrollView/MyPageControl.m: -------------------------------------------------------------------------------- 1 | // 2 | // MyPageControl.m 3 | // 4 | // 5 | // Created by Mike Chen on 12-7-26. 6 | // Copyright (c) 2012年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import "MyPageControl.h" 10 | 11 | @interface MyPageControl () 12 | 13 | @property (nonatomic , strong)UIImage *normalDotImage; 14 | @property (nonatomic , strong)UIImage *highlightedDotImage; 15 | @property (nonatomic , strong)NSMutableArray *dotsArray; 16 | @property (nonatomic , assign)float dotsSize; 17 | @property (nonatomic , assign)NSInteger dotsGap; 18 | @property (nonatomic , retain) UIImageView *highlightedDotImageView; 19 | 20 | - (void)dotsDidTouched:(UIView *)sender; 21 | 22 | @end 23 | 24 | @implementation MyPageControl 25 | 26 | - (id)initWithFrame:(CGRect)frame 27 | normalImage:(UIImage *)nImage 28 | highlightedImage:(UIImage *)hImage 29 | dotsNumber:(NSInteger)pageNum 30 | sideLength:(NSInteger)size 31 | dotsGap:(NSInteger)gap 32 | { 33 | if ((self = [super initWithFrame:frame])) { 34 | self.userInteractionEnabled = YES; 35 | self.dotsGap = gap; 36 | self.dotsSize = size; 37 | self.dotsArray = [NSMutableArray array]; 38 | self.normalDotImage = nImage; 39 | self.highlightedDotImage = hImage; 40 | self.pageNumbers = pageNum; 41 | 42 | UIImageView *dotImageView_h = [[UIImageView alloc] initWithImage:self.highlightedDotImage]; 43 | [dotImageView_h.layer setMasksToBounds:NO]; 44 | dotImageView_h.frame = CGRectMake(0, 0, self.dotsSize, self.dotsSize); 45 | self.highlightedDotImageView = dotImageView_h; 46 | 47 | for (int i = 0; i != self.pageNumbers; ++ i) { 48 | UIImageView *dotsImageView = [[UIImageView alloc] init]; 49 | dotsImageView.userInteractionEnabled = YES; 50 | dotsImageView.frame = CGRectMake((size + gap) * i, 0, size, size); 51 | dotsImageView.tag = 100 + i; 52 | if (i == 0) { 53 | self.highlightedDotImageView.frame = CGRectMake((size + gap) * i, 0, size, size); 54 | } 55 | 56 | dotsImageView.image = self.normalDotImage; 57 | [dotsImageView.layer setMasksToBounds:NO]; 58 | 59 | UITapGestureRecognizer *gestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(dotsDidTouched:)]; 60 | [dotsImageView addGestureRecognizer:gestureRecognizer]; 61 | 62 | [self addSubview:dotsImageView]; 63 | } 64 | [self addSubview:self.highlightedDotImageView]; 65 | } 66 | return self; 67 | } 68 | 69 | - (void)dotsDidTouched:(id)sender 70 | { 71 | if (self.delegate && [self.delegate respondsToSelector:@selector(pageControlDidStopAtIndex:)]) { 72 | [self.delegate pageControlDidStopAtIndex:[[sender view] tag] - 100]; 73 | } 74 | } 75 | 76 | - (void)setCurrentPage:(NSInteger)pages 77 | { 78 | if (self.normalDotImage || self.highlightedDotImage) { 79 | CGRect newRect = CGRectMake((self.dotsSize + self.dotsGap) * pages, 0, self.dotsSize, self.dotsSize); 80 | [UIView animateWithDuration:0.0f delay:0.0 options:UIViewAnimationOptionCurveEaseIn animations:^(void){ 81 | self.highlightedDotImageView.frame = newRect; 82 | } completion:^(BOOL finished){}]; 83 | } 84 | } 85 | 86 | @end 87 | -------------------------------------------------------------------------------- /AutoSlideScrollView.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod spec lint AutoSlideScrollView.podspec' to ensure this is a 3 | # valid spec and to remove all comments including this before submitting the spec. 4 | # 5 | # To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html 6 | # To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/ 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | 11 | # ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 12 | # 13 | # These will help people to find your library, and whilst it 14 | # can feel like a chore to fill in it's definitely to your advantage. The 15 | # summary should be tweet-length, and the description more in depth. 16 | # 17 | 18 | s.name = "AutoSlideScrollView" 19 | s.version = "0.0.11" 20 | s.summary = "A auto slide scrollView." 21 | 22 | s.description = <<-DESC 23 | This scrollView may perform as a ad window. 24 | DESC 25 | 26 | s.homepage = "https://github.com/iOSNerd/PagedScrollView" 27 | # s.screenshots = "www.example.com/screenshots_1.gif", "www.example.com/screenshots_2.gif" 28 | 29 | 30 | # ――― Spec License ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 31 | # 32 | # Licensing your code is important. See http://choosealicense.com for more info. 33 | # CocoaPods will detect a license file if there is a named LICENSE* 34 | # Popular ones are 'MIT', 'BSD' and 'Apache License, Version 2.0'. 35 | # 36 | 37 | s.license = "MIT" 38 | # s.license = { :type => "MIT", :file => "FILE_LICENSE" } 39 | 40 | 41 | # ――― Author Metadata ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 42 | # 43 | # Specify the authors of the library, with email addresses. Email addresses 44 | # of the authors are extracted from the SCM log. E.g. $ git log. CocoaPods also 45 | # accepts just a name if you'd rather not provide an email address. 46 | # 47 | # Specify a social_media_url where others can refer to, for example a twitter 48 | # profile URL. 49 | # 50 | 51 | s.author = { "chen" => "boch2436@gmail.com" } 52 | # Or just: s.author = "chen" 53 | # s.authors = { "chen" => "boch2436@gmail.com" } 54 | # s.social_media_url = "http://twitter.com/chen" 55 | 56 | # ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 57 | # 58 | # If this Pod runs only on iOS or OS X, then specify the platform and 59 | # the deployment target. You can optionally include the target after the platform. 60 | # 61 | 62 | # s.platform = :ios 63 | s.platform = :ios, "5.0" 64 | 65 | # When using multiple platforms 66 | # s.ios.deployment_target = "5.0" 67 | # s.osx.deployment_target = "10.7" 68 | 69 | 70 | # ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 71 | # 72 | # Specify the location from where the source should be retrieved. 73 | # Supports git, hg, bzr, svn and HTTP. 74 | # 75 | 76 | #s.source = { :git => "https://github.com/iOSNerd/PagedScrollView.git"} 77 | 78 | s.source = { :git => "https://github.com/iOSNerd/PagedScrollView.git", :tag => s.version.to_s } 79 | 80 | # ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 81 | # 82 | # CocoaPods is smart about how it includes source code. For source files 83 | # giving a folder will include any h, m, mm, c & cpp files. For header 84 | # files it will include any header in the folder. 85 | # Not including the public_header_files will make all headers public. 86 | # 87 | 88 | s.source_files = "AutoSlideScrollView", "AutoSlideScrollView/**/*.{h,m,bundle}" 89 | s.exclude_files = "Classes/Exclude" 90 | 91 | s.public_header_files = "AutoSlideScrollView/*.h" 92 | 93 | 94 | # ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 95 | # 96 | # A list of resources included with the Pod. These are copied into the 97 | # target bundle with a build phase script. Anything else will be cleaned. 98 | # You can preserve files from being cleaned, please don't preserve 99 | # non-essential files like tests, examples and documentation. 100 | # 101 | 102 | # s.resource = "icon.png" 103 | # s.resources = "Resources/*.png" 104 | 105 | # s.preserve_paths = "FilesToSave", "MoreFilesToSave" 106 | 107 | 108 | # ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 109 | # 110 | # Link your library with frameworks, or libraries. Libraries do not include 111 | # the lib prefix of their name. 112 | # 113 | 114 | # s.framework = "SomeFramework" 115 | s.frameworks = "Foundation", "CoreGraphics", "UIKit" 116 | 117 | # s.library = "iconv" 118 | # s.libraries = "iconv", "xml2" 119 | 120 | 121 | # ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 122 | # 123 | # If your library depends on compiler flags you can set them in the xcconfig hash 124 | # where they will only apply to your library. If you depend on other Podspecs 125 | # you can include multiple dependencies to ensure it works. 126 | 127 | s.requires_arc = true 128 | 129 | # s.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" } 130 | # s.dependency "JSONKit", "~> 1.4" 131 | 132 | end 133 | -------------------------------------------------------------------------------- /AutoSlideScrollView/AutoSlideScrollView.m: -------------------------------------------------------------------------------- 1 | // 2 | // AutoSlideScrollView.m 3 | // AutoSlideScrollViewDemo 4 | // 5 | // Created by Mike Chen on 14-1-23. 6 | // Copyright (c) 2014年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import "AutoSlideScrollView.h" 10 | #import "NSTimer+Addition.h" 11 | #import "MyPageControl.h" 12 | 13 | @interface AutoSlideScrollView () 14 | { 15 | CGFloat scrollViewStartContentOffsetX; 16 | } 17 | @property (nonatomic , assign) NSInteger currentPageIndex; 18 | @property (nonatomic , assign) NSInteger totalPageCount; 19 | @property (nonatomic , strong) NSMutableArray *contentViews; 20 | @property (nonatomic , strong) UIScrollView *scrollView; 21 | 22 | @property (nonatomic , strong) NSTimer *animationTimer; 23 | @property (nonatomic , assign) NSTimeInterval animationDuration; 24 | 25 | @property (nonatomic , strong) MyPageControl *pageControl; 26 | 27 | @end 28 | 29 | @implementation AutoSlideScrollView 30 | 31 | - (MyPageControl *)pageControl 32 | { 33 | //少于或者等于一页的话,没有必要显示pageControl 34 | if (self.totalPageCount > 1) { 35 | if (!_pageControl) { 36 | NSInteger totalPageCounts = self.totalPageCount; 37 | CGFloat dotGapWidth = 8.0; 38 | NSString *normalImageName = [@"AutoSlideScrollView.bundle" stringByAppendingPathComponent:@"page_state_normal.png"]; 39 | NSString *highlightImageName = [@"AutoSlideScrollView.bundle" stringByAppendingPathComponent:@"page_state_highlight.png"]; 40 | UIImage *normalDotImage = [UIImage imageNamed:normalImageName]; 41 | UIImage *highlightDotImage = [UIImage imageNamed:highlightImageName]; 42 | CGFloat pageControlWidth = totalPageCounts * normalDotImage.size.width + (totalPageCounts - 1) * dotGapWidth; 43 | CGRect pageControlFrame = CGRectMake(CGRectGetMidX(self.scrollView.frame) - 0.5 * pageControlWidth , 0.9 * CGRectGetHeight(self.scrollView.frame), pageControlWidth, normalDotImage.size.height); 44 | 45 | _pageControl = [[MyPageControl alloc] initWithFrame:pageControlFrame 46 | normalImage:normalDotImage 47 | highlightedImage:highlightDotImage 48 | dotsNumber:totalPageCounts sideLength:dotGapWidth dotsGap:dotGapWidth]; 49 | _pageControl.hidden = NO; 50 | } 51 | } 52 | return _pageControl; 53 | } 54 | 55 | - (void)setTotalPagesCount:(NSInteger (^)(void))totalPagesCount 56 | { 57 | self.totalPageCount = totalPagesCount(); 58 | if (self.totalPageCount > 0) { 59 | if (self.totalPageCount > 1) { 60 | self.scrollView.scrollEnabled = YES; 61 | self.scrollView.contentOffset = CGPointMake(CGRectGetWidth(self.scrollView.frame), 0); 62 | [self.animationTimer resumeTimerAfterTimeInterval:self.animationDuration]; 63 | } else { 64 | self.scrollView.scrollEnabled = NO; 65 | } 66 | [self configContentViews]; 67 | [self addSubview:self.pageControl]; 68 | } 69 | } 70 | 71 | - (void)setFetchContentViewAtIndex:(UIView *(^)(NSInteger index))fetchContentViewAtIndex 72 | { 73 | _fetchContentViewAtIndex = fetchContentViewAtIndex; 74 | //加入第一页 75 | [self configContentViews]; 76 | } 77 | 78 | - (void)setCurrentPageIndex:(NSInteger)currentPageIndex 79 | { 80 | _currentPageIndex = currentPageIndex; 81 | [self.pageControl setCurrentPage:_currentPageIndex]; 82 | } 83 | 84 | - (id)initWithFrame:(CGRect)frame animationDuration:(NSTimeInterval)animationDuration 85 | { 86 | self = [self initWithFrame:frame]; 87 | if (animationDuration > 0.0) { 88 | self.animationTimer = [NSTimer scheduledTimerWithTimeInterval:(self.animationDuration = animationDuration) 89 | target:self 90 | selector:@selector(animationTimerDidFired:) 91 | userInfo:nil 92 | repeats:YES]; 93 | [self.animationTimer pauseTimer]; 94 | } 95 | return self; 96 | } 97 | 98 | - (id)initWithCoder:(NSCoder *)aDecoder 99 | { 100 | if (self = [super initWithCoder:aDecoder]) { 101 | self.autoresizesSubviews = YES; 102 | self.scrollView = [[UIScrollView alloc] initWithFrame:self.bounds]; 103 | self.scrollView.autoresizingMask = 0xFF; 104 | self.scrollView.contentMode = UIViewContentModeCenter; 105 | self.scrollView.contentSize = CGSizeMake(3 * CGRectGetWidth(self.scrollView.frame), CGRectGetHeight(self.scrollView.frame)); 106 | self.scrollView.delegate = self; 107 | self.scrollView.pagingEnabled = YES; 108 | [self addSubview:self.scrollView]; 109 | self.scrollView.showsHorizontalScrollIndicator = NO; 110 | self.currentPageIndex = 0; 111 | self.animationTimer = [NSTimer scheduledTimerWithTimeInterval:(self.animationDuration = 3) 112 | target:self 113 | selector:@selector(animationTimerDidFired:) 114 | userInfo:nil 115 | repeats:YES]; 116 | [self.animationTimer pauseTimer]; 117 | } 118 | return self; 119 | } 120 | 121 | - (id)initWithFrame:(CGRect)frame 122 | { 123 | self = [super initWithFrame:frame]; 124 | if (self) { 125 | // Initialization code 126 | self.autoresizesSubviews = YES; 127 | self.scrollView = [[UIScrollView alloc] initWithFrame:self.bounds]; 128 | self.scrollView.autoresizingMask = 0xFF; 129 | self.scrollView.contentMode = UIViewContentModeCenter; 130 | self.scrollView.contentSize = CGSizeMake(3 * CGRectGetWidth(self.scrollView.frame), CGRectGetHeight(self.scrollView.frame)); 131 | self.scrollView.delegate = self; 132 | self.scrollView.pagingEnabled = YES; 133 | [self addSubview:self.scrollView]; 134 | self.currentPageIndex = 0; 135 | } 136 | return self; 137 | } 138 | 139 | #pragma mark - 140 | #pragma mark - 私有函数 141 | 142 | - (void)configContentViews 143 | { 144 | [self.scrollView.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)]; 145 | [self setScrollViewContentDataSource]; 146 | 147 | NSInteger counter = 0; 148 | for (UIView *contentView in self.contentViews) { 149 | contentView.userInteractionEnabled = YES; 150 | UILongPressGestureRecognizer *longTapGesture = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(longTapGestureAction:)]; 151 | [contentView addGestureRecognizer:longTapGesture]; 152 | 153 | UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(contentViewTapAction:)]; 154 | [contentView addGestureRecognizer:tapGesture]; 155 | CGRect rightRect = contentView.frame; 156 | rightRect.origin = CGPointMake(CGRectGetWidth(self.scrollView.frame) * (counter ++), 0); 157 | 158 | contentView.frame = rightRect; 159 | [self.scrollView addSubview:contentView]; 160 | } 161 | if (self.totalPageCount > 1) { 162 | [_scrollView setContentOffset:CGPointMake(_scrollView.frame.size.width, 0)]; 163 | } 164 | } 165 | 166 | /** 167 | * 设置scrollView的content数据源,即contentViews 168 | */ 169 | - (void)setScrollViewContentDataSource 170 | { 171 | NSInteger previousPageIndex = [self getValidNextPageIndexWithPageIndex:self.currentPageIndex - 1]; 172 | NSInteger rearPageIndex = [self getValidNextPageIndexWithPageIndex:self.currentPageIndex + 1]; 173 | 174 | if (self.contentViews == nil) { 175 | self.contentViews = [@[] mutableCopy]; 176 | } 177 | [self.contentViews removeAllObjects]; 178 | 179 | if (self.fetchContentViewAtIndex) { 180 | id set = (self.totalPageCount == 1)?[NSSet setWithObjects:@(previousPageIndex),@(_currentPageIndex),@(rearPageIndex), nil]:@[@(previousPageIndex),@(_currentPageIndex),@(rearPageIndex)]; 181 | for (NSNumber *tempNumber in set) { 182 | NSInteger tempIndex = [tempNumber integerValue]; 183 | if ([self isValidArrayIndex:tempIndex]) { 184 | [self.contentViews addObject:self.fetchContentViewAtIndex(tempIndex)]; 185 | } 186 | } 187 | } 188 | } 189 | 190 | - (BOOL)isValidArrayIndex:(NSInteger)index 191 | { 192 | if (index >= 0 && index <= self.totalPageCount - 1) { 193 | return YES; 194 | } else { 195 | return NO; 196 | } 197 | } 198 | 199 | - (NSInteger)getValidNextPageIndexWithPageIndex:(NSInteger)currentPageIndex; 200 | { 201 | if(currentPageIndex == -1) { 202 | return self.totalPageCount - 1; 203 | } else if (currentPageIndex == self.totalPageCount) { 204 | return 0; 205 | } else { 206 | return currentPageIndex; 207 | } 208 | } 209 | 210 | #pragma mark - 211 | #pragma mark - UIScrollViewDelegate 212 | 213 | - (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView 214 | { 215 | scrollViewStartContentOffsetX = scrollView.contentOffset.x; 216 | [self.animationTimer pauseTimer]; 217 | } 218 | 219 | - (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate 220 | { 221 | [self.animationTimer resumeTimerAfterTimeInterval:self.animationDuration]; 222 | } 223 | 224 | - (void)scrollViewDidScroll:(UIScrollView *)scrollView 225 | { 226 | CGFloat contentOffsetX = scrollView.contentOffset.x; 227 | if (self.totalPageCount == 2) { 228 | if (scrollViewStartContentOffsetX < contentOffsetX) { 229 | UIView *tempView = (UIView *)[self.contentViews lastObject]; 230 | tempView.frame = (CGRect){{2 * CGRectGetWidth(scrollView.frame),0},tempView.frame.size}; 231 | } else if (scrollViewStartContentOffsetX > contentOffsetX) { 232 | UIView *tempView = (UIView *)[self.contentViews firstObject]; 233 | tempView.frame = (CGRect){{0,0},tempView.frame.size}; 234 | } 235 | } 236 | 237 | if(contentOffsetX >= (2 * CGRectGetWidth(scrollView.frame))) { 238 | self.currentPageIndex = [self getValidNextPageIndexWithPageIndex:self.currentPageIndex + 1]; 239 | // NSLog(@"next,当前页:%d",self.currentPageIndex); 240 | [self configContentViews]; 241 | } 242 | if(contentOffsetX <= 0) { 243 | self.currentPageIndex = [self getValidNextPageIndexWithPageIndex:self.currentPageIndex - 1]; 244 | // NSLog(@"previous,当前页:%d",self.currentPageIndex); 245 | [self configContentViews]; 246 | } 247 | } 248 | 249 | - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView 250 | { 251 | [scrollView setContentOffset:CGPointMake(CGRectGetWidth(scrollView.frame), 0) animated:YES]; 252 | } 253 | 254 | #pragma mark - 255 | #pragma mark - 响应事件 256 | 257 | - (void)longTapGestureAction:(UILongPressGestureRecognizer *)tapGesture 258 | { 259 | if (tapGesture.state == UIGestureRecognizerStateBegan) { 260 | // NSLog(@"UIGestureRecognizerStateBegan"); 261 | [self.animationTimer pauseTimer]; 262 | } 263 | if (tapGesture.state == UIGestureRecognizerStateEnded) { 264 | [self.animationTimer resumeTimer]; 265 | // NSLog(@"UIGestureRecognizerStateEnded"); 266 | } 267 | } 268 | 269 | - (void)animationTimerDidFired:(NSTimer *)timer 270 | { 271 | CGPoint newOffset = CGPointMake(self.scrollView.contentOffset.x + CGRectGetWidth(self.scrollView.frame), self.scrollView.contentOffset.y); 272 | [self.scrollView setContentOffset:newOffset animated:YES]; 273 | } 274 | 275 | - (void)contentViewTapAction:(UITapGestureRecognizer *)tap 276 | { 277 | if (self.TapActionBlock) { 278 | self.TapActionBlock(self.currentPageIndex); 279 | } 280 | } 281 | 282 | /* 283 | // Only override drawRect: if you perform custom drawing. 284 | // An empty implementation adversely affects performance during animation. 285 | - (void)drawRect:(CGRect)rect 286 | { 287 | // Drawing code 288 | } 289 | */ 290 | 291 | @end 292 | -------------------------------------------------------------------------------- /AutoSlideScrollViewDemo.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 5D2FBF3C1AB7FE0F004E52C5 /* AutoSlideScrollView.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D2FBF351AB7FE0F004E52C5 /* AutoSlideScrollView.m */; }; 11 | 5D2FBF3D1AB7FE0F004E52C5 /* MyPageControl.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D2FBF371AB7FE0F004E52C5 /* MyPageControl.m */; }; 12 | 5D2FBF3E1AB7FE0F004E52C5 /* NSTimer+Addition.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D2FBF391AB7FE0F004E52C5 /* NSTimer+Addition.m */; }; 13 | 5D2FBF3F1AB7FE0F004E52C5 /* AutoSlideScrollView.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 5D2FBF3B1AB7FE0F004E52C5 /* AutoSlideScrollView.bundle */; }; 14 | F7038F04189108A100D69382 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F7038F03189108A100D69382 /* Foundation.framework */; }; 15 | F7038F06189108A100D69382 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F7038F05189108A100D69382 /* CoreGraphics.framework */; }; 16 | F7038F08189108A100D69382 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F7038F07189108A100D69382 /* UIKit.framework */; }; 17 | F7038F0E189108A100D69382 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = F7038F0C189108A100D69382 /* InfoPlist.strings */; }; 18 | F7038F10189108A100D69382 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = F7038F0F189108A100D69382 /* main.m */; }; 19 | F7038F14189108A100D69382 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = F7038F13189108A100D69382 /* AppDelegate.m */; }; 20 | F7038F16189108A100D69382 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F7038F15189108A100D69382 /* Images.xcassets */; }; 21 | F7038F1D189108A100D69382 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F7038F1C189108A100D69382 /* XCTest.framework */; }; 22 | F7038F1E189108A100D69382 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F7038F03189108A100D69382 /* Foundation.framework */; }; 23 | F7038F1F189108A100D69382 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F7038F07189108A100D69382 /* UIKit.framework */; }; 24 | F7038F27189108A100D69382 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = F7038F25189108A100D69382 /* InfoPlist.strings */; }; 25 | F7038F29189108A100D69382 /* AutoSlideScrollViewDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = F7038F28189108A100D69382 /* AutoSlideScrollViewDemoTests.m */; }; 26 | F7038F36189108C700D69382 /* HomeViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = F7038F34189108C700D69382 /* HomeViewController.m */; }; 27 | F7038F37189108C700D69382 /* HomeViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = F7038F35189108C700D69382 /* HomeViewController.xib */; }; 28 | /* End PBXBuildFile section */ 29 | 30 | /* Begin PBXContainerItemProxy section */ 31 | F7038F20189108A100D69382 /* PBXContainerItemProxy */ = { 32 | isa = PBXContainerItemProxy; 33 | containerPortal = F7038EF8189108A100D69382 /* Project object */; 34 | proxyType = 1; 35 | remoteGlobalIDString = F7038EFF189108A100D69382; 36 | remoteInfo = PagedScrollView; 37 | }; 38 | /* End PBXContainerItemProxy section */ 39 | 40 | /* Begin PBXFileReference section */ 41 | 5D2FBF341AB7FE0F004E52C5 /* AutoSlideScrollView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AutoSlideScrollView.h; sourceTree = ""; }; 42 | 5D2FBF351AB7FE0F004E52C5 /* AutoSlideScrollView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AutoSlideScrollView.m; sourceTree = ""; }; 43 | 5D2FBF361AB7FE0F004E52C5 /* MyPageControl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MyPageControl.h; sourceTree = ""; }; 44 | 5D2FBF371AB7FE0F004E52C5 /* MyPageControl.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MyPageControl.m; sourceTree = ""; }; 45 | 5D2FBF381AB7FE0F004E52C5 /* NSTimer+Addition.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSTimer+Addition.h"; sourceTree = ""; }; 46 | 5D2FBF391AB7FE0F004E52C5 /* NSTimer+Addition.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSTimer+Addition.m"; sourceTree = ""; }; 47 | 5D2FBF3B1AB7FE0F004E52C5 /* AutoSlideScrollView.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = AutoSlideScrollView.bundle; sourceTree = ""; }; 48 | F7038F00189108A100D69382 /* AutoSlideScrollViewDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AutoSlideScrollViewDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | F7038F03189108A100D69382 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 50 | F7038F05189108A100D69382 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 51 | F7038F07189108A100D69382 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 52 | F7038F0B189108A100D69382 /* AutoSlideScrollViewDemo-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "AutoSlideScrollViewDemo-Info.plist"; sourceTree = ""; }; 53 | F7038F0D189108A100D69382 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 54 | F7038F0F189108A100D69382 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 55 | F7038F11189108A100D69382 /* AutoSlideScrollViewDemo-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "AutoSlideScrollViewDemo-Prefix.pch"; sourceTree = ""; }; 56 | F7038F12189108A100D69382 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 57 | F7038F13189108A100D69382 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 58 | F7038F15189108A100D69382 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 59 | F7038F1B189108A100D69382 /* AutoSlideScrollViewDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = AutoSlideScrollViewDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 60 | F7038F1C189108A100D69382 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; 61 | F7038F24189108A100D69382 /* AutoSlideScrollViewDemoTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "AutoSlideScrollViewDemoTests-Info.plist"; sourceTree = ""; }; 62 | F7038F26189108A100D69382 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 63 | F7038F28189108A100D69382 /* AutoSlideScrollViewDemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AutoSlideScrollViewDemoTests.m; sourceTree = ""; }; 64 | F7038F33189108C700D69382 /* HomeViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HomeViewController.h; sourceTree = ""; }; 65 | F7038F34189108C700D69382 /* HomeViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HomeViewController.m; sourceTree = ""; }; 66 | F7038F35189108C700D69382 /* HomeViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = HomeViewController.xib; sourceTree = ""; }; 67 | /* End PBXFileReference section */ 68 | 69 | /* Begin PBXFrameworksBuildPhase section */ 70 | F7038EFD189108A100D69382 /* Frameworks */ = { 71 | isa = PBXFrameworksBuildPhase; 72 | buildActionMask = 2147483647; 73 | files = ( 74 | F7038F06189108A100D69382 /* CoreGraphics.framework in Frameworks */, 75 | F7038F08189108A100D69382 /* UIKit.framework in Frameworks */, 76 | F7038F04189108A100D69382 /* Foundation.framework in Frameworks */, 77 | ); 78 | runOnlyForDeploymentPostprocessing = 0; 79 | }; 80 | F7038F18189108A100D69382 /* Frameworks */ = { 81 | isa = PBXFrameworksBuildPhase; 82 | buildActionMask = 2147483647; 83 | files = ( 84 | F7038F1D189108A100D69382 /* XCTest.framework in Frameworks */, 85 | F7038F1F189108A100D69382 /* UIKit.framework in Frameworks */, 86 | F7038F1E189108A100D69382 /* Foundation.framework in Frameworks */, 87 | ); 88 | runOnlyForDeploymentPostprocessing = 0; 89 | }; 90 | /* End PBXFrameworksBuildPhase section */ 91 | 92 | /* Begin PBXGroup section */ 93 | 5D2FBF331AB7FE0F004E52C5 /* AutoSlideScrollView */ = { 94 | isa = PBXGroup; 95 | children = ( 96 | 5D2FBF341AB7FE0F004E52C5 /* AutoSlideScrollView.h */, 97 | 5D2FBF351AB7FE0F004E52C5 /* AutoSlideScrollView.m */, 98 | 5D2FBF361AB7FE0F004E52C5 /* MyPageControl.h */, 99 | 5D2FBF371AB7FE0F004E52C5 /* MyPageControl.m */, 100 | 5D2FBF381AB7FE0F004E52C5 /* NSTimer+Addition.h */, 101 | 5D2FBF391AB7FE0F004E52C5 /* NSTimer+Addition.m */, 102 | 5D2FBF3A1AB7FE0F004E52C5 /* Resources */, 103 | ); 104 | path = AutoSlideScrollView; 105 | sourceTree = ""; 106 | }; 107 | 5D2FBF3A1AB7FE0F004E52C5 /* Resources */ = { 108 | isa = PBXGroup; 109 | children = ( 110 | 5D2FBF3B1AB7FE0F004E52C5 /* AutoSlideScrollView.bundle */, 111 | ); 112 | path = Resources; 113 | sourceTree = ""; 114 | }; 115 | F7038EF7189108A100D69382 = { 116 | isa = PBXGroup; 117 | children = ( 118 | 5D2FBF331AB7FE0F004E52C5 /* AutoSlideScrollView */, 119 | F7038F09189108A100D69382 /* AutoSlideScrollViewDemo */, 120 | F7038F22189108A100D69382 /* AutoSlideScrollViewDemoTests */, 121 | F7038F02189108A100D69382 /* Frameworks */, 122 | F7038F01189108A100D69382 /* Products */, 123 | ); 124 | sourceTree = ""; 125 | }; 126 | F7038F01189108A100D69382 /* Products */ = { 127 | isa = PBXGroup; 128 | children = ( 129 | F7038F00189108A100D69382 /* AutoSlideScrollViewDemo.app */, 130 | F7038F1B189108A100D69382 /* AutoSlideScrollViewDemoTests.xctest */, 131 | ); 132 | name = Products; 133 | sourceTree = ""; 134 | }; 135 | F7038F02189108A100D69382 /* Frameworks */ = { 136 | isa = PBXGroup; 137 | children = ( 138 | F7038F03189108A100D69382 /* Foundation.framework */, 139 | F7038F05189108A100D69382 /* CoreGraphics.framework */, 140 | F7038F07189108A100D69382 /* UIKit.framework */, 141 | F7038F1C189108A100D69382 /* XCTest.framework */, 142 | ); 143 | name = Frameworks; 144 | sourceTree = ""; 145 | }; 146 | F7038F09189108A100D69382 /* AutoSlideScrollViewDemo */ = { 147 | isa = PBXGroup; 148 | children = ( 149 | F7038F32189108B500D69382 /* Classes */, 150 | F7038F12189108A100D69382 /* AppDelegate.h */, 151 | F7038F13189108A100D69382 /* AppDelegate.m */, 152 | F7038F15189108A100D69382 /* Images.xcassets */, 153 | F7038F0A189108A100D69382 /* Supporting Files */, 154 | ); 155 | path = AutoSlideScrollViewDemo; 156 | sourceTree = ""; 157 | }; 158 | F7038F0A189108A100D69382 /* Supporting Files */ = { 159 | isa = PBXGroup; 160 | children = ( 161 | F7038F0B189108A100D69382 /* AutoSlideScrollViewDemo-Info.plist */, 162 | F7038F0C189108A100D69382 /* InfoPlist.strings */, 163 | F7038F0F189108A100D69382 /* main.m */, 164 | F7038F11189108A100D69382 /* AutoSlideScrollViewDemo-Prefix.pch */, 165 | ); 166 | name = "Supporting Files"; 167 | sourceTree = ""; 168 | }; 169 | F7038F22189108A100D69382 /* AutoSlideScrollViewDemoTests */ = { 170 | isa = PBXGroup; 171 | children = ( 172 | F7038F28189108A100D69382 /* AutoSlideScrollViewDemoTests.m */, 173 | F7038F23189108A100D69382 /* Supporting Files */, 174 | ); 175 | path = AutoSlideScrollViewDemoTests; 176 | sourceTree = ""; 177 | }; 178 | F7038F23189108A100D69382 /* Supporting Files */ = { 179 | isa = PBXGroup; 180 | children = ( 181 | F7038F24189108A100D69382 /* AutoSlideScrollViewDemoTests-Info.plist */, 182 | F7038F25189108A100D69382 /* InfoPlist.strings */, 183 | ); 184 | name = "Supporting Files"; 185 | sourceTree = ""; 186 | }; 187 | F7038F32189108B500D69382 /* Classes */ = { 188 | isa = PBXGroup; 189 | children = ( 190 | F7038F33189108C700D69382 /* HomeViewController.h */, 191 | F7038F34189108C700D69382 /* HomeViewController.m */, 192 | F7038F35189108C700D69382 /* HomeViewController.xib */, 193 | ); 194 | path = Classes; 195 | sourceTree = ""; 196 | }; 197 | /* End PBXGroup section */ 198 | 199 | /* Begin PBXNativeTarget section */ 200 | F7038EFF189108A100D69382 /* AutoSlideScrollViewDemo */ = { 201 | isa = PBXNativeTarget; 202 | buildConfigurationList = F7038F2C189108A100D69382 /* Build configuration list for PBXNativeTarget "AutoSlideScrollViewDemo" */; 203 | buildPhases = ( 204 | F7038EFC189108A100D69382 /* Sources */, 205 | F7038EFD189108A100D69382 /* Frameworks */, 206 | F7038EFE189108A100D69382 /* Resources */, 207 | ); 208 | buildRules = ( 209 | ); 210 | dependencies = ( 211 | ); 212 | name = AutoSlideScrollViewDemo; 213 | productName = PagedScrollView; 214 | productReference = F7038F00189108A100D69382 /* AutoSlideScrollViewDemo.app */; 215 | productType = "com.apple.product-type.application"; 216 | }; 217 | F7038F1A189108A100D69382 /* AutoSlideScrollViewDemoTests */ = { 218 | isa = PBXNativeTarget; 219 | buildConfigurationList = F7038F2F189108A100D69382 /* Build configuration list for PBXNativeTarget "AutoSlideScrollViewDemoTests" */; 220 | buildPhases = ( 221 | F7038F17189108A100D69382 /* Sources */, 222 | F7038F18189108A100D69382 /* Frameworks */, 223 | F7038F19189108A100D69382 /* Resources */, 224 | ); 225 | buildRules = ( 226 | ); 227 | dependencies = ( 228 | F7038F21189108A100D69382 /* PBXTargetDependency */, 229 | ); 230 | name = AutoSlideScrollViewDemoTests; 231 | productName = PagedScrollViewTests; 232 | productReference = F7038F1B189108A100D69382 /* AutoSlideScrollViewDemoTests.xctest */; 233 | productType = "com.apple.product-type.bundle.unit-test"; 234 | }; 235 | /* End PBXNativeTarget section */ 236 | 237 | /* Begin PBXProject section */ 238 | F7038EF8189108A100D69382 /* Project object */ = { 239 | isa = PBXProject; 240 | attributes = { 241 | LastUpgradeCheck = 0620; 242 | ORGANIZATIONNAME = "Apple Inc."; 243 | TargetAttributes = { 244 | F7038F1A189108A100D69382 = { 245 | TestTargetID = F7038EFF189108A100D69382; 246 | }; 247 | }; 248 | }; 249 | buildConfigurationList = F7038EFB189108A100D69382 /* Build configuration list for PBXProject "AutoSlideScrollViewDemo" */; 250 | compatibilityVersion = "Xcode 3.2"; 251 | developmentRegion = English; 252 | hasScannedForEncodings = 0; 253 | knownRegions = ( 254 | en, 255 | ); 256 | mainGroup = F7038EF7189108A100D69382; 257 | productRefGroup = F7038F01189108A100D69382 /* Products */; 258 | projectDirPath = ""; 259 | projectRoot = ""; 260 | targets = ( 261 | F7038EFF189108A100D69382 /* AutoSlideScrollViewDemo */, 262 | F7038F1A189108A100D69382 /* AutoSlideScrollViewDemoTests */, 263 | ); 264 | }; 265 | /* End PBXProject section */ 266 | 267 | /* Begin PBXResourcesBuildPhase section */ 268 | F7038EFE189108A100D69382 /* Resources */ = { 269 | isa = PBXResourcesBuildPhase; 270 | buildActionMask = 2147483647; 271 | files = ( 272 | F7038F0E189108A100D69382 /* InfoPlist.strings in Resources */, 273 | F7038F16189108A100D69382 /* Images.xcassets in Resources */, 274 | 5D2FBF3F1AB7FE0F004E52C5 /* AutoSlideScrollView.bundle in Resources */, 275 | F7038F37189108C700D69382 /* HomeViewController.xib in Resources */, 276 | ); 277 | runOnlyForDeploymentPostprocessing = 0; 278 | }; 279 | F7038F19189108A100D69382 /* Resources */ = { 280 | isa = PBXResourcesBuildPhase; 281 | buildActionMask = 2147483647; 282 | files = ( 283 | F7038F27189108A100D69382 /* InfoPlist.strings in Resources */, 284 | ); 285 | runOnlyForDeploymentPostprocessing = 0; 286 | }; 287 | /* End PBXResourcesBuildPhase section */ 288 | 289 | /* Begin PBXSourcesBuildPhase section */ 290 | F7038EFC189108A100D69382 /* Sources */ = { 291 | isa = PBXSourcesBuildPhase; 292 | buildActionMask = 2147483647; 293 | files = ( 294 | 5D2FBF3E1AB7FE0F004E52C5 /* NSTimer+Addition.m in Sources */, 295 | F7038F14189108A100D69382 /* AppDelegate.m in Sources */, 296 | F7038F10189108A100D69382 /* main.m in Sources */, 297 | 5D2FBF3C1AB7FE0F004E52C5 /* AutoSlideScrollView.m in Sources */, 298 | F7038F36189108C700D69382 /* HomeViewController.m in Sources */, 299 | 5D2FBF3D1AB7FE0F004E52C5 /* MyPageControl.m in Sources */, 300 | ); 301 | runOnlyForDeploymentPostprocessing = 0; 302 | }; 303 | F7038F17189108A100D69382 /* Sources */ = { 304 | isa = PBXSourcesBuildPhase; 305 | buildActionMask = 2147483647; 306 | files = ( 307 | F7038F29189108A100D69382 /* AutoSlideScrollViewDemoTests.m in Sources */, 308 | ); 309 | runOnlyForDeploymentPostprocessing = 0; 310 | }; 311 | /* End PBXSourcesBuildPhase section */ 312 | 313 | /* Begin PBXTargetDependency section */ 314 | F7038F21189108A100D69382 /* PBXTargetDependency */ = { 315 | isa = PBXTargetDependency; 316 | target = F7038EFF189108A100D69382 /* AutoSlideScrollViewDemo */; 317 | targetProxy = F7038F20189108A100D69382 /* PBXContainerItemProxy */; 318 | }; 319 | /* End PBXTargetDependency section */ 320 | 321 | /* Begin PBXVariantGroup section */ 322 | F7038F0C189108A100D69382 /* InfoPlist.strings */ = { 323 | isa = PBXVariantGroup; 324 | children = ( 325 | F7038F0D189108A100D69382 /* en */, 326 | ); 327 | name = InfoPlist.strings; 328 | sourceTree = ""; 329 | }; 330 | F7038F25189108A100D69382 /* InfoPlist.strings */ = { 331 | isa = PBXVariantGroup; 332 | children = ( 333 | F7038F26189108A100D69382 /* en */, 334 | ); 335 | name = InfoPlist.strings; 336 | sourceTree = ""; 337 | }; 338 | /* End PBXVariantGroup section */ 339 | 340 | /* Begin XCBuildConfiguration section */ 341 | F7038F2A189108A100D69382 /* Debug */ = { 342 | isa = XCBuildConfiguration; 343 | buildSettings = { 344 | ALWAYS_SEARCH_USER_PATHS = NO; 345 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 346 | CLANG_CXX_LIBRARY = "libc++"; 347 | CLANG_ENABLE_MODULES = YES; 348 | CLANG_ENABLE_OBJC_ARC = YES; 349 | CLANG_WARN_BOOL_CONVERSION = YES; 350 | CLANG_WARN_CONSTANT_CONVERSION = YES; 351 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 352 | CLANG_WARN_EMPTY_BODY = YES; 353 | CLANG_WARN_ENUM_CONVERSION = YES; 354 | CLANG_WARN_INT_CONVERSION = YES; 355 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 356 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 357 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 358 | COPY_PHASE_STRIP = NO; 359 | GCC_C_LANGUAGE_STANDARD = gnu99; 360 | GCC_DYNAMIC_NO_PIC = NO; 361 | GCC_OPTIMIZATION_LEVEL = 0; 362 | GCC_PREPROCESSOR_DEFINITIONS = ( 363 | "DEBUG=1", 364 | "$(inherited)", 365 | ); 366 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 367 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 368 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 369 | GCC_WARN_UNDECLARED_SELECTOR = YES; 370 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 371 | GCC_WARN_UNUSED_FUNCTION = YES; 372 | GCC_WARN_UNUSED_VARIABLE = YES; 373 | IPHONEOS_DEPLOYMENT_TARGET = 5.0; 374 | ONLY_ACTIVE_ARCH = YES; 375 | SDKROOT = iphoneos; 376 | TARGETED_DEVICE_FAMILY = "1,2"; 377 | }; 378 | name = Debug; 379 | }; 380 | F7038F2B189108A100D69382 /* Release */ = { 381 | isa = XCBuildConfiguration; 382 | buildSettings = { 383 | ALWAYS_SEARCH_USER_PATHS = NO; 384 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 385 | CLANG_CXX_LIBRARY = "libc++"; 386 | CLANG_ENABLE_MODULES = YES; 387 | CLANG_ENABLE_OBJC_ARC = YES; 388 | CLANG_WARN_BOOL_CONVERSION = YES; 389 | CLANG_WARN_CONSTANT_CONVERSION = YES; 390 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 391 | CLANG_WARN_EMPTY_BODY = YES; 392 | CLANG_WARN_ENUM_CONVERSION = YES; 393 | CLANG_WARN_INT_CONVERSION = YES; 394 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 395 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 396 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 397 | COPY_PHASE_STRIP = YES; 398 | ENABLE_NS_ASSERTIONS = NO; 399 | GCC_C_LANGUAGE_STANDARD = gnu99; 400 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 401 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 402 | GCC_WARN_UNDECLARED_SELECTOR = YES; 403 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 404 | GCC_WARN_UNUSED_FUNCTION = YES; 405 | GCC_WARN_UNUSED_VARIABLE = YES; 406 | IPHONEOS_DEPLOYMENT_TARGET = 5.0; 407 | SDKROOT = iphoneos; 408 | TARGETED_DEVICE_FAMILY = "1,2"; 409 | VALIDATE_PRODUCT = YES; 410 | }; 411 | name = Release; 412 | }; 413 | F7038F2D189108A100D69382 /* Debug */ = { 414 | isa = XCBuildConfiguration; 415 | buildSettings = { 416 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 417 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 418 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 419 | GCC_PREFIX_HEADER = "AutoSlideScrollViewDemo/AutoSlideScrollViewDemo-Prefix.pch"; 420 | INFOPLIST_FILE = "AutoSlideScrollViewDemo/AutoSlideScrollViewDemo-Info.plist"; 421 | PRODUCT_NAME = AutoSlideScrollViewDemo; 422 | WRAPPER_EXTENSION = app; 423 | }; 424 | name = Debug; 425 | }; 426 | F7038F2E189108A100D69382 /* Release */ = { 427 | isa = XCBuildConfiguration; 428 | buildSettings = { 429 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 430 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 431 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 432 | GCC_PREFIX_HEADER = "AutoSlideScrollViewDemo/AutoSlideScrollViewDemo-Prefix.pch"; 433 | INFOPLIST_FILE = "AutoSlideScrollViewDemo/AutoSlideScrollViewDemo-Info.plist"; 434 | PRODUCT_NAME = AutoSlideScrollViewDemo; 435 | WRAPPER_EXTENSION = app; 436 | }; 437 | name = Release; 438 | }; 439 | F7038F30189108A100D69382 /* Debug */ = { 440 | isa = XCBuildConfiguration; 441 | buildSettings = { 442 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/AutoSlideScrollViewDemo.app/AutoSlideScrollViewDemo"; 443 | FRAMEWORK_SEARCH_PATHS = ( 444 | "$(SDKROOT)/Developer/Library/Frameworks", 445 | "$(inherited)", 446 | "$(DEVELOPER_FRAMEWORKS_DIR)", 447 | ); 448 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 449 | GCC_PREFIX_HEADER = "PagedScrollView/PagedScrollView-Prefix.pch"; 450 | GCC_PREPROCESSOR_DEFINITIONS = ( 451 | "DEBUG=1", 452 | "$(inherited)", 453 | ); 454 | INFOPLIST_FILE = "PagedScrollViewTests/AutoSlideScrollViewDemoTests-Info.plist"; 455 | PRODUCT_NAME = AutoSlideScrollViewDemoTests; 456 | TEST_HOST = "$(BUNDLE_LOADER)"; 457 | WRAPPER_EXTENSION = xctest; 458 | }; 459 | name = Debug; 460 | }; 461 | F7038F31189108A100D69382 /* Release */ = { 462 | isa = XCBuildConfiguration; 463 | buildSettings = { 464 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/AutoSlideScrollViewDemo.app/AutoSlideScrollViewDemo"; 465 | FRAMEWORK_SEARCH_PATHS = ( 466 | "$(SDKROOT)/Developer/Library/Frameworks", 467 | "$(inherited)", 468 | "$(DEVELOPER_FRAMEWORKS_DIR)", 469 | ); 470 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 471 | GCC_PREFIX_HEADER = "PagedScrollView/PagedScrollView-Prefix.pch"; 472 | INFOPLIST_FILE = "PagedScrollViewTests/AutoSlideScrollViewDemoTests-Info.plist"; 473 | PRODUCT_NAME = AutoSlideScrollViewDemoTests; 474 | TEST_HOST = "$(BUNDLE_LOADER)"; 475 | WRAPPER_EXTENSION = xctest; 476 | }; 477 | name = Release; 478 | }; 479 | /* End XCBuildConfiguration section */ 480 | 481 | /* Begin XCConfigurationList section */ 482 | F7038EFB189108A100D69382 /* Build configuration list for PBXProject "AutoSlideScrollViewDemo" */ = { 483 | isa = XCConfigurationList; 484 | buildConfigurations = ( 485 | F7038F2A189108A100D69382 /* Debug */, 486 | F7038F2B189108A100D69382 /* Release */, 487 | ); 488 | defaultConfigurationIsVisible = 0; 489 | defaultConfigurationName = Release; 490 | }; 491 | F7038F2C189108A100D69382 /* Build configuration list for PBXNativeTarget "AutoSlideScrollViewDemo" */ = { 492 | isa = XCConfigurationList; 493 | buildConfigurations = ( 494 | F7038F2D189108A100D69382 /* Debug */, 495 | F7038F2E189108A100D69382 /* Release */, 496 | ); 497 | defaultConfigurationIsVisible = 0; 498 | defaultConfigurationName = Release; 499 | }; 500 | F7038F2F189108A100D69382 /* Build configuration list for PBXNativeTarget "AutoSlideScrollViewDemoTests" */ = { 501 | isa = XCConfigurationList; 502 | buildConfigurations = ( 503 | F7038F30189108A100D69382 /* Debug */, 504 | F7038F31189108A100D69382 /* Release */, 505 | ); 506 | defaultConfigurationIsVisible = 0; 507 | defaultConfigurationName = Release; 508 | }; 509 | /* End XCConfigurationList section */ 510 | }; 511 | rootObject = F7038EF8189108A100D69382 /* Project object */; 512 | } 513 | --------------------------------------------------------------------------------