├── .gitignore ├── DWIntrosPage.podspec ├── Example ├── DWIntrosPage.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata └── DWIntrosPage │ ├── 02.jpg │ ├── AppDelegate+DWIntrosPage.h │ ├── AppDelegate+DWIntrosPage.m │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Assets.xcassets │ ├── 01.imageset │ │ ├── 01.jpg │ │ └── Contents.json │ ├── 03.imageset │ │ ├── 03.jpg │ │ └── Contents.json │ ├── AppIcon.appiconset │ │ └── Contents.json │ └── Contents.json │ ├── Base.lproj │ └── LaunchScreen.storyboard │ ├── HomeViewController.h │ ├── HomeViewController.m │ ├── Images │ ├── 01.jpg │ ├── 02.jpg │ ├── 03.jpg │ ├── gif01.gif │ ├── gif02.gif │ ├── gif03.gif │ ├── gif04.gif │ ├── gif05.gif │ ├── introsPage.gif │ └── timg.jpeg │ ├── Info.plist │ └── main.m ├── LICENSE ├── README.md └── Source ├── DWIntrosPageContentViewController.h ├── DWIntrosPageContentViewController.m ├── DWIntrosPagesViewController.h └── DWIntrosPagesViewController.m /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData/ 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata/ 19 | 20 | ## Other 21 | *.moved-aside 22 | *.xccheckout 23 | *.xcscmblueprint 24 | 25 | ## Obj-C/Swift specific 26 | *.hmap 27 | *.ipa 28 | *.dSYM.zip 29 | *.dSYM 30 | 31 | # CocoaPods 32 | # 33 | # We recommend against adding the Pods directory to your .gitignore. However 34 | # you should judge for yourself, the pros and cons are mentioned at: 35 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 36 | # 37 | # Pods/ 38 | 39 | # Carthage 40 | # 41 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 42 | # Carthage/Checkouts 43 | 44 | Carthage/Build 45 | 46 | # fastlane 47 | # 48 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 49 | # screenshots whenever they are needed. 50 | # For more information about the recommended setup visit: 51 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 52 | 53 | fastlane/report.xml 54 | fastlane/Preview.html 55 | fastlane/screenshots/**/*.png 56 | fastlane/test_output 57 | 58 | # Code Injection 59 | # 60 | # After new code Injection tools there's a generated folder /iOSInjectionProject 61 | # https://github.com/johnno1962/injectionforxcode 62 | 63 | iOSInjectionProject/ 64 | -------------------------------------------------------------------------------- /DWIntrosPage.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod spec lint DWGuidePage.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 = "DWIntrosPage" 19 | s.version = "1.1.0" 20 | s.summary = "An iOS framework to easily create a beautiful and powerful guide page." 21 | 22 | # This description is used to generate tags and improve search results. 23 | # * Think: What does it do? Why did you write it? What is the focus? 24 | # * Try to keep it short, snappy and to the point. 25 | # * Write the description between the DESC delimiters below. 26 | # * Finally, don't worry about the indent, CocoaPods strips it! 27 | s.description = <<-DESC 28 | An iOS framework to easily create a beautiful and powerful guide page with only a few lines of code. 29 | DESC 30 | 31 | s.homepage = "https://github.com/iDwyane/DWIntrosPage" 32 | # s.screenshots = "www.example.com/screenshots_1.gif", "www.example.com/screenshots_2.gif" 33 | 34 | 35 | # ――― Spec License ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 36 | # 37 | # Licensing your code is important. See http://choosealicense.com for more info. 38 | # CocoaPods will detect a license file if there is a named LICENSE* 39 | # Popular ones are 'MIT', 'BSD' and 'Apache License, Version 2.0'. 40 | # 41 | 42 | # s.license = "MIT" 43 | s.license = { :type => "MIT", :file => "FILE_LICENSE" } 44 | 45 | 46 | # ――― Author Metadata ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 47 | # 48 | # Specify the authors of the library, with email addresses. Email addresses 49 | # of the authors are extracted from the SCM log. E.g. $ git log. CocoaPods also 50 | # accepts just a name if you'd rather not provide an email address. 51 | # 52 | # Specify a social_media_url where others can refer to, for example a twitter 53 | # profile URL. 54 | # 55 | 56 | # s.author = { "idwyane" => "dwadeisthebest@163.com" } 57 | s.author = "Dwyane" 58 | # s.authors = { "idwyane" => "dwadeisthebest@163.com" } 59 | # s.social_media_url = "http://twitter.com/idwyane" 60 | 61 | # ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 62 | # 63 | # If this Pod runs only on iOS or OS X, then specify the platform and 64 | # the deployment target. You can optionally include the target after the platform. 65 | # 66 | 67 | s.platform = :ios 68 | # s.platform = :ios, "5.0" 69 | 70 | # When using multiple platforms 71 | # s.ios.deployment_target = "5.0" 72 | # s.osx.deployment_target = "10.7" 73 | # s.watchos.deployment_target = "2.0" 74 | # s.tvos.deployment_target = "9.0" 75 | 76 | 77 | # ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 78 | # 79 | # Specify the location from where the source should be retrieved. 80 | # Supports git, hg, bzr, svn and HTTP. 81 | # 82 | 83 | s.source = { :git => "https://github.com/iDwyane/DWIntrosPage.git", :tag => "#{s.version}" } 84 | 85 | 86 | # ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 87 | # 88 | # CocoaPods is smart about how it includes source code. For source files 89 | # giving a folder will include any swift, h, m, mm, c & cpp files. 90 | # For header files it will include any header in the folder. 91 | # Not including the public_header_files will make all headers public. 92 | # 93 | 94 | s.source_files = "DWGuidePage", "Source/*.{h,m}" 95 | # s.exclude_files = "Classes/Exclude" 96 | 97 | # s.public_header_files = "Classes/**/*.h" 98 | 99 | 100 | # ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 101 | # 102 | # A list of resources included with the Pod. These are copied into the 103 | # target bundle with a build phase script. Anything else will be cleaned. 104 | # You can preserve files from being cleaned, please don't preserve 105 | # non-essential files like tests, examples and documentation. 106 | # 107 | 108 | # s.resource = "icon.png" 109 | # s.resources = "Resources/*.png" 110 | 111 | # s.preserve_paths = "FilesToSave", "MoreFilesToSave" 112 | 113 | 114 | # ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 115 | # 116 | # Link your library with frameworks, or libraries. Libraries do not include 117 | # the lib prefix of their name. 118 | # 119 | 120 | # s.framework = "SomeFramework" 121 | # s.frameworks = "SomeFramework", "AnotherFramework" 122 | 123 | # s.library = "iconv" 124 | # s.libraries = "iconv", "xml2" 125 | 126 | 127 | # ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 128 | # 129 | # If your library depends on compiler flags you can set them in the xcconfig hash 130 | # where they will only apply to your library. If you depend on other Podspecs 131 | # you can include multiple dependencies to ensure it works. 132 | 133 | s.requires_arc = true 134 | 135 | # s.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" } 136 | # s.dependency "JSONKit", "~> 1.4" 137 | 138 | end 139 | -------------------------------------------------------------------------------- /Example/DWIntrosPage.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 48; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 79DA91352147EFA50027C015 /* DWIntrosPageContentViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 79DA91322147EFA50027C015 /* DWIntrosPageContentViewController.m */; }; 11 | 79DA91362147EFA50027C015 /* DWIntrosPagesViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 79DA91342147EFA50027C015 /* DWIntrosPagesViewController.m */; }; 12 | 79DA917C2148FCE40027C015 /* Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 79DA91662148FCE30027C015 /* Info.plist */; }; 13 | 79DA917D2148FCE40027C015 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 79DA91672148FCE30027C015 /* main.m */; }; 14 | 79DA917E2148FCE40027C015 /* 03.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 79DA91682148FCE30027C015 /* 03.jpg */; }; 15 | 79DA917F2148FCE40027C015 /* 02.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 79DA91692148FCE30027C015 /* 02.jpg */; }; 16 | 79DA91802148FCE40027C015 /* 02.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 79DA916B2148FCE30027C015 /* 02.jpg */; }; 17 | 79DA91812148FCE40027C015 /* gif01.gif in Resources */ = {isa = PBXBuildFile; fileRef = 79DA916C2148FCE30027C015 /* gif01.gif */; }; 18 | 79DA91822148FCE40027C015 /* gif02.gif in Resources */ = {isa = PBXBuildFile; fileRef = 79DA916D2148FCE30027C015 /* gif02.gif */; }; 19 | 79DA91832148FCE40027C015 /* gif03.gif in Resources */ = {isa = PBXBuildFile; fileRef = 79DA916E2148FCE30027C015 /* gif03.gif */; }; 20 | 79DA91842148FCE40027C015 /* gif04.gif in Resources */ = {isa = PBXBuildFile; fileRef = 79DA916F2148FCE30027C015 /* gif04.gif */; }; 21 | 79DA91852148FCE40027C015 /* gif05.gif in Resources */ = {isa = PBXBuildFile; fileRef = 79DA91702148FCE30027C015 /* gif05.gif */; }; 22 | 79DA91862148FCE40027C015 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 79DA91722148FCE30027C015 /* AppDelegate.m */; }; 23 | 79DA91872148FCE40027C015 /* HomeViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 79DA91732148FCE30027C015 /* HomeViewController.m */; }; 24 | 79DA91882148FCE40027C015 /* 01.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 79DA91742148FCE30027C015 /* 01.jpg */; }; 25 | 79DA91892148FCE40027C015 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 79DA91752148FCE30027C015 /* Assets.xcassets */; }; 26 | 79DA918A2148FCE40027C015 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 79DA91782148FCE30027C015 /* LaunchScreen.storyboard */; }; 27 | 79DA918B2148FCE40027C015 /* AppDelegate+DWIntrosPage.m in Sources */ = {isa = PBXBuildFile; fileRef = 79DA917A2148FCE30027C015 /* AppDelegate+DWIntrosPage.m */; }; 28 | 79DA918F214910C90027C015 /* timg.jpeg in Resources */ = {isa = PBXBuildFile; fileRef = 79DA918E214910C90027C015 /* timg.jpeg */; }; 29 | 79DA9191214911B40027C015 /* introsPage.gif in Resources */ = {isa = PBXBuildFile; fileRef = 79DA9190214911B40027C015 /* introsPage.gif */; }; 30 | /* End PBXBuildFile section */ 31 | 32 | /* Begin PBXContainerItemProxy section */ 33 | 790E921F21394FF200AABDE6 /* PBXContainerItemProxy */ = { 34 | isa = PBXContainerItemProxy; 35 | containerPortal = 790E91FE21394FF200AABDE6 /* Project object */; 36 | proxyType = 1; 37 | remoteGlobalIDString = 790E920521394FF200AABDE6; 38 | remoteInfo = DWGuidePage; 39 | }; 40 | 790E922A21394FF200AABDE6 /* PBXContainerItemProxy */ = { 41 | isa = PBXContainerItemProxy; 42 | containerPortal = 790E91FE21394FF200AABDE6 /* Project object */; 43 | proxyType = 1; 44 | remoteGlobalIDString = 790E920521394FF200AABDE6; 45 | remoteInfo = DWGuidePage; 46 | }; 47 | /* End PBXContainerItemProxy section */ 48 | 49 | /* Begin PBXFileReference section */ 50 | 790E920621394FF200AABDE6 /* DWIntrosPage.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DWIntrosPage.app; sourceTree = BUILT_PRODUCTS_DIR; }; 51 | 790E921E21394FF200AABDE6 /* DWIntrosPageTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = DWIntrosPageTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | 790E922921394FF200AABDE6 /* DWIntrosPageUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = DWIntrosPageUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 53 | 79DA91312147EFA50027C015 /* DWIntrosPageContentViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DWIntrosPageContentViewController.h; sourceTree = ""; }; 54 | 79DA91322147EFA50027C015 /* DWIntrosPageContentViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DWIntrosPageContentViewController.m; sourceTree = ""; }; 55 | 79DA91332147EFA50027C015 /* DWIntrosPagesViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DWIntrosPagesViewController.h; sourceTree = ""; }; 56 | 79DA91342147EFA50027C015 /* DWIntrosPagesViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DWIntrosPagesViewController.m; sourceTree = ""; }; 57 | 79DA91662148FCE30027C015 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = DWIntrosPage/Info.plist; sourceTree = ""; }; 58 | 79DA91672148FCE30027C015 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = DWIntrosPage/main.m; sourceTree = ""; }; 59 | 79DA91682148FCE30027C015 /* 03.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = 03.jpg; sourceTree = ""; }; 60 | 79DA91692148FCE30027C015 /* 02.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = 02.jpg; path = ../02.jpg; sourceTree = ""; }; 61 | 79DA916B2148FCE30027C015 /* 02.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = 02.jpg; sourceTree = ""; }; 62 | 79DA916C2148FCE30027C015 /* gif01.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = gif01.gif; sourceTree = ""; }; 63 | 79DA916D2148FCE30027C015 /* gif02.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = gif02.gif; sourceTree = ""; }; 64 | 79DA916E2148FCE30027C015 /* gif03.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = gif03.gif; sourceTree = ""; }; 65 | 79DA916F2148FCE30027C015 /* gif04.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = gif04.gif; sourceTree = ""; }; 66 | 79DA91702148FCE30027C015 /* gif05.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = gif05.gif; sourceTree = ""; }; 67 | 79DA91712148FCE30027C015 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = DWIntrosPage/AppDelegate.h; sourceTree = ""; }; 68 | 79DA91722148FCE30027C015 /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = DWIntrosPage/AppDelegate.m; sourceTree = ""; }; 69 | 79DA91732148FCE30027C015 /* HomeViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = HomeViewController.m; path = DWIntrosPage/HomeViewController.m; sourceTree = ""; }; 70 | 79DA91742148FCE30027C015 /* 01.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = 01.jpg; sourceTree = ""; }; 71 | 79DA91752148FCE30027C015 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = DWIntrosPage/Assets.xcassets; sourceTree = ""; }; 72 | 79DA91762148FCE30027C015 /* AppDelegate+DWIntrosPage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "AppDelegate+DWIntrosPage.h"; path = "DWIntrosPage/AppDelegate+DWIntrosPage.h"; sourceTree = ""; }; 73 | 79DA91792148FCE30027C015 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = LaunchScreen.storyboard; sourceTree = ""; }; 74 | 79DA917A2148FCE30027C015 /* AppDelegate+DWIntrosPage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "AppDelegate+DWIntrosPage.m"; path = "DWIntrosPage/AppDelegate+DWIntrosPage.m"; sourceTree = ""; }; 75 | 79DA917B2148FCE40027C015 /* HomeViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = HomeViewController.h; path = DWIntrosPage/HomeViewController.h; sourceTree = ""; }; 76 | 79DA918E214910C90027C015 /* timg.jpeg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = timg.jpeg; sourceTree = ""; }; 77 | 79DA9190214911B40027C015 /* introsPage.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = introsPage.gif; sourceTree = ""; }; 78 | /* End PBXFileReference section */ 79 | 80 | /* Begin PBXFrameworksBuildPhase section */ 81 | 790E920321394FF200AABDE6 /* Frameworks */ = { 82 | isa = PBXFrameworksBuildPhase; 83 | buildActionMask = 2147483647; 84 | files = ( 85 | ); 86 | runOnlyForDeploymentPostprocessing = 0; 87 | }; 88 | 790E921B21394FF200AABDE6 /* Frameworks */ = { 89 | isa = PBXFrameworksBuildPhase; 90 | buildActionMask = 2147483647; 91 | files = ( 92 | ); 93 | runOnlyForDeploymentPostprocessing = 0; 94 | }; 95 | 790E922621394FF200AABDE6 /* Frameworks */ = { 96 | isa = PBXFrameworksBuildPhase; 97 | buildActionMask = 2147483647; 98 | files = ( 99 | ); 100 | runOnlyForDeploymentPostprocessing = 0; 101 | }; 102 | /* End PBXFrameworksBuildPhase section */ 103 | 104 | /* Begin PBXGroup section */ 105 | 790E91FD21394FF200AABDE6 = { 106 | isa = PBXGroup; 107 | children = ( 108 | 79DA91302147EFA50027C015 /* Source */, 109 | 79DA913B2148FC960027C015 /* Example */, 110 | 790E920721394FF200AABDE6 /* Products */, 111 | ); 112 | sourceTree = ""; 113 | }; 114 | 790E920721394FF200AABDE6 /* Products */ = { 115 | isa = PBXGroup; 116 | children = ( 117 | 790E920621394FF200AABDE6 /* DWIntrosPage.app */, 118 | 790E921E21394FF200AABDE6 /* DWIntrosPageTests.xctest */, 119 | 790E922921394FF200AABDE6 /* DWIntrosPageUITests.xctest */, 120 | ); 121 | name = Products; 122 | sourceTree = ""; 123 | }; 124 | 79DA91302147EFA50027C015 /* Source */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | 79DA91312147EFA50027C015 /* DWIntrosPageContentViewController.h */, 128 | 79DA91322147EFA50027C015 /* DWIntrosPageContentViewController.m */, 129 | 79DA91332147EFA50027C015 /* DWIntrosPagesViewController.h */, 130 | 79DA91342147EFA50027C015 /* DWIntrosPagesViewController.m */, 131 | ); 132 | name = Source; 133 | path = ../Source; 134 | sourceTree = ""; 135 | }; 136 | 79DA913B2148FC960027C015 /* Example */ = { 137 | isa = PBXGroup; 138 | children = ( 139 | 79DA91772148FCE30027C015 /* Base.lproj */, 140 | 79DA916A2148FCE30027C015 /* Images */, 141 | 79DA91712148FCE30027C015 /* AppDelegate.h */, 142 | 79DA91722148FCE30027C015 /* AppDelegate.m */, 143 | 79DA91762148FCE30027C015 /* AppDelegate+DWIntrosPage.h */, 144 | 79DA917A2148FCE30027C015 /* AppDelegate+DWIntrosPage.m */, 145 | 79DA917B2148FCE40027C015 /* HomeViewController.h */, 146 | 79DA91732148FCE30027C015 /* HomeViewController.m */, 147 | 79DA91752148FCE30027C015 /* Assets.xcassets */, 148 | 79DA91662148FCE30027C015 /* Info.plist */, 149 | 79DA91672148FCE30027C015 /* main.m */, 150 | ); 151 | name = Example; 152 | sourceTree = ""; 153 | }; 154 | 79DA916A2148FCE30027C015 /* Images */ = { 155 | isa = PBXGroup; 156 | children = ( 157 | 79DA9190214911B40027C015 /* introsPage.gif */, 158 | 79DA918E214910C90027C015 /* timg.jpeg */, 159 | 79DA916B2148FCE30027C015 /* 02.jpg */, 160 | 79DA91742148FCE30027C015 /* 01.jpg */, 161 | 79DA91692148FCE30027C015 /* 02.jpg */, 162 | 79DA91682148FCE30027C015 /* 03.jpg */, 163 | 79DA916C2148FCE30027C015 /* gif01.gif */, 164 | 79DA916D2148FCE30027C015 /* gif02.gif */, 165 | 79DA916E2148FCE30027C015 /* gif03.gif */, 166 | 79DA916F2148FCE30027C015 /* gif04.gif */, 167 | 79DA91702148FCE30027C015 /* gif05.gif */, 168 | ); 169 | name = Images; 170 | path = DWIntrosPage/Images; 171 | sourceTree = ""; 172 | }; 173 | 79DA91772148FCE30027C015 /* Base.lproj */ = { 174 | isa = PBXGroup; 175 | children = ( 176 | 79DA91782148FCE30027C015 /* LaunchScreen.storyboard */, 177 | ); 178 | name = Base.lproj; 179 | path = DWIntrosPage/Base.lproj; 180 | sourceTree = ""; 181 | }; 182 | /* End PBXGroup section */ 183 | 184 | /* Begin PBXNativeTarget section */ 185 | 790E920521394FF200AABDE6 /* DWIntrosPage */ = { 186 | isa = PBXNativeTarget; 187 | buildConfigurationList = 790E923221394FF200AABDE6 /* Build configuration list for PBXNativeTarget "DWIntrosPage" */; 188 | buildPhases = ( 189 | 790E920221394FF200AABDE6 /* Sources */, 190 | 790E920321394FF200AABDE6 /* Frameworks */, 191 | 790E920421394FF200AABDE6 /* Resources */, 192 | ); 193 | buildRules = ( 194 | ); 195 | dependencies = ( 196 | ); 197 | name = DWIntrosPage; 198 | productName = DWGuidePage; 199 | productReference = 790E920621394FF200AABDE6 /* DWIntrosPage.app */; 200 | productType = "com.apple.product-type.application"; 201 | }; 202 | 790E921D21394FF200AABDE6 /* DWIntrosPageTests */ = { 203 | isa = PBXNativeTarget; 204 | buildConfigurationList = 790E923521394FF200AABDE6 /* Build configuration list for PBXNativeTarget "DWIntrosPageTests" */; 205 | buildPhases = ( 206 | 790E921A21394FF200AABDE6 /* Sources */, 207 | 790E921B21394FF200AABDE6 /* Frameworks */, 208 | 790E921C21394FF200AABDE6 /* Resources */, 209 | ); 210 | buildRules = ( 211 | ); 212 | dependencies = ( 213 | 790E922021394FF200AABDE6 /* PBXTargetDependency */, 214 | ); 215 | name = DWIntrosPageTests; 216 | productName = DWGuidePageTests; 217 | productReference = 790E921E21394FF200AABDE6 /* DWIntrosPageTests.xctest */; 218 | productType = "com.apple.product-type.bundle.unit-test"; 219 | }; 220 | 790E922821394FF200AABDE6 /* DWIntrosPageUITests */ = { 221 | isa = PBXNativeTarget; 222 | buildConfigurationList = 790E923821394FF200AABDE6 /* Build configuration list for PBXNativeTarget "DWIntrosPageUITests" */; 223 | buildPhases = ( 224 | 790E922521394FF200AABDE6 /* Sources */, 225 | 790E922621394FF200AABDE6 /* Frameworks */, 226 | 790E922721394FF200AABDE6 /* Resources */, 227 | ); 228 | buildRules = ( 229 | ); 230 | dependencies = ( 231 | 790E922B21394FF200AABDE6 /* PBXTargetDependency */, 232 | ); 233 | name = DWIntrosPageUITests; 234 | productName = DWGuidePageUITests; 235 | productReference = 790E922921394FF200AABDE6 /* DWIntrosPageUITests.xctest */; 236 | productType = "com.apple.product-type.bundle.ui-testing"; 237 | }; 238 | /* End PBXNativeTarget section */ 239 | 240 | /* Begin PBXProject section */ 241 | 790E91FE21394FF200AABDE6 /* Project object */ = { 242 | isa = PBXProject; 243 | attributes = { 244 | LastUpgradeCheck = 0920; 245 | ORGANIZATIONNAME = idwyane; 246 | TargetAttributes = { 247 | 790E920521394FF200AABDE6 = { 248 | CreatedOnToolsVersion = 9.2; 249 | ProvisioningStyle = Automatic; 250 | }; 251 | 790E921D21394FF200AABDE6 = { 252 | CreatedOnToolsVersion = 9.2; 253 | ProvisioningStyle = Automatic; 254 | TestTargetID = 790E920521394FF200AABDE6; 255 | }; 256 | 790E922821394FF200AABDE6 = { 257 | CreatedOnToolsVersion = 9.2; 258 | ProvisioningStyle = Automatic; 259 | TestTargetID = 790E920521394FF200AABDE6; 260 | }; 261 | }; 262 | }; 263 | buildConfigurationList = 790E920121394FF200AABDE6 /* Build configuration list for PBXProject "DWIntrosPage" */; 264 | compatibilityVersion = "Xcode 8.0"; 265 | developmentRegion = en; 266 | hasScannedForEncodings = 0; 267 | knownRegions = ( 268 | en, 269 | Base, 270 | ); 271 | mainGroup = 790E91FD21394FF200AABDE6; 272 | productRefGroup = 790E920721394FF200AABDE6 /* Products */; 273 | projectDirPath = ""; 274 | projectRoot = ""; 275 | targets = ( 276 | 790E920521394FF200AABDE6 /* DWIntrosPage */, 277 | 790E921D21394FF200AABDE6 /* DWIntrosPageTests */, 278 | 790E922821394FF200AABDE6 /* DWIntrosPageUITests */, 279 | ); 280 | }; 281 | /* End PBXProject section */ 282 | 283 | /* Begin PBXResourcesBuildPhase section */ 284 | 790E920421394FF200AABDE6 /* Resources */ = { 285 | isa = PBXResourcesBuildPhase; 286 | buildActionMask = 2147483647; 287 | files = ( 288 | 79DA91882148FCE40027C015 /* 01.jpg in Resources */, 289 | 79DA917E2148FCE40027C015 /* 03.jpg in Resources */, 290 | 79DA91892148FCE40027C015 /* Assets.xcassets in Resources */, 291 | 79DA91852148FCE40027C015 /* gif05.gif in Resources */, 292 | 79DA91822148FCE40027C015 /* gif02.gif in Resources */, 293 | 79DA917F2148FCE40027C015 /* 02.jpg in Resources */, 294 | 79DA9191214911B40027C015 /* introsPage.gif in Resources */, 295 | 79DA917C2148FCE40027C015 /* Info.plist in Resources */, 296 | 79DA91802148FCE40027C015 /* 02.jpg in Resources */, 297 | 79DA91812148FCE40027C015 /* gif01.gif in Resources */, 298 | 79DA918F214910C90027C015 /* timg.jpeg in Resources */, 299 | 79DA918A2148FCE40027C015 /* LaunchScreen.storyboard in Resources */, 300 | 79DA91832148FCE40027C015 /* gif03.gif in Resources */, 301 | 79DA91842148FCE40027C015 /* gif04.gif in Resources */, 302 | ); 303 | runOnlyForDeploymentPostprocessing = 0; 304 | }; 305 | 790E921C21394FF200AABDE6 /* Resources */ = { 306 | isa = PBXResourcesBuildPhase; 307 | buildActionMask = 2147483647; 308 | files = ( 309 | ); 310 | runOnlyForDeploymentPostprocessing = 0; 311 | }; 312 | 790E922721394FF200AABDE6 /* Resources */ = { 313 | isa = PBXResourcesBuildPhase; 314 | buildActionMask = 2147483647; 315 | files = ( 316 | ); 317 | runOnlyForDeploymentPostprocessing = 0; 318 | }; 319 | /* End PBXResourcesBuildPhase section */ 320 | 321 | /* Begin PBXSourcesBuildPhase section */ 322 | 790E920221394FF200AABDE6 /* Sources */ = { 323 | isa = PBXSourcesBuildPhase; 324 | buildActionMask = 2147483647; 325 | files = ( 326 | 79DA91862148FCE40027C015 /* AppDelegate.m in Sources */, 327 | 79DA918B2148FCE40027C015 /* AppDelegate+DWIntrosPage.m in Sources */, 328 | 79DA91352147EFA50027C015 /* DWIntrosPageContentViewController.m in Sources */, 329 | 79DA917D2148FCE40027C015 /* main.m in Sources */, 330 | 79DA91872148FCE40027C015 /* HomeViewController.m in Sources */, 331 | 79DA91362147EFA50027C015 /* DWIntrosPagesViewController.m in Sources */, 332 | ); 333 | runOnlyForDeploymentPostprocessing = 0; 334 | }; 335 | 790E921A21394FF200AABDE6 /* Sources */ = { 336 | isa = PBXSourcesBuildPhase; 337 | buildActionMask = 2147483647; 338 | files = ( 339 | ); 340 | runOnlyForDeploymentPostprocessing = 0; 341 | }; 342 | 790E922521394FF200AABDE6 /* Sources */ = { 343 | isa = PBXSourcesBuildPhase; 344 | buildActionMask = 2147483647; 345 | files = ( 346 | ); 347 | runOnlyForDeploymentPostprocessing = 0; 348 | }; 349 | /* End PBXSourcesBuildPhase section */ 350 | 351 | /* Begin PBXTargetDependency section */ 352 | 790E922021394FF200AABDE6 /* PBXTargetDependency */ = { 353 | isa = PBXTargetDependency; 354 | target = 790E920521394FF200AABDE6 /* DWIntrosPage */; 355 | targetProxy = 790E921F21394FF200AABDE6 /* PBXContainerItemProxy */; 356 | }; 357 | 790E922B21394FF200AABDE6 /* PBXTargetDependency */ = { 358 | isa = PBXTargetDependency; 359 | target = 790E920521394FF200AABDE6 /* DWIntrosPage */; 360 | targetProxy = 790E922A21394FF200AABDE6 /* PBXContainerItemProxy */; 361 | }; 362 | /* End PBXTargetDependency section */ 363 | 364 | /* Begin PBXVariantGroup section */ 365 | 79DA91782148FCE30027C015 /* LaunchScreen.storyboard */ = { 366 | isa = PBXVariantGroup; 367 | children = ( 368 | 79DA91792148FCE30027C015 /* Base */, 369 | ); 370 | name = LaunchScreen.storyboard; 371 | sourceTree = ""; 372 | }; 373 | /* End PBXVariantGroup section */ 374 | 375 | /* Begin XCBuildConfiguration section */ 376 | 790E923021394FF200AABDE6 /* Debug */ = { 377 | isa = XCBuildConfiguration; 378 | buildSettings = { 379 | ALWAYS_SEARCH_USER_PATHS = NO; 380 | CLANG_ANALYZER_NONNULL = YES; 381 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 382 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 383 | CLANG_CXX_LIBRARY = "libc++"; 384 | CLANG_ENABLE_MODULES = YES; 385 | CLANG_ENABLE_OBJC_ARC = YES; 386 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 387 | CLANG_WARN_BOOL_CONVERSION = YES; 388 | CLANG_WARN_COMMA = YES; 389 | CLANG_WARN_CONSTANT_CONVERSION = YES; 390 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 391 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 392 | CLANG_WARN_EMPTY_BODY = YES; 393 | CLANG_WARN_ENUM_CONVERSION = YES; 394 | CLANG_WARN_INFINITE_RECURSION = YES; 395 | CLANG_WARN_INT_CONVERSION = YES; 396 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 397 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 398 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 399 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 400 | CLANG_WARN_STRICT_PROTOTYPES = YES; 401 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 402 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 403 | CLANG_WARN_UNREACHABLE_CODE = YES; 404 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 405 | CODE_SIGN_IDENTITY = "iPhone Developer"; 406 | COPY_PHASE_STRIP = NO; 407 | DEBUG_INFORMATION_FORMAT = dwarf; 408 | ENABLE_STRICT_OBJC_MSGSEND = YES; 409 | ENABLE_TESTABILITY = YES; 410 | GCC_C_LANGUAGE_STANDARD = gnu11; 411 | GCC_DYNAMIC_NO_PIC = NO; 412 | GCC_NO_COMMON_BLOCKS = YES; 413 | GCC_OPTIMIZATION_LEVEL = 0; 414 | GCC_PREPROCESSOR_DEFINITIONS = ( 415 | "DEBUG=1", 416 | "$(inherited)", 417 | ); 418 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 419 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 420 | GCC_WARN_UNDECLARED_SELECTOR = YES; 421 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 422 | GCC_WARN_UNUSED_FUNCTION = YES; 423 | GCC_WARN_UNUSED_VARIABLE = YES; 424 | IPHONEOS_DEPLOYMENT_TARGET = 11.2; 425 | MTL_ENABLE_DEBUG_INFO = YES; 426 | ONLY_ACTIVE_ARCH = YES; 427 | SDKROOT = iphoneos; 428 | }; 429 | name = Debug; 430 | }; 431 | 790E923121394FF200AABDE6 /* Release */ = { 432 | isa = XCBuildConfiguration; 433 | buildSettings = { 434 | ALWAYS_SEARCH_USER_PATHS = NO; 435 | CLANG_ANALYZER_NONNULL = YES; 436 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 437 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 438 | CLANG_CXX_LIBRARY = "libc++"; 439 | CLANG_ENABLE_MODULES = YES; 440 | CLANG_ENABLE_OBJC_ARC = YES; 441 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 442 | CLANG_WARN_BOOL_CONVERSION = YES; 443 | CLANG_WARN_COMMA = YES; 444 | CLANG_WARN_CONSTANT_CONVERSION = YES; 445 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 446 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 447 | CLANG_WARN_EMPTY_BODY = YES; 448 | CLANG_WARN_ENUM_CONVERSION = YES; 449 | CLANG_WARN_INFINITE_RECURSION = YES; 450 | CLANG_WARN_INT_CONVERSION = YES; 451 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 452 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 453 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 454 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 455 | CLANG_WARN_STRICT_PROTOTYPES = YES; 456 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 457 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 458 | CLANG_WARN_UNREACHABLE_CODE = YES; 459 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 460 | CODE_SIGN_IDENTITY = "iPhone Developer"; 461 | COPY_PHASE_STRIP = NO; 462 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 463 | ENABLE_NS_ASSERTIONS = NO; 464 | ENABLE_STRICT_OBJC_MSGSEND = YES; 465 | GCC_C_LANGUAGE_STANDARD = gnu11; 466 | GCC_NO_COMMON_BLOCKS = YES; 467 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 468 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 469 | GCC_WARN_UNDECLARED_SELECTOR = YES; 470 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 471 | GCC_WARN_UNUSED_FUNCTION = YES; 472 | GCC_WARN_UNUSED_VARIABLE = YES; 473 | IPHONEOS_DEPLOYMENT_TARGET = 11.2; 474 | MTL_ENABLE_DEBUG_INFO = NO; 475 | SDKROOT = iphoneos; 476 | VALIDATE_PRODUCT = YES; 477 | }; 478 | name = Release; 479 | }; 480 | 790E923321394FF200AABDE6 /* Debug */ = { 481 | isa = XCBuildConfiguration; 482 | buildSettings = { 483 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 484 | CODE_SIGN_STYLE = Automatic; 485 | DEVELOPMENT_TEAM = 8R688SKXVS; 486 | INFOPLIST_FILE = DWIntrosPage/Info.plist; 487 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 488 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 489 | PRODUCT_BUNDLE_IDENTIFIER = com.idwyane.www.DWIntrosPage; 490 | PRODUCT_NAME = "$(TARGET_NAME)"; 491 | TARGETED_DEVICE_FAMILY = "1,2"; 492 | }; 493 | name = Debug; 494 | }; 495 | 790E923421394FF200AABDE6 /* Release */ = { 496 | isa = XCBuildConfiguration; 497 | buildSettings = { 498 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 499 | CODE_SIGN_STYLE = Automatic; 500 | DEVELOPMENT_TEAM = 8R688SKXVS; 501 | INFOPLIST_FILE = DWIntrosPage/Info.plist; 502 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 503 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 504 | PRODUCT_BUNDLE_IDENTIFIER = com.idwyane.www.DWIntrosPage; 505 | PRODUCT_NAME = "$(TARGET_NAME)"; 506 | TARGETED_DEVICE_FAMILY = "1,2"; 507 | }; 508 | name = Release; 509 | }; 510 | 790E923621394FF200AABDE6 /* Debug */ = { 511 | isa = XCBuildConfiguration; 512 | buildSettings = { 513 | BUNDLE_LOADER = "$(TEST_HOST)"; 514 | CODE_SIGN_STYLE = Automatic; 515 | INFOPLIST_FILE = DWGuidePageTests/Info.plist; 516 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 517 | PRODUCT_BUNDLE_IDENTIFIER = com.idwyane.www.DWGuidePageTests; 518 | PRODUCT_NAME = "$(TARGET_NAME)"; 519 | TARGETED_DEVICE_FAMILY = "1,2"; 520 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/DWIntrosPage.app/DWIntrosPage"; 521 | }; 522 | name = Debug; 523 | }; 524 | 790E923721394FF200AABDE6 /* Release */ = { 525 | isa = XCBuildConfiguration; 526 | buildSettings = { 527 | BUNDLE_LOADER = "$(TEST_HOST)"; 528 | CODE_SIGN_STYLE = Automatic; 529 | INFOPLIST_FILE = DWGuidePageTests/Info.plist; 530 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 531 | PRODUCT_BUNDLE_IDENTIFIER = com.idwyane.www.DWGuidePageTests; 532 | PRODUCT_NAME = "$(TARGET_NAME)"; 533 | TARGETED_DEVICE_FAMILY = "1,2"; 534 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/DWIntrosPage.app/DWIntrosPage"; 535 | }; 536 | name = Release; 537 | }; 538 | 790E923921394FF200AABDE6 /* Debug */ = { 539 | isa = XCBuildConfiguration; 540 | buildSettings = { 541 | CODE_SIGN_STYLE = Automatic; 542 | INFOPLIST_FILE = DWGuidePageUITests/Info.plist; 543 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 544 | PRODUCT_BUNDLE_IDENTIFIER = com.idwyane.www.DWGuidePageUITests; 545 | PRODUCT_NAME = "$(TARGET_NAME)"; 546 | TARGETED_DEVICE_FAMILY = "1,2"; 547 | TEST_TARGET_NAME = DWGuidePage; 548 | }; 549 | name = Debug; 550 | }; 551 | 790E923A21394FF200AABDE6 /* Release */ = { 552 | isa = XCBuildConfiguration; 553 | buildSettings = { 554 | CODE_SIGN_STYLE = Automatic; 555 | INFOPLIST_FILE = DWGuidePageUITests/Info.plist; 556 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 557 | PRODUCT_BUNDLE_IDENTIFIER = com.idwyane.www.DWGuidePageUITests; 558 | PRODUCT_NAME = "$(TARGET_NAME)"; 559 | TARGETED_DEVICE_FAMILY = "1,2"; 560 | TEST_TARGET_NAME = DWGuidePage; 561 | }; 562 | name = Release; 563 | }; 564 | /* End XCBuildConfiguration section */ 565 | 566 | /* Begin XCConfigurationList section */ 567 | 790E920121394FF200AABDE6 /* Build configuration list for PBXProject "DWIntrosPage" */ = { 568 | isa = XCConfigurationList; 569 | buildConfigurations = ( 570 | 790E923021394FF200AABDE6 /* Debug */, 571 | 790E923121394FF200AABDE6 /* Release */, 572 | ); 573 | defaultConfigurationIsVisible = 0; 574 | defaultConfigurationName = Release; 575 | }; 576 | 790E923221394FF200AABDE6 /* Build configuration list for PBXNativeTarget "DWIntrosPage" */ = { 577 | isa = XCConfigurationList; 578 | buildConfigurations = ( 579 | 790E923321394FF200AABDE6 /* Debug */, 580 | 790E923421394FF200AABDE6 /* Release */, 581 | ); 582 | defaultConfigurationIsVisible = 0; 583 | defaultConfigurationName = Release; 584 | }; 585 | 790E923521394FF200AABDE6 /* Build configuration list for PBXNativeTarget "DWIntrosPageTests" */ = { 586 | isa = XCConfigurationList; 587 | buildConfigurations = ( 588 | 790E923621394FF200AABDE6 /* Debug */, 589 | 790E923721394FF200AABDE6 /* Release */, 590 | ); 591 | defaultConfigurationIsVisible = 0; 592 | defaultConfigurationName = Release; 593 | }; 594 | 790E923821394FF200AABDE6 /* Build configuration list for PBXNativeTarget "DWIntrosPageUITests" */ = { 595 | isa = XCConfigurationList; 596 | buildConfigurations = ( 597 | 790E923921394FF200AABDE6 /* Debug */, 598 | 790E923A21394FF200AABDE6 /* Release */, 599 | ); 600 | defaultConfigurationIsVisible = 0; 601 | defaultConfigurationName = Release; 602 | }; 603 | /* End XCConfigurationList section */ 604 | }; 605 | rootObject = 790E91FE21394FF200AABDE6 /* Project object */; 606 | } 607 | -------------------------------------------------------------------------------- /Example/DWIntrosPage.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/DWIntrosPage/02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iDwyane/DWIntrosPage/5da615a436dfd9dc66b9733576fd5ef252dfe1f4/Example/DWIntrosPage/02.jpg -------------------------------------------------------------------------------- /Example/DWIntrosPage/AppDelegate+DWIntrosPage.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate+DWIntrosPage.h 3 | // DWIntrosPage 4 | // 5 | // Created by Dwyane on 2018/9/11. 6 | // Copyright © 2018年 idwyane. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate (DWIntrosPage) 12 | - (UIViewController *)setupDynamicVC; 13 | - (UIViewController *)setupStaticVC; 14 | - (void)setupHomeVC; 15 | @end 16 | -------------------------------------------------------------------------------- /Example/DWIntrosPage/AppDelegate+DWIntrosPage.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate+DWIntrosPage.m 3 | // DWIntrosPage 4 | // 5 | // Created by Dwyane on 2018/9/11. 6 | // Copyright © 2018年 idwyane. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate+DWIntrosPage.h" 10 | #import "DWIntrosPageContentViewController.h" 11 | #import "DWIntrosPagesViewController.h" 12 | #import "HomeViewController.h" 13 | 14 | @implementation AppDelegate (DWIntrosPage) 15 | 16 | - (UIViewController *)setupDynamicVC { 17 | 18 | DWIntrosPageContentViewController *page1 = [DWIntrosPageContentViewController introsPageWithBackgroundImageWithName:@"gif01"]; 19 | DWIntrosPageContentViewController *page2 = [DWIntrosPageContentViewController introsPageWithBackgroundImageWithName:@"gif02"]; 20 | DWIntrosPageContentViewController *page3 = [DWIntrosPageContentViewController introsPageWithBackgroundImageWithName:@"gif03"]; 21 | DWIntrosPagesViewController *introsPage = [DWIntrosPagesViewController dwIntrosPagesWithPageArray:@[page1, page2, page3]]; 22 | // introsPage.showPageControl = YES; //show the pageControl 23 | // introsPage.canSkip = YES; // show the skipButton 24 | // introsPage.skipButton.backgroundColor = [UIColor redColor]; //setup the skipButton 25 | __weak typeof(self) weakSelf = self; 26 | introsPage.skipButtonClickedBlock = ^{ 27 | NSLog(@"clicked skip button"); 28 | [weakSelf setupHomeVC]; 29 | }; 30 | return introsPage; 31 | 32 | } 33 | 34 | - (UIViewController *)setupStaticVC { 35 | DWIntrosPageContentViewController *page1 = [DWIntrosPageContentViewController introsPageWithBackgroundImage:[UIImage imageNamed:@"01"]]; 36 | DWIntrosPageContentViewController *page2 = [DWIntrosPageContentViewController introsPageWithBackgroundImageWithName:@"02.jpg"]; 37 | DWIntrosPageContentViewController *page3 = [DWIntrosPageContentViewController introsPageWithBackgroundImageWithName:@"03"]; 38 | DWIntrosPageContentViewController *page4 = [DWIntrosPageContentViewController introsPageWithBackgroundImageWithName:@"01"]; 39 | DWIntrosPagesViewController *introsPage = [DWIntrosPagesViewController dwIntrosPagesWithPageArray:@[page1, page2, page3, page4]]; 40 | // introsPage.showPageControl = YES; //show the pageControl 41 | // introsPage.canSkip = YES; // show the skipButton 42 | // introsPage.skipButton.backgroundColor = [UIColor redColor]; //setup the skipButton 43 | __weak typeof(self) weakSelf = self; 44 | introsPage.skipButtonClickedBlock = ^{ 45 | NSLog(@"clicked skip button"); 46 | [weakSelf setupHomeVC]; 47 | }; 48 | return introsPage; 49 | } 50 | 51 | - (void)setupHomeVC { 52 | HomeViewController *homeVC = [HomeViewController new]; 53 | homeVC.title = @"DWIntrosPage"; 54 | homeVC.view.backgroundColor = [UIColor lightGrayColor]; 55 | self.window.rootViewController = [[UINavigationController alloc] initWithRootViewController:homeVC]; 56 | } 57 | 58 | @end 59 | -------------------------------------------------------------------------------- /Example/DWIntrosPage/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // DWIntrosPage 4 | // 5 | // Created by Dwyane on 2018/8/31. 6 | // Copyright © 2018年 idwyane. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /Example/DWIntrosPage/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // DWIntrosPage 4 | // 5 | // Created by Dwyane on 2018/8/31. 6 | // Copyright © 2018年 idwyane. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | #import "AppDelegate+DWIntrosPage.h" 11 | 12 | @interface AppDelegate () 13 | 14 | @end 15 | 16 | @implementation AppDelegate 17 | 18 | 19 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 20 | 21 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 22 | self.window.backgroundColor = [UIColor whiteColor]; 23 | self.window.rootViewController = [self setupDynamicVC]; // 动态图片 24 | // self.window.rootViewController = [self setupStaticVC]; // 静态图片 25 | [self.window makeKeyAndVisible]; 26 | return YES; 27 | } 28 | 29 | 30 | 31 | - (void)applicationWillResignActive:(UIApplication *)application { 32 | // 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. 33 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 34 | } 35 | 36 | 37 | - (void)applicationDidEnterBackground:(UIApplication *)application { 38 | // 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. 39 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 40 | } 41 | 42 | 43 | - (void)applicationWillEnterForeground:(UIApplication *)application { 44 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 45 | } 46 | 47 | 48 | - (void)applicationDidBecomeActive:(UIApplication *)application { 49 | // 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. 50 | } 51 | 52 | 53 | - (void)applicationWillTerminate:(UIApplication *)application { 54 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 55 | } 56 | 57 | 58 | @end 59 | -------------------------------------------------------------------------------- /Example/DWIntrosPage/Assets.xcassets/01.imageset/01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iDwyane/DWIntrosPage/5da615a436dfd9dc66b9733576fd5ef252dfe1f4/Example/DWIntrosPage/Assets.xcassets/01.imageset/01.jpg -------------------------------------------------------------------------------- /Example/DWIntrosPage/Assets.xcassets/01.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "01.jpg", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/DWIntrosPage/Assets.xcassets/03.imageset/03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iDwyane/DWIntrosPage/5da615a436dfd9dc66b9733576fd5ef252dfe1f4/Example/DWIntrosPage/Assets.xcassets/03.imageset/03.jpg -------------------------------------------------------------------------------- /Example/DWIntrosPage/Assets.xcassets/03.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "03.jpg", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/DWIntrosPage/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /Example/DWIntrosPage/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Example/DWIntrosPage/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Example/DWIntrosPage/HomeViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // HomeViewController.h 3 | // DWIntrosPage 4 | // 5 | // Created by Dwyane on 2018/8/31. 6 | // Copyright © 2018年 idwyane. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface HomeViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /Example/DWIntrosPage/HomeViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // HomeViewController.m 3 | // DWIntrosPage 4 | // 5 | // Created by Dwyane on 2018/8/31. 6 | // Copyright © 2018年 idwyane. All rights reserved. 7 | // 8 | 9 | #import "HomeViewController.h" 10 | 11 | @interface HomeViewController () 12 | 13 | @end 14 | 15 | @implementation HomeViewController 16 | 17 | - (void)viewDidLoad { 18 | [super viewDidLoad]; 19 | UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"timg.jpeg"]]; 20 | imageView.frame = self.view.bounds; 21 | imageView.contentMode = UIViewContentModeScaleAspectFit; 22 | [self.view addSubview:imageView]; 23 | } 24 | 25 | 26 | - (void)didReceiveMemoryWarning { 27 | [super didReceiveMemoryWarning]; 28 | // Dispose of any resources that can be recreated. 29 | } 30 | 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /Example/DWIntrosPage/Images/01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iDwyane/DWIntrosPage/5da615a436dfd9dc66b9733576fd5ef252dfe1f4/Example/DWIntrosPage/Images/01.jpg -------------------------------------------------------------------------------- /Example/DWIntrosPage/Images/02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iDwyane/DWIntrosPage/5da615a436dfd9dc66b9733576fd5ef252dfe1f4/Example/DWIntrosPage/Images/02.jpg -------------------------------------------------------------------------------- /Example/DWIntrosPage/Images/03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iDwyane/DWIntrosPage/5da615a436dfd9dc66b9733576fd5ef252dfe1f4/Example/DWIntrosPage/Images/03.jpg -------------------------------------------------------------------------------- /Example/DWIntrosPage/Images/gif01.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iDwyane/DWIntrosPage/5da615a436dfd9dc66b9733576fd5ef252dfe1f4/Example/DWIntrosPage/Images/gif01.gif -------------------------------------------------------------------------------- /Example/DWIntrosPage/Images/gif02.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iDwyane/DWIntrosPage/5da615a436dfd9dc66b9733576fd5ef252dfe1f4/Example/DWIntrosPage/Images/gif02.gif -------------------------------------------------------------------------------- /Example/DWIntrosPage/Images/gif03.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iDwyane/DWIntrosPage/5da615a436dfd9dc66b9733576fd5ef252dfe1f4/Example/DWIntrosPage/Images/gif03.gif -------------------------------------------------------------------------------- /Example/DWIntrosPage/Images/gif04.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iDwyane/DWIntrosPage/5da615a436dfd9dc66b9733576fd5ef252dfe1f4/Example/DWIntrosPage/Images/gif04.gif -------------------------------------------------------------------------------- /Example/DWIntrosPage/Images/gif05.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iDwyane/DWIntrosPage/5da615a436dfd9dc66b9733576fd5ef252dfe1f4/Example/DWIntrosPage/Images/gif05.gif -------------------------------------------------------------------------------- /Example/DWIntrosPage/Images/introsPage.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iDwyane/DWIntrosPage/5da615a436dfd9dc66b9733576fd5ef252dfe1f4/Example/DWIntrosPage/Images/introsPage.gif -------------------------------------------------------------------------------- /Example/DWIntrosPage/Images/timg.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iDwyane/DWIntrosPage/5da615a436dfd9dc66b9733576fd5ef252dfe1f4/Example/DWIntrosPage/Images/timg.jpeg -------------------------------------------------------------------------------- /Example/DWIntrosPage/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIRequiredDeviceCapabilities 26 | 27 | armv7 28 | 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /Example/DWIntrosPage/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // DWIntrosPage 4 | // 5 | // Created by Dwyane on 2018/8/31. 6 | // Copyright © 2018年 idwyane. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 iwade 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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | # DWIntrosPage 3 | [![Travis](https://img.shields.io/badge/pod-v1.0.1-blue.svg)](https://www.jianshu.com/u/bb2db3428fff) 4 | [![Travis](https://img.shields.io/badge/platform-iOS-red.svg)](https://developer.apple.com/) 5 | [![Travis](https://img.shields.io/badge/简书-DWyane_Coding-green.svg)](https://www.jianshu.com/u/bb2db3428fff) 6 | [![Travis](https://img.shields.io/badge/license-mit-orange.svg)](https://doge.mit-license.org/) 7 | 8 | ![Image text](https://github.com/iDwyane/DWIntrosPage/blob/master/Example/DWIntrosPage/Images/gif01.gif) 9 | ![Image text](https://github.com/iDwyane/DWIntrosPage/blob/master/Example/DWIntrosPage/Images/gif02.gif) 10 | ![Image text](https://github.com/iDwyane/DWIntrosPage/blob/master/Example/DWIntrosPage/Images/gif03.gif) 11 | ![Image text](https://github.com/iDwyane/DWIntrosPage/blob/master/Example/DWIntrosPage/Images/introsPage.gif) 12 | ### Introduce(项目介绍) 13 | **An iOS framework to easily create a beautiful and powerful intros page with only a few lines of code.** 14 | >* DWIntrosPage supports both static and dynamic images with only low memory. 15 | >* DWIntrosPage Support for gradient switching and high customization. 16 | >* And then we're going to support video. 17 | Thank you for attention 18 | 19 | 20 | ### Usage(使用) 21 | ``` 22 | DWIntrosPageContentViewController *page1 = [DWIntrosPageContentViewController introsPageWithBackgroundImageWithName:@"gif01"]; 23 | DWIntrosPageContentViewController *page2 = [DWIntrosPageContentViewController introsPageWithBackgroundImageWithName:@"gif02"]; 24 | DWIntrosPageContentViewController *page3 = [DWIntrosPageContentViewController introsPageWithBackgroundImageWithName:@"gif03"]; 25 | DWIntrosPagesViewController *introsPage = [DWIntrosPagesViewController dwIntrosPagesWithPageArray:@[page1, page2, page3]]; 26 | // introsPage.showPageControl = YES; //show the pageControl 27 | // introsPage.canSkip = YES; // show the skipButton 28 | // introsPage.skipButton.backgroundColor = [UIColor redColor]; //setup the skipButton 29 | __weak typeof(self) weakSelf = self; 30 | introsPage.skipButtonClickedBlock = ^{ 31 | NSLog(@"clicked skip button"); 32 | [weakSelf setupHomeVC]; 33 | }; 34 | ``` 35 | 36 | 37 | ### Installation(安装教程) 38 | 39 | DWIntrosPage is available through CocoaPods. To install it, simply add the following line to your Podfile: 40 | ``` 41 | pod 'DWIntrosPage' 42 | ``` 43 | also supports the method for installing the library in a project. 44 | 45 | 46 | 47 | ### Community 48 | Questions, comments, issues, and pull requests welcomed!! 49 | 50 | ### Author 51 | Dwyane 52 | -------------------------------------------------------------------------------- /Source/DWIntrosPageContentViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // DWIntrosPageContentViewController.m 3 | // DWIntrosPage 4 | // 5 | // Created by Dwyane on 2018/8/31. 6 | // Copyright © 2018年 idwyane. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class DWIntrosPageContentViewController; 12 | @class DWIntrosPagesViewController; 13 | @protocol IntrosPageContentDelegate 14 | @optional 15 | - (void)setCurrentPage:(DWIntrosPageContentViewController *)currentPage; 16 | - (void)setNextPage:(DWIntrosPageContentViewController *)nextPage; 17 | @end 18 | 19 | @interface DWIntrosPageContentViewController : UIViewController 20 | 21 | @property (nonatomic, weak) DWIntrosPagesViewController *delegate; 22 | 23 | + (instancetype)introsPageWithBackgroundImage:(UIImage *)bgimage; 24 | 25 | + (instancetype)introsPageWithBackgroundImageWithName:(NSString *)imgName; 26 | 27 | - (instancetype)initWithBackgroundGIFWithData:(NSData *)gifData; 28 | - (instancetype)initWithBackgroundNormalImageWithData:(NSData *)data; 29 | /** Update the alpha. */ 30 | - (void)updateAlpha:(CGFloat)alpha; 31 | @end 32 | -------------------------------------------------------------------------------- /Source/DWIntrosPageContentViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // DWIntrosPageContentViewController.m 3 | // DWIntrosPage 4 | // 5 | // Created by Dwyane on 2018/8/31. 6 | // Copyright © 2018年 idwyane. All rights reserved. 7 | // 8 | 9 | #import "DWIntrosPageContentViewController.h" 10 | #import "DWIntrosPagesViewController.h" 11 | 12 | // 移位:eg:1< 0 ? @[ext] : @[@"", @"png", @"jpeg", @"jpg", @"gif", @"webp", @"apng"]; 141 | for (NSString *e in exts) { 142 | path = [[NSBundle mainBundle] pathForResource:res ofType:e]; 143 | if (path) break; 144 | } 145 | NSData *data = [NSData dataWithContentsOfFile:path]; 146 | if (data.length == 0) return nil; 147 | return data; 148 | 149 | } 150 | 151 | 152 | @end 153 | -------------------------------------------------------------------------------- /Source/DWIntrosPagesViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // DWIntrosPageContentViewController.h 3 | // DWIntrosPage 4 | // 5 | // Created by Dwyane on 2018/9/3. 6 | // Copyright © 2018年 idwyane. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "DWIntrosPageContentViewController.h" 11 | 12 | typedef void(^SkipButtonClickedBlock)(void); 13 | @interface DWIntrosPagesViewController : UIViewController 14 | 15 | @property (nonatomic, strong) NSArray *viewControllers; 16 | 17 | @property (nonatomic, strong) UIPageControl *pageControl; 18 | 19 | @property (nonatomic, strong) UIPageViewController *pageVC; 20 | 21 | /** Clicked the the skipButton, the intros page will disappear. */ 22 | @property (nonatomic, strong) UIButton *skipButton; 23 | 24 | /** If the canSkip is YES, add the skipButton to superview. */ 25 | @property (nonatomic, assign) BOOL canSkip; 26 | 27 | /** If the showPageControl is YES, add the skipButton to superview. */ 28 | @property (nonatomic, assign) BOOL showPageControl; 29 | 30 | /** Move right on the last page to make the pages disappear. */ 31 | @property (nonatomic, assign) BOOL disappearWhileMoveRihgt; 32 | 33 | /** The block about skip button */ 34 | @property (nonatomic, copy) SkipButtonClickedBlock skipButtonClickedBlock; 35 | 36 | /** Create the pages with each page content view controller. */ 37 | + (instancetype)dwIntrosPagesWithPageArray:(NSArray *)pageArray; 38 | @end 39 | -------------------------------------------------------------------------------- /Source/DWIntrosPagesViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // DWIntrosPagesViewController.m 3 | // DWIntrosPage 4 | // 5 | // Created by Dwyane on 2018/9/3. 6 | // Copyright © 2018年 idwyane. All rights reserved. 7 | // 8 | 9 | #import "DWIntrosPagesViewController.h" 10 | 11 | static CGFloat const kPageControlHeight = 35; 12 | static CGFloat const kSkipButtonWidth = 100; 13 | static CGFloat const kSkipButtonHeight = 35; 14 | 15 | 16 | @interface DWIntrosPagesViewController () 17 | @property (nonatomic, strong) NSMutableArray *dataSource; 18 | 19 | @property (nonatomic, assign) CGFloat historyX; 20 | 21 | @property (nonatomic, strong) DWIntrosPageContentViewController *currentPage; 22 | @property (nonatomic, strong) DWIntrosPageContentViewController *nextPage; 23 | /** block has called */ 24 | @property (nonatomic, assign) BOOL calledBlock; 25 | @end 26 | 27 | @implementation DWIntrosPagesViewController 28 | 29 | //Lazy method. 30 | - (NSMutableArray *)dataSource { 31 | if (!_dataSource) { 32 | _dataSource = [NSMutableArray new]; 33 | } 34 | return _dataSource; 35 | } 36 | 37 | - (void)viewDidLoad { 38 | [super viewDidLoad]; 39 | 40 | [self setupView]; 41 | } 42 | 43 | + (instancetype)dwIntrosPagesWithPageArray:(NSArray *)pageArray { 44 | return [[self alloc] initWithPageArray:pageArray]; 45 | } 46 | 47 | - (instancetype)initWithPageArray:(NSArray *)pageArray { 48 | self.viewControllers = pageArray; 49 | 50 | //create pageControl 51 | self.pageControl = [UIPageControl new]; 52 | self.pageControl.numberOfPages = self.viewControllers.count; 53 | self.pageControl.userInteractionEnabled = NO; 54 | 55 | //create skipButton(跳过) 56 | self.skipButton = [UIButton new]; 57 | [self.skipButton setTitleColor:[UIColor lightGrayColor] forState:UIControlStateNormal]; 58 | [self.skipButton setTitle:@"Skip" forState:UIControlStateNormal]; 59 | [self.skipButton addTarget:self action:@selector(skipButtonCliked) forControlEvents:UIControlEventTouchUpInside]; 60 | self.skipButton.titleLabel.adjustsFontSizeToFitWidth = YES; 61 | self.skipButton.hidden = YES; 62 | return self; 63 | } 64 | 65 | - (void)setupView { 66 | 67 | _pageVC = [[UIPageViewController alloc] initWithTransitionStyle:UIPageViewControllerTransitionStyleScroll navigationOrientation:UIPageViewControllerNavigationOrientationHorizontal options:nil]; 68 | _pageVC.delegate = self; 69 | _pageVC.dataSource = self; 70 | [_pageVC didMoveToParentViewController:self]; 71 | 72 | // Add the pageVC and it's view. 73 | [self addChildViewController:_pageVC]; 74 | [self.view addSubview:_pageVC.view]; 75 | 76 | [self.view addSubview:self.skipButton]; 77 | if (_canSkip) { 78 | self.skipButton.hidden = NO; 79 | } 80 | 81 | if (_showPageControl) { 82 | // Add the pageControl dots. 83 | [self.view addSubview:_pageControl]; 84 | } 85 | 86 | for (UIView *view in self.pageVC.view.subviews) { 87 | if ([view isKindOfClass:[UIScrollView class]]) { 88 | [(UIScrollView *)view setDelegate:self]; 89 | } 90 | } 91 | 92 | for (UIViewController *vc in self.viewControllers) { 93 | if ([vc isKindOfClass:[DWIntrosPageContentViewController class]]) { 94 | DWIntrosPageContentViewController *contentVC = (DWIntrosPageContentViewController *)vc; 95 | contentVC.delegate = self; 96 | } 97 | } 98 | } 99 | 100 | - (void)viewWillLayoutSubviews { 101 | [super viewWillLayoutSubviews]; 102 | CGFloat safedUnderPageControlPadding = 40; 103 | if (@available(iOS 11.0, *)) { 104 | safedUnderPageControlPadding += [self.view safeAreaInsets].bottom; 105 | } 106 | 107 | if (self.viewControllers.count < 1) { 108 | @throw [NSException exceptionWithName:@"views.count" 109 | reason:@"Must have one childViewController at least" 110 | userInfo:nil]; 111 | } 112 | [self.dataSource addObjectsFromArray:self.viewControllers]; 113 | 114 | _currentPage = [self.viewControllers firstObject]; 115 | // Set visible view controllers. 116 | [_pageVC setViewControllers:@[_currentPage] direction:UIPageViewControllerNavigationDirectionForward animated:YES completion:nil]; 117 | self.skipButton.frame = CGRectMake(CGRectGetMaxX(self.view.frame) - kSkipButtonWidth, CGRectGetMaxY(self.view.frame) - safedUnderPageControlPadding - kSkipButtonHeight, kSkipButtonWidth, kSkipButtonHeight); 118 | self.pageControl.frame = CGRectMake(0, CGRectGetMaxY(self.view.frame) - safedUnderPageControlPadding - kPageControlHeight, self.view.frame.size.width, kPageControlHeight); 119 | } 120 | 121 | #pragma mark ------ UIPageViewControllerDelegate && DataSource ------ 122 | - (UIViewController *)pageViewController:(UIPageViewController *)pageViewController viewControllerBeforeViewController:(UIViewController *)viewController { 123 | 124 | if (viewController == [self.viewControllers firstObject]) { 125 | return nil; // Return 'nil' to indicate that no more progress can be made in the given direction. (表示已经不能继续往左) 126 | }else { 127 | NSInteger lastPageIndex = [self.viewControllers indexOfObject:viewController] - 1; 128 | NSLog(@"%ld", (long)lastPageIndex); 129 | return [self.viewControllers objectAtIndex:lastPageIndex]; 130 | } 131 | } 132 | 133 | - (UIViewController *)pageViewController:(UIPageViewController *)pageViewController viewControllerAfterViewController:(UIViewController *)viewController { 134 | if (viewController == [self.viewControllers lastObject]) { 135 | return nil; // (表示已经不能继续往右) 136 | }else { 137 | NSInteger nextPageIndex = [self.viewControllers indexOfObject:viewController] + 1; 138 | // NSLog(@"%ld", (long)nextPageIndex); 139 | return self.viewControllers[nextPageIndex]; 140 | } 141 | } 142 | 143 | 144 | - (void)pageViewController:(UIPageViewController *)pageViewController didFinishAnimating:(BOOL)finished previousViewControllers:(NSArray *)previousViewControllers transitionCompleted:(BOOL)completed { 145 | // We need to confirm the transition completed and to do other things. 146 | // 确保转换完成才改变底下的小圆点 147 | if (completed) { 148 | _currentPage = [pageViewController.viewControllers lastObject]; 149 | NSInteger currentIndex = [self.viewControllers indexOfObject:_currentPage]; 150 | [self.pageControl setCurrentPage:currentIndex]; 151 | } 152 | } 153 | 154 | 155 | #pragma mark ------ UIScrollViewDelegate ------ 156 | 157 | - (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView { 158 | // Record the scrollView's contentOffset at the begining. 159 | self.historyX = scrollView.contentOffset.x; 160 | NSLog(@"historyX = %f", self.historyX); 161 | } 162 | 163 | - (void)scrollViewDidScroll:(UIScrollView *)scrollView { 164 | // Calculate the ratio of the current interface that has slipped. 165 | // 计算滑过的界面比例 166 | // scrollView.contentOffset.x/pageWidth 167 | CGFloat ratio = fabs(scrollView.contentOffset.x - self.view.frame.size.width) / self.view.frame.size.width; 168 | 169 | // Change the alpha of some view.渐变 170 | [self changeAlphaWithRatio:ratio scrollView:scrollView]; 171 | } 172 | 173 | #pragma mark ------ changeAlpha ------ 174 | - (void)changeAlphaWithRatio:(CGFloat)ratio scrollView:(UIScrollView *)scrollView { 175 | 176 | if (ratio == 0) { 177 | return; 178 | } 179 | 180 | // figure out alpha 181 | // next page alpha equals to the ratio 182 | CGFloat nextPageAlpha = ratio; 183 | CGFloat currentPageAlpha = 1 - ratio; 184 | 185 | // warning: don't mix up the order of the two sentences 186 | //注意: 不要弄乱下面两句顺序 187 | [self.nextPage updateAlpha:nextPageAlpha]; 188 | [self.currentPage updateAlpha:currentPageAlpha]; 189 | 190 | // change the alpha of skip button and pageControl dots 191 | if (_nextPage == [self.viewControllers lastObject] ) { 192 | self.skipButton.alpha = currentPageAlpha; 193 | self.pageControl.alpha = currentPageAlpha; 194 | } 195 | if (_currentPage == [self.viewControllers lastObject]) { 196 | self.skipButton.alpha = nextPageAlpha; 197 | self.pageControl.alpha = nextPageAlpha; 198 | // The last page will not show the skill button and page dots. 199 | // 最后一页往右也不能出现下面两个按钮 200 | if ((scrollView.contentOffset.x > self.historyX)) { 201 | self.skipButton.alpha = 0; 202 | self.pageControl.alpha = 0; 203 | if (scrollView.contentOffset.x - self.historyX > 45) { 204 | [self skipButtonCliked]; 205 | } 206 | } 207 | } 208 | 209 | } 210 | 211 | #pragma mark ------ IntrosPageContentDelegate ------ 212 | - (void)setCurrentPage:(DWIntrosPageContentViewController *)currentPage { 213 | _currentPage = currentPage; 214 | } 215 | - (void)setNextPage:(DWIntrosPageContentViewController *)nextPage { 216 | _nextPage = nextPage; 217 | } 218 | 219 | #pragma mark ------ Click EVent ------ 220 | - (void)skipButtonCliked { 221 | if (self.calledBlock) { 222 | return; //如果已经回调一次,就不要继续回调了。 223 | } 224 | self.calledBlock = YES; 225 | //点击skipBtn 226 | _skipButtonClickedBlock(); 227 | } 228 | @end 229 | --------------------------------------------------------------------------------