├── pic
├── 1.png
├── 2.png
├── 3.png
└── 4.png
├── JEEPageControlDemo
├── pic
│ ├── 1.png
│ ├── 2.png
│ ├── 3.png
│ └── 4.png
├── Images.xcassets
│ └── AppIcon.appiconset
│ │ ├── JEEPageIcon-120.png
│ │ ├── JEEPageIcon-180.png
│ │ ├── JEEPageIcon-58.png
│ │ ├── JEEPageIcon-80.png
│ │ ├── JEEPageIcon-87.png
│ │ ├── JEEPageIcon-120-1.png
│ │ └── Contents.json
├── Info.plist
├── ViewController.swift
├── Base.lproj
│ ├── Main.storyboard
│ └── LaunchScreen.xib
└── AppDelegate.swift
├── JEEPageControlDemo.xcodeproj
├── xcuserdata
│ └── zhangjunjee.xcuserdatad
│ │ ├── xcdebugger
│ │ └── Breakpoints_v2.xcbkptlist
│ │ └── xcschemes
│ │ ├── xcschememanagement.plist
│ │ └── JEEPageControlDemo.xcscheme
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ ├── xcuserdata
│ │ └── zhangjunjee.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ └── xcshareddata
│ │ └── JEEPageControlDemo.xccheckout
└── project.pbxproj
├── README.md
├── JEEPageControl.podspec.json
├── JEEPageControlDemoTests
├── Info.plist
└── JEEPageControlDemoTests.swift
├── LICENSE
└── JEEPageControl
└── JEEPageControl.swift
/pic/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperDizzy/JEEPageControl/HEAD/pic/1.png
--------------------------------------------------------------------------------
/pic/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperDizzy/JEEPageControl/HEAD/pic/2.png
--------------------------------------------------------------------------------
/pic/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperDizzy/JEEPageControl/HEAD/pic/3.png
--------------------------------------------------------------------------------
/pic/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperDizzy/JEEPageControl/HEAD/pic/4.png
--------------------------------------------------------------------------------
/JEEPageControlDemo/pic/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperDizzy/JEEPageControl/HEAD/JEEPageControlDemo/pic/1.png
--------------------------------------------------------------------------------
/JEEPageControlDemo/pic/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperDizzy/JEEPageControl/HEAD/JEEPageControlDemo/pic/2.png
--------------------------------------------------------------------------------
/JEEPageControlDemo/pic/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperDizzy/JEEPageControl/HEAD/JEEPageControlDemo/pic/3.png
--------------------------------------------------------------------------------
/JEEPageControlDemo/pic/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperDizzy/JEEPageControl/HEAD/JEEPageControlDemo/pic/4.png
--------------------------------------------------------------------------------
/JEEPageControlDemo/Images.xcassets/AppIcon.appiconset/JEEPageIcon-120.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperDizzy/JEEPageControl/HEAD/JEEPageControlDemo/Images.xcassets/AppIcon.appiconset/JEEPageIcon-120.png
--------------------------------------------------------------------------------
/JEEPageControlDemo/Images.xcassets/AppIcon.appiconset/JEEPageIcon-180.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperDizzy/JEEPageControl/HEAD/JEEPageControlDemo/Images.xcassets/AppIcon.appiconset/JEEPageIcon-180.png
--------------------------------------------------------------------------------
/JEEPageControlDemo/Images.xcassets/AppIcon.appiconset/JEEPageIcon-58.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperDizzy/JEEPageControl/HEAD/JEEPageControlDemo/Images.xcassets/AppIcon.appiconset/JEEPageIcon-58.png
--------------------------------------------------------------------------------
/JEEPageControlDemo/Images.xcassets/AppIcon.appiconset/JEEPageIcon-80.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperDizzy/JEEPageControl/HEAD/JEEPageControlDemo/Images.xcassets/AppIcon.appiconset/JEEPageIcon-80.png
--------------------------------------------------------------------------------
/JEEPageControlDemo/Images.xcassets/AppIcon.appiconset/JEEPageIcon-87.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperDizzy/JEEPageControl/HEAD/JEEPageControlDemo/Images.xcassets/AppIcon.appiconset/JEEPageIcon-87.png
--------------------------------------------------------------------------------
/JEEPageControlDemo.xcodeproj/xcuserdata/zhangjunjee.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
--------------------------------------------------------------------------------
/JEEPageControlDemo/Images.xcassets/AppIcon.appiconset/JEEPageIcon-120-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperDizzy/JEEPageControl/HEAD/JEEPageControlDemo/Images.xcassets/AppIcon.appiconset/JEEPageIcon-120-1.png
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # JEEPageControl
2 | 自定义 PageControl,换页时指示点会根据 scrollView 的滚动程度变大与还原。
3 | ## Example
4 | 
--------------------------------------------------------------------------------
/JEEPageControlDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/JEEPageControlDemo.xcodeproj/project.xcworkspace/xcuserdata/zhangjunjee.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperDizzy/JEEPageControl/HEAD/JEEPageControlDemo.xcodeproj/project.xcworkspace/xcuserdata/zhangjunjee.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/JEEPageControl.podspec.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "JEEPageControl",
3 | "version": "0.1",
4 | "summary": "A Custom PageControl for Swift",
5 | "homepage": "https://github.com/zackjee/JEEPageControl",
6 | "screenshots": "https://cloud.githubusercontent.com/assets/6183006/8360114/1eb94d68-1b9d-11e5-9178-0d5c72052a13.gif",
7 | "license": {
8 | "type": "MIT",
9 | "file": "LICENSE"
10 | },
11 | "authors": {
12 | "Junjee": "zjj200479@gmail.com"
13 | },
14 | "platforms": {
15 | "ios": "8.0"
16 | },
17 | "source": {
18 | "git": "https://github.com/zackjee/JEEPageControl.git",
19 | "tag": "0.1"
20 | },
21 | "source_files": "JEEPageControl/*.swift",
22 | "frameworks": [
23 | "Foundation",
24 | "UIKit"
25 | ],
26 | "requires_arc": true
27 | }
28 |
--------------------------------------------------------------------------------
/JEEPageControlDemo.xcodeproj/xcuserdata/zhangjunjee.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | JEEPageControlDemo.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | F9C214E21B3C1936007BF781
16 |
17 | primary
18 |
19 |
20 | F9C214F71B3C1936007BF781
21 |
22 | primary
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/JEEPageControlDemoTests/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 |
--------------------------------------------------------------------------------
/JEEPageControlDemo/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "29x29",
5 | "idiom" : "iphone",
6 | "filename" : "JEEPageIcon-58.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "29x29",
11 | "idiom" : "iphone",
12 | "filename" : "JEEPageIcon-87.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "40x40",
17 | "idiom" : "iphone",
18 | "filename" : "JEEPageIcon-80.png",
19 | "scale" : "2x"
20 | },
21 | {
22 | "size" : "40x40",
23 | "idiom" : "iphone",
24 | "filename" : "JEEPageIcon-120-1.png",
25 | "scale" : "3x"
26 | },
27 | {
28 | "size" : "60x60",
29 | "idiom" : "iphone",
30 | "filename" : "JEEPageIcon-120.png",
31 | "scale" : "2x"
32 | },
33 | {
34 | "size" : "60x60",
35 | "idiom" : "iphone",
36 | "filename" : "JEEPageIcon-180.png",
37 | "scale" : "3x"
38 | }
39 | ],
40 | "info" : {
41 | "version" : 1,
42 | "author" : "xcode"
43 | }
44 | }
--------------------------------------------------------------------------------
/JEEPageControlDemoTests/JEEPageControlDemoTests.swift:
--------------------------------------------------------------------------------
1 | //
2 | // JEEPageControlDemoTests.swift
3 | // JEEPageControlDemoTests
4 | //
5 | // Created by ZhangJunjee on 15/6/25.
6 | // Copyright (c) 2015年 junjeez. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import XCTest
11 |
12 | class JEEPageControlDemoTests: XCTestCase {
13 |
14 | override func setUp() {
15 | super.setUp()
16 | // Put setup code here. This method is called before the invocation of each test method in the class.
17 | }
18 |
19 | override func tearDown() {
20 | // Put teardown code here. This method is called after the invocation of each test method in the class.
21 | super.tearDown()
22 | }
23 |
24 | func testExample() {
25 | // This is an example of a functional test case.
26 | XCTAssert(true, "Pass")
27 | }
28 |
29 | func testPerformanceExample() {
30 | // This is an example of a performance test case.
31 | self.measureBlock() {
32 | // Put the code you want to measure the time of here.
33 | }
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/JEEPageControlDemo/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 | JPC
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 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/JEEPageControlDemo/ViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.swift
3 | // JEEPageControlDemo
4 | //
5 | // Created by ZhangJunjee on 15/6/25.
6 | // Copyright (c) 2015年 junjeez. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class ViewController: UIViewController {
12 | var scrollView: UIScrollView!
13 | var pageControl: JEEPageControl!
14 |
15 | override func viewDidLoad() {
16 | super.viewDidLoad()
17 | self.scrollView = UIScrollView(frame: self.view.bounds)
18 | self.scrollView.pagingEnabled = true
19 | self.scrollView.contentSize = CGSizeMake(scrollView.bounds.size.width * 4, scrollView.bounds.size.height)
20 | self.view.addSubview(self.scrollView)
21 | self.scrollView.showsVerticalScrollIndicator = false
22 | self.scrollView.showsHorizontalScrollIndicator = false
23 | let item = JEEPageItem(pageNum: 4)
24 | self.pageControl = JEEPageControl(item: item, scrollView: self.scrollView)
25 |
26 | self.pageControl.frame = CGRectMake(self.view.frame.width/2-55, 41/48*self.view.frame.height, 120, 24)
27 | self.view.addSubview(pageControl)
28 | self.pageControl.currentPage = 1
29 | for var i=0; i<4; i++ {
30 | let pageFrame = CGRectMake(CGFloat(i) * self.scrollView.bounds.size.width, 0, self.scrollView.bounds.size.width, self.scrollView.bounds.size.height)
31 | let imageView = UIImageView(frame: pageFrame)
32 | imageView.image = UIImage(named: "\(i+1)")
33 | imageView.contentMode = UIViewContentMode.ScaleAspectFit
34 | self.scrollView.addSubview(imageView)
35 | }
36 | }
37 | }
38 |
39 |
--------------------------------------------------------------------------------
/JEEPageControlDemo.xcodeproj/project.xcworkspace/xcshareddata/JEEPageControlDemo.xccheckout:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDESourceControlProjectFavoriteDictionaryKey
6 |
7 | IDESourceControlProjectIdentifier
8 | B95F97D7-AFE6-4919-81E3-84F65D708BD7
9 | IDESourceControlProjectName
10 | JEEPageControlDemo
11 | IDESourceControlProjectOriginsDictionary
12 |
13 | 8004438DF6BF8DAFC4259BAF2AC8AF6A711ACA47
14 | https://github.com/zackjee/JEEPageControl.git
15 |
16 | IDESourceControlProjectPath
17 | JEEPageControlDemo.xcodeproj
18 | IDESourceControlProjectRelativeInstallPathDictionary
19 |
20 | 8004438DF6BF8DAFC4259BAF2AC8AF6A711ACA47
21 | ../..
22 |
23 | IDESourceControlProjectURL
24 | https://github.com/zackjee/JEEPageControl.git
25 | IDESourceControlProjectVersion
26 | 111
27 | IDESourceControlProjectWCCIdentifier
28 | 8004438DF6BF8DAFC4259BAF2AC8AF6A711ACA47
29 | IDESourceControlProjectWCConfigurations
30 |
31 |
32 | IDESourceControlRepositoryExtensionIdentifierKey
33 | public.vcs.git
34 | IDESourceControlWCCIdentifierKey
35 | 8004438DF6BF8DAFC4259BAF2AC8AF6A711ACA47
36 | IDESourceControlWCCName
37 | JEEPageControl
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/JEEPageControlDemo/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 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/JEEPageControlDemo/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // JEEPageControlDemo
4 | //
5 | // Created by ZhangJunjee on 15/6/25.
6 | // Copyright (c) 2015年 junjeez. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | @UIApplicationMain
12 | class AppDelegate: UIResponder, UIApplicationDelegate {
13 |
14 | var window: UIWindow?
15 |
16 |
17 | func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
18 | // Override point for customization after application launch.
19 | return true
20 | }
21 |
22 | func applicationWillResignActive(application: UIApplication) {
23 | // 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.
24 | // 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.
25 | }
26 |
27 | func applicationDidEnterBackground(application: UIApplication) {
28 | // 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.
29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
30 | }
31 |
32 | func applicationWillEnterForeground(application: UIApplication) {
33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
34 | }
35 |
36 | func applicationDidBecomeActive(application: UIApplication) {
37 | // 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.
38 | }
39 |
40 | func applicationWillTerminate(application: UIApplication) {
41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
42 | }
43 |
44 |
45 | }
46 |
47 |
--------------------------------------------------------------------------------
/JEEPageControlDemo/Base.lproj/LaunchScreen.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/JEEPageControlDemo.xcodeproj/xcuserdata/zhangjunjee.xcuserdatad/xcschemes/JEEPageControlDemo.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
29 |
35 |
36 |
37 |
38 |
39 |
44 |
45 |
47 |
53 |
54 |
55 |
56 |
57 |
63 |
64 |
65 |
66 |
67 |
68 |
78 |
80 |
86 |
87 |
88 |
89 |
90 |
91 |
97 |
99 |
105 |
106 |
107 |
108 |
110 |
111 |
114 |
115 |
116 |
--------------------------------------------------------------------------------
/JEEPageControl/JEEPageControl.swift:
--------------------------------------------------------------------------------
1 | //
2 | // JEEPageControl.swift
3 | // yuguo
4 | //
5 | // Created by ZhangJunjee on 15/6/8.
6 | // Copyright (c) 2015年 yuguo. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class JEEPageControl: UIControl, UIScrollViewDelegate {
12 | struct pageStatic {
13 | static let kDotDiameterOn:CGFloat = 24
14 | static let kDotDiameterOff:CGFloat = 14
15 | static let kDotSpace:CGFloat = 18
16 | }
17 | var pageItem: JEEPageItem!
18 | var pageScrollView: UIScrollView!
19 | var currentPage: Int = 1
20 |
21 | private var dotArray = [UIView]()
22 | private var isClickJump = false
23 |
24 | init(item: JEEPageItem!, scrollView: UIScrollView!) {
25 | super.init(frame: CGRectZero)
26 | self.pageItem = item
27 | self.pageScrollView = scrollView
28 | self.pageScrollView.delegate = self
29 | self.setupView()
30 | }
31 |
32 | required init?(coder aDecoder: NSCoder) {
33 | fatalError("init(coder:) has not been implemented")
34 | }
35 |
36 | func initDotSize() {
37 | for dotView in self.dotArray {
38 | dotView.transform = CGAffineTransformIdentity
39 | dotView.backgroundColor = self.pageItem.offColor
40 | }
41 | }
42 |
43 | func scrollViewDidScroll(scrollView: UIScrollView) {
44 | let pageWidth = scrollView.bounds.size.width
45 | var fractional = fabs((scrollView.contentOffset.x % pageWidth)/pageWidth)
46 | var forward = false
47 | if scrollView.contentOffset.x >= CGFloat(self.currentPage - 1) * pageWidth {
48 | forward = true
49 | }else {
50 | if scrollView.contentOffset.x > 0 {
51 | fractional = 1-fractional
52 | }
53 | }
54 | self.changeToNearDot(forward, progress: fractional)
55 | let fractionalPage = scrollView.contentOffset.x / pageWidth + 1
56 | self.currentPage = lround(Double(fractionalPage))
57 | }
58 |
59 | func setupView() {
60 | var diameter = self.pageItem.indicatorDiameterOff
61 | if diameter <= 0 {
62 | diameter = pageStatic.kDotDiameterOff
63 | }
64 |
65 | let space = self.pageItem.indicatorSpace
66 | if space <= 0 {
67 | diameter = pageStatic.kDotSpace
68 | }
69 | let offColor = self.pageItem.offColor
70 | let onColor = self.pageItem.onColor
71 |
72 | for var i=0; i 0 {
85 | let bigTransform = self.pageItem.indicatorDiameterOn/self.pageItem.indicatorDiameterOff
86 | self.dotArray[0].transform = CGAffineTransformMakeScale(bigTransform, bigTransform)
87 | self.dotArray[0].backgroundColor = onColor
88 | }
89 | }
90 |
91 | func tapDotView(gesture: UITapGestureRecognizer) {
92 | self.isClickJump = true
93 | let dotView = gesture.view!
94 | let pageWidth = self.pageScrollView.bounds.size.width * CGFloat(dotView.tag - 1)
95 | self.pageScrollView.scrollRectToVisible(CGRectMake(pageWidth, self.pageScrollView.frame.origin.y, self.pageScrollView.frame.size.width, self.pageScrollView.frame.size.height), animated: true)
96 | self.sendActionsForControlEvents(UIControlEvents.ValueChanged)
97 | }
98 |
99 | func changeToNearDot(forward: Bool, progress: CGFloat) {
100 | var toDotView: UIView?
101 | if forward&&self.currentPage < self.dotArray.count {
102 | toDotView = self.dotArray[self.currentPage]
103 | }else if !forward&&self.currentPage > 1 {
104 | toDotView = self.dotArray[self.currentPage - 2]
105 | }
106 | let fromDotView = self.dotArray[self.currentPage - 1]
107 | let diffTransform = (self.pageItem.indicatorDiameterOn - self.pageItem.indicatorDiameterOff)/self.pageItem.indicatorDiameterOff
108 |
109 | if progress > 0 && progress < 1 {
110 | let offColor = self.pageItem.offColor
111 | let onColor = self.pageItem.onColor
112 | if toDotView != nil {
113 | toDotView!.transform = CGAffineTransformMakeScale(1+diffTransform*progress, 1+diffTransform*progress)
114 |
115 | toDotView?.backgroundColor = self.colorTransformToAnother(offColor, toColor: onColor, progress: progress)
116 | }
117 | fromDotView.transform = CGAffineTransformMakeScale((1 + diffTransform)-diffTransform*progress, (1 + diffTransform)-diffTransform*progress)
118 | fromDotView.backgroundColor = self.colorTransformToAnother(onColor, toColor: offColor, progress: progress)
119 | }
120 | }
121 |
122 | func colorTransformToAnother(fromColor: UIColor, toColor: UIColor, progress: CGFloat) -> UIColor {
123 | let fromRGB = CGColorGetComponents(fromColor.CGColor)
124 | let toRGB = CGColorGetComponents(toColor.CGColor)
125 | return UIColor(red: fromRGB[0] + (toRGB[0] - fromRGB[0])*progress, green: fromRGB[1] + (toRGB[1] - fromRGB[1])*progress, blue: fromRGB[2] + (toRGB[2] - fromRGB[2])*progress, alpha: fromRGB[3] + (toRGB[3] - fromRGB[3])*progress)
126 | }
127 | }
128 |
129 | class JEEPageItem {
130 | var numberOfPages: Int!
131 | var onColor: UIColor = UIColor(red: 255/255.0, green: 255/255.0, blue: 255/255.0, alpha: 1)
132 | var offColor: UIColor = UIColor(red: 233/255.0, green: 233/255.0, blue: 233/255.0, alpha: 0.4)
133 | var indicatorDiameterOn: CGFloat = 24
134 | var indicatorDiameterOff: CGFloat = 14
135 | var indicatorSpace: CGFloat = 18
136 | var hideForSignlePage: Bool = true
137 |
138 | init(pageNum: Int) {
139 | self.numberOfPages = pageNum
140 | }
141 | }
142 |
--------------------------------------------------------------------------------
/JEEPageControlDemo.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | F934E7331B3D145E0000430C /* JEEPageControl.swift in Sources */ = {isa = PBXBuildFile; fileRef = F934E7321B3D145E0000430C /* JEEPageControl.swift */; };
11 | F9C214E91B3C1936007BF781 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9C214E81B3C1936007BF781 /* AppDelegate.swift */; };
12 | F9C214EB1B3C1936007BF781 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9C214EA1B3C1936007BF781 /* ViewController.swift */; };
13 | F9C214EE1B3C1936007BF781 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F9C214EC1B3C1936007BF781 /* Main.storyboard */; };
14 | F9C214F01B3C1936007BF781 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F9C214EF1B3C1936007BF781 /* Images.xcassets */; };
15 | F9C214F31B3C1936007BF781 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = F9C214F11B3C1936007BF781 /* LaunchScreen.xib */; };
16 | F9C214FF1B3C1936007BF781 /* JEEPageControlDemoTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9C214FE1B3C1936007BF781 /* JEEPageControlDemoTests.swift */; };
17 | F9C215101B3C1B2B007BF781 /* 1.png in Resources */ = {isa = PBXBuildFile; fileRef = F9C2150C1B3C1B2B007BF781 /* 1.png */; };
18 | F9C215111B3C1B2B007BF781 /* 2.png in Resources */ = {isa = PBXBuildFile; fileRef = F9C2150D1B3C1B2B007BF781 /* 2.png */; };
19 | F9C215121B3C1B2B007BF781 /* 3.png in Resources */ = {isa = PBXBuildFile; fileRef = F9C2150E1B3C1B2B007BF781 /* 3.png */; };
20 | F9C215131B3C1B2B007BF781 /* 4.png in Resources */ = {isa = PBXBuildFile; fileRef = F9C2150F1B3C1B2B007BF781 /* 4.png */; };
21 | /* End PBXBuildFile section */
22 |
23 | /* Begin PBXContainerItemProxy section */
24 | F9C214F91B3C1936007BF781 /* PBXContainerItemProxy */ = {
25 | isa = PBXContainerItemProxy;
26 | containerPortal = F9C214DB1B3C1936007BF781 /* Project object */;
27 | proxyType = 1;
28 | remoteGlobalIDString = F9C214E21B3C1936007BF781;
29 | remoteInfo = JEEPageControlDemo;
30 | };
31 | /* End PBXContainerItemProxy section */
32 |
33 | /* Begin PBXFileReference section */
34 | F934E7321B3D145E0000430C /* JEEPageControl.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = JEEPageControl.swift; sourceTree = ""; };
35 | F9C214E31B3C1936007BF781 /* JEEPageControlDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = JEEPageControlDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
36 | F9C214E71B3C1936007BF781 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
37 | F9C214E81B3C1936007BF781 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
38 | F9C214EA1B3C1936007BF781 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; };
39 | F9C214ED1B3C1936007BF781 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
40 | F9C214EF1B3C1936007BF781 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; };
41 | F9C214F21B3C1936007BF781 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; };
42 | F9C214F81B3C1936007BF781 /* JEEPageControlDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = JEEPageControlDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
43 | F9C214FD1B3C1936007BF781 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
44 | F9C214FE1B3C1936007BF781 /* JEEPageControlDemoTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = JEEPageControlDemoTests.swift; sourceTree = ""; };
45 | F9C2150C1B3C1B2B007BF781 /* 1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = 1.png; sourceTree = ""; };
46 | F9C2150D1B3C1B2B007BF781 /* 2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = 2.png; sourceTree = ""; };
47 | F9C2150E1B3C1B2B007BF781 /* 3.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = 3.png; sourceTree = ""; };
48 | F9C2150F1B3C1B2B007BF781 /* 4.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = 4.png; sourceTree = ""; };
49 | /* End PBXFileReference section */
50 |
51 | /* Begin PBXFrameworksBuildPhase section */
52 | F9C214E01B3C1936007BF781 /* Frameworks */ = {
53 | isa = PBXFrameworksBuildPhase;
54 | buildActionMask = 2147483647;
55 | files = (
56 | );
57 | runOnlyForDeploymentPostprocessing = 0;
58 | };
59 | F9C214F51B3C1936007BF781 /* Frameworks */ = {
60 | isa = PBXFrameworksBuildPhase;
61 | buildActionMask = 2147483647;
62 | files = (
63 | );
64 | runOnlyForDeploymentPostprocessing = 0;
65 | };
66 | /* End PBXFrameworksBuildPhase section */
67 |
68 | /* Begin PBXGroup section */
69 | F934E7311B3D145E0000430C /* JEEPageControl */ = {
70 | isa = PBXGroup;
71 | children = (
72 | F934E7321B3D145E0000430C /* JEEPageControl.swift */,
73 | );
74 | path = JEEPageControl;
75 | sourceTree = "";
76 | };
77 | F9C214DA1B3C1936007BF781 = {
78 | isa = PBXGroup;
79 | children = (
80 | F934E7311B3D145E0000430C /* JEEPageControl */,
81 | F9C214E51B3C1936007BF781 /* JEEPageControlDemo */,
82 | F9C214FB1B3C1936007BF781 /* JEEPageControlDemoTests */,
83 | F9C214E41B3C1936007BF781 /* Products */,
84 | );
85 | sourceTree = "";
86 | };
87 | F9C214E41B3C1936007BF781 /* Products */ = {
88 | isa = PBXGroup;
89 | children = (
90 | F9C214E31B3C1936007BF781 /* JEEPageControlDemo.app */,
91 | F9C214F81B3C1936007BF781 /* JEEPageControlDemoTests.xctest */,
92 | );
93 | name = Products;
94 | sourceTree = "";
95 | };
96 | F9C214E51B3C1936007BF781 /* JEEPageControlDemo */ = {
97 | isa = PBXGroup;
98 | children = (
99 | F9C2150B1B3C1B2B007BF781 /* pic */,
100 | F9C214E81B3C1936007BF781 /* AppDelegate.swift */,
101 | F9C214EA1B3C1936007BF781 /* ViewController.swift */,
102 | F9C214EC1B3C1936007BF781 /* Main.storyboard */,
103 | F9C214EF1B3C1936007BF781 /* Images.xcassets */,
104 | F9C214F11B3C1936007BF781 /* LaunchScreen.xib */,
105 | F9C214E61B3C1936007BF781 /* Supporting Files */,
106 | );
107 | path = JEEPageControlDemo;
108 | sourceTree = "";
109 | };
110 | F9C214E61B3C1936007BF781 /* Supporting Files */ = {
111 | isa = PBXGroup;
112 | children = (
113 | F9C214E71B3C1936007BF781 /* Info.plist */,
114 | );
115 | name = "Supporting Files";
116 | sourceTree = "";
117 | };
118 | F9C214FB1B3C1936007BF781 /* JEEPageControlDemoTests */ = {
119 | isa = PBXGroup;
120 | children = (
121 | F9C214FE1B3C1936007BF781 /* JEEPageControlDemoTests.swift */,
122 | F9C214FC1B3C1936007BF781 /* Supporting Files */,
123 | );
124 | path = JEEPageControlDemoTests;
125 | sourceTree = "";
126 | };
127 | F9C214FC1B3C1936007BF781 /* Supporting Files */ = {
128 | isa = PBXGroup;
129 | children = (
130 | F9C214FD1B3C1936007BF781 /* Info.plist */,
131 | );
132 | name = "Supporting Files";
133 | sourceTree = "";
134 | };
135 | F9C2150B1B3C1B2B007BF781 /* pic */ = {
136 | isa = PBXGroup;
137 | children = (
138 | F9C2150C1B3C1B2B007BF781 /* 1.png */,
139 | F9C2150D1B3C1B2B007BF781 /* 2.png */,
140 | F9C2150E1B3C1B2B007BF781 /* 3.png */,
141 | F9C2150F1B3C1B2B007BF781 /* 4.png */,
142 | );
143 | path = pic;
144 | sourceTree = "";
145 | };
146 | /* End PBXGroup section */
147 |
148 | /* Begin PBXNativeTarget section */
149 | F9C214E21B3C1936007BF781 /* JEEPageControlDemo */ = {
150 | isa = PBXNativeTarget;
151 | buildConfigurationList = F9C215021B3C1936007BF781 /* Build configuration list for PBXNativeTarget "JEEPageControlDemo" */;
152 | buildPhases = (
153 | F9C214DF1B3C1936007BF781 /* Sources */,
154 | F9C214E01B3C1936007BF781 /* Frameworks */,
155 | F9C214E11B3C1936007BF781 /* Resources */,
156 | );
157 | buildRules = (
158 | );
159 | dependencies = (
160 | );
161 | name = JEEPageControlDemo;
162 | productName = JEEPageControlDemo;
163 | productReference = F9C214E31B3C1936007BF781 /* JEEPageControlDemo.app */;
164 | productType = "com.apple.product-type.application";
165 | };
166 | F9C214F71B3C1936007BF781 /* JEEPageControlDemoTests */ = {
167 | isa = PBXNativeTarget;
168 | buildConfigurationList = F9C215051B3C1936007BF781 /* Build configuration list for PBXNativeTarget "JEEPageControlDemoTests" */;
169 | buildPhases = (
170 | F9C214F41B3C1936007BF781 /* Sources */,
171 | F9C214F51B3C1936007BF781 /* Frameworks */,
172 | F9C214F61B3C1936007BF781 /* Resources */,
173 | );
174 | buildRules = (
175 | );
176 | dependencies = (
177 | F9C214FA1B3C1936007BF781 /* PBXTargetDependency */,
178 | );
179 | name = JEEPageControlDemoTests;
180 | productName = JEEPageControlDemoTests;
181 | productReference = F9C214F81B3C1936007BF781 /* JEEPageControlDemoTests.xctest */;
182 | productType = "com.apple.product-type.bundle.unit-test";
183 | };
184 | /* End PBXNativeTarget section */
185 |
186 | /* Begin PBXProject section */
187 | F9C214DB1B3C1936007BF781 /* Project object */ = {
188 | isa = PBXProject;
189 | attributes = {
190 | LastSwiftMigration = 0700;
191 | LastSwiftUpdateCheck = 0700;
192 | LastUpgradeCheck = 0700;
193 | ORGANIZATIONNAME = junjeez;
194 | TargetAttributes = {
195 | F9C214E21B3C1936007BF781 = {
196 | CreatedOnToolsVersion = 6.3.1;
197 | };
198 | F9C214F71B3C1936007BF781 = {
199 | CreatedOnToolsVersion = 6.3.1;
200 | TestTargetID = F9C214E21B3C1936007BF781;
201 | };
202 | };
203 | };
204 | buildConfigurationList = F9C214DE1B3C1936007BF781 /* Build configuration list for PBXProject "JEEPageControlDemo" */;
205 | compatibilityVersion = "Xcode 3.2";
206 | developmentRegion = English;
207 | hasScannedForEncodings = 0;
208 | knownRegions = (
209 | en,
210 | Base,
211 | );
212 | mainGroup = F9C214DA1B3C1936007BF781;
213 | productRefGroup = F9C214E41B3C1936007BF781 /* Products */;
214 | projectDirPath = "";
215 | projectRoot = "";
216 | targets = (
217 | F9C214E21B3C1936007BF781 /* JEEPageControlDemo */,
218 | F9C214F71B3C1936007BF781 /* JEEPageControlDemoTests */,
219 | );
220 | };
221 | /* End PBXProject section */
222 |
223 | /* Begin PBXResourcesBuildPhase section */
224 | F9C214E11B3C1936007BF781 /* Resources */ = {
225 | isa = PBXResourcesBuildPhase;
226 | buildActionMask = 2147483647;
227 | files = (
228 | F9C214EE1B3C1936007BF781 /* Main.storyboard in Resources */,
229 | F9C215131B3C1B2B007BF781 /* 4.png in Resources */,
230 | F9C215101B3C1B2B007BF781 /* 1.png in Resources */,
231 | F9C215111B3C1B2B007BF781 /* 2.png in Resources */,
232 | F9C215121B3C1B2B007BF781 /* 3.png in Resources */,
233 | F9C214F31B3C1936007BF781 /* LaunchScreen.xib in Resources */,
234 | F9C214F01B3C1936007BF781 /* Images.xcassets in Resources */,
235 | );
236 | runOnlyForDeploymentPostprocessing = 0;
237 | };
238 | F9C214F61B3C1936007BF781 /* Resources */ = {
239 | isa = PBXResourcesBuildPhase;
240 | buildActionMask = 2147483647;
241 | files = (
242 | );
243 | runOnlyForDeploymentPostprocessing = 0;
244 | };
245 | /* End PBXResourcesBuildPhase section */
246 |
247 | /* Begin PBXSourcesBuildPhase section */
248 | F9C214DF1B3C1936007BF781 /* Sources */ = {
249 | isa = PBXSourcesBuildPhase;
250 | buildActionMask = 2147483647;
251 | files = (
252 | F9C214EB1B3C1936007BF781 /* ViewController.swift in Sources */,
253 | F9C214E91B3C1936007BF781 /* AppDelegate.swift in Sources */,
254 | F934E7331B3D145E0000430C /* JEEPageControl.swift in Sources */,
255 | );
256 | runOnlyForDeploymentPostprocessing = 0;
257 | };
258 | F9C214F41B3C1936007BF781 /* Sources */ = {
259 | isa = PBXSourcesBuildPhase;
260 | buildActionMask = 2147483647;
261 | files = (
262 | F9C214FF1B3C1936007BF781 /* JEEPageControlDemoTests.swift in Sources */,
263 | );
264 | runOnlyForDeploymentPostprocessing = 0;
265 | };
266 | /* End PBXSourcesBuildPhase section */
267 |
268 | /* Begin PBXTargetDependency section */
269 | F9C214FA1B3C1936007BF781 /* PBXTargetDependency */ = {
270 | isa = PBXTargetDependency;
271 | target = F9C214E21B3C1936007BF781 /* JEEPageControlDemo */;
272 | targetProxy = F9C214F91B3C1936007BF781 /* PBXContainerItemProxy */;
273 | };
274 | /* End PBXTargetDependency section */
275 |
276 | /* Begin PBXVariantGroup section */
277 | F9C214EC1B3C1936007BF781 /* Main.storyboard */ = {
278 | isa = PBXVariantGroup;
279 | children = (
280 | F9C214ED1B3C1936007BF781 /* Base */,
281 | );
282 | name = Main.storyboard;
283 | sourceTree = "";
284 | };
285 | F9C214F11B3C1936007BF781 /* LaunchScreen.xib */ = {
286 | isa = PBXVariantGroup;
287 | children = (
288 | F9C214F21B3C1936007BF781 /* Base */,
289 | );
290 | name = LaunchScreen.xib;
291 | sourceTree = "";
292 | };
293 | /* End PBXVariantGroup section */
294 |
295 | /* Begin XCBuildConfiguration section */
296 | F9C215001B3C1936007BF781 /* Debug */ = {
297 | isa = XCBuildConfiguration;
298 | buildSettings = {
299 | ALWAYS_SEARCH_USER_PATHS = NO;
300 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
301 | CLANG_CXX_LIBRARY = "libc++";
302 | CLANG_ENABLE_MODULES = YES;
303 | CLANG_ENABLE_OBJC_ARC = YES;
304 | CLANG_WARN_BOOL_CONVERSION = YES;
305 | CLANG_WARN_CONSTANT_CONVERSION = YES;
306 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
307 | CLANG_WARN_EMPTY_BODY = YES;
308 | CLANG_WARN_ENUM_CONVERSION = YES;
309 | CLANG_WARN_INT_CONVERSION = YES;
310 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
311 | CLANG_WARN_UNREACHABLE_CODE = YES;
312 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
313 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
314 | COPY_PHASE_STRIP = NO;
315 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
316 | ENABLE_STRICT_OBJC_MSGSEND = YES;
317 | ENABLE_TESTABILITY = YES;
318 | GCC_C_LANGUAGE_STANDARD = gnu99;
319 | GCC_DYNAMIC_NO_PIC = NO;
320 | GCC_NO_COMMON_BLOCKS = YES;
321 | GCC_OPTIMIZATION_LEVEL = 0;
322 | GCC_PREPROCESSOR_DEFINITIONS = (
323 | "DEBUG=1",
324 | "$(inherited)",
325 | );
326 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
327 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
328 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
329 | GCC_WARN_UNDECLARED_SELECTOR = YES;
330 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
331 | GCC_WARN_UNUSED_FUNCTION = YES;
332 | GCC_WARN_UNUSED_VARIABLE = YES;
333 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
334 | MTL_ENABLE_DEBUG_INFO = YES;
335 | ONLY_ACTIVE_ARCH = YES;
336 | SDKROOT = iphoneos;
337 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
338 | };
339 | name = Debug;
340 | };
341 | F9C215011B3C1936007BF781 /* Release */ = {
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_UNREACHABLE_CODE = YES;
357 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
358 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
359 | COPY_PHASE_STRIP = NO;
360 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
361 | ENABLE_NS_ASSERTIONS = NO;
362 | ENABLE_STRICT_OBJC_MSGSEND = YES;
363 | GCC_C_LANGUAGE_STANDARD = gnu99;
364 | GCC_NO_COMMON_BLOCKS = YES;
365 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
366 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
367 | GCC_WARN_UNDECLARED_SELECTOR = YES;
368 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
369 | GCC_WARN_UNUSED_FUNCTION = YES;
370 | GCC_WARN_UNUSED_VARIABLE = YES;
371 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
372 | MTL_ENABLE_DEBUG_INFO = NO;
373 | SDKROOT = iphoneos;
374 | VALIDATE_PRODUCT = YES;
375 | };
376 | name = Release;
377 | };
378 | F9C215031B3C1936007BF781 /* Debug */ = {
379 | isa = XCBuildConfiguration;
380 | buildSettings = {
381 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
382 | INFOPLIST_FILE = JEEPageControlDemo/Info.plist;
383 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
384 | PRODUCT_BUNDLE_IDENTIFIER = "com.junjeez.JEEPageControl.$(PRODUCT_NAME:rfc1034identifier)";
385 | PRODUCT_NAME = "$(TARGET_NAME)";
386 | };
387 | name = Debug;
388 | };
389 | F9C215041B3C1936007BF781 /* Release */ = {
390 | isa = XCBuildConfiguration;
391 | buildSettings = {
392 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
393 | INFOPLIST_FILE = JEEPageControlDemo/Info.plist;
394 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
395 | PRODUCT_BUNDLE_IDENTIFIER = "com.junjeez.JEEPageControl.$(PRODUCT_NAME:rfc1034identifier)";
396 | PRODUCT_NAME = "$(TARGET_NAME)";
397 | };
398 | name = Release;
399 | };
400 | F9C215061B3C1936007BF781 /* Debug */ = {
401 | isa = XCBuildConfiguration;
402 | buildSettings = {
403 | BUNDLE_LOADER = "$(TEST_HOST)";
404 | FRAMEWORK_SEARCH_PATHS = "";
405 | GCC_PREPROCESSOR_DEFINITIONS = (
406 | "DEBUG=1",
407 | "$(inherited)",
408 | );
409 | INFOPLIST_FILE = JEEPageControlDemoTests/Info.plist;
410 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
411 | PRODUCT_BUNDLE_IDENTIFIER = "com.junjeez.JEEPageControl.$(PRODUCT_NAME:rfc1034identifier)";
412 | PRODUCT_NAME = "$(TARGET_NAME)";
413 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/JEEPageControlDemo.app/JEEPageControlDemo";
414 | };
415 | name = Debug;
416 | };
417 | F9C215071B3C1936007BF781 /* Release */ = {
418 | isa = XCBuildConfiguration;
419 | buildSettings = {
420 | BUNDLE_LOADER = "$(TEST_HOST)";
421 | FRAMEWORK_SEARCH_PATHS = "";
422 | INFOPLIST_FILE = JEEPageControlDemoTests/Info.plist;
423 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
424 | PRODUCT_BUNDLE_IDENTIFIER = "com.junjeez.JEEPageControl.$(PRODUCT_NAME:rfc1034identifier)";
425 | PRODUCT_NAME = "$(TARGET_NAME)";
426 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/JEEPageControlDemo.app/JEEPageControlDemo";
427 | };
428 | name = Release;
429 | };
430 | /* End XCBuildConfiguration section */
431 |
432 | /* Begin XCConfigurationList section */
433 | F9C214DE1B3C1936007BF781 /* Build configuration list for PBXProject "JEEPageControlDemo" */ = {
434 | isa = XCConfigurationList;
435 | buildConfigurations = (
436 | F9C215001B3C1936007BF781 /* Debug */,
437 | F9C215011B3C1936007BF781 /* Release */,
438 | );
439 | defaultConfigurationIsVisible = 0;
440 | defaultConfigurationName = Release;
441 | };
442 | F9C215021B3C1936007BF781 /* Build configuration list for PBXNativeTarget "JEEPageControlDemo" */ = {
443 | isa = XCConfigurationList;
444 | buildConfigurations = (
445 | F9C215031B3C1936007BF781 /* Debug */,
446 | F9C215041B3C1936007BF781 /* Release */,
447 | );
448 | defaultConfigurationIsVisible = 0;
449 | defaultConfigurationName = Release;
450 | };
451 | F9C215051B3C1936007BF781 /* Build configuration list for PBXNativeTarget "JEEPageControlDemoTests" */ = {
452 | isa = XCConfigurationList;
453 | buildConfigurations = (
454 | F9C215061B3C1936007BF781 /* Debug */,
455 | F9C215071B3C1936007BF781 /* Release */,
456 | );
457 | defaultConfigurationIsVisible = 0;
458 | defaultConfigurationName = Release;
459 | };
460 | /* End XCConfigurationList section */
461 | };
462 | rootObject = F9C214DB1B3C1936007BF781 /* Project object */;
463 | }
464 |
--------------------------------------------------------------------------------