├── .gitignore ├── README.md ├── WQGuideView.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── xcuserdata │ └── admin.xcuserdatad │ ├── xcdebugger │ └── Breakpoints_v2.xcbkptlist │ └── xcschemes │ ├── WQGuideView.xcscheme │ └── xcschememanagement.plist ├── WQGuideView ├── AppDelegate.h ├── AppDelegate.m ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ ├── Contents.json │ └── Star.imageset │ │ ├── Contents.json │ │ ├── Star@2x.png │ │ └── Star@3x.png ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── Gif │ ├── GuideView0.gif │ └── GuideView1.gif ├── Info.plist ├── UIScreenshot │ ├── .DS_Store │ ├── Shot1.png │ ├── Shot2.png │ ├── Shot3.png │ └── Shot4.png ├── ViewController.h ├── ViewController.m ├── WQGuideVIew │ ├── WQGuideView.h │ └── WQGuideView.m └── main.m ├── WQGuideViewTests ├── Info.plist └── WQGuideViewTests.m └── WQGuideViewUITests ├── Info.plist └── WQGuideViewUITests.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 | *.xcuserstate 23 | 24 | ## Obj-C/Swift specific 25 | *.hmap 26 | *.ipa 27 | *.dSYM.zip 28 | *.dSYM 29 | 30 | # CocoaPods 31 | # 32 | # We recommend against adding the Pods directory to your .gitignore. However 33 | # you should judge for yourself, the pros and cons are mentioned at: 34 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 35 | # 36 | # Pods/ 37 | 38 | # Carthage 39 | # 40 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 41 | # Carthage/Checkouts 42 | 43 | Carthage/Build 44 | 45 | # fastlane 46 | # 47 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 48 | # screenshots whenever they are needed. 49 | # For more information about the recommended setup visit: 50 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md 51 | 52 | fastlane/report.xml 53 | fastlane/screenshots 54 | 55 | #Code Injection 56 | # 57 | # After new code Injection tools there's a generated folder /iOSInjectionProject 58 | # https://github.com/johnno1962/injectionforxcode 59 | 60 | iOSInjectionProject/ 61 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # WQGuideView 2 | 引导视图
3 | 4 |

5 |  Effect 6 |

7 | 8 | # Principle 9 | http://www.jianshu.com/p/261b79ee392c 10 | 11 | # Usage
12 | 使用默认样式快速调用 WQGuideView 13 | ```objective-c 14 | WQGuideView *guideView = [[WQGuideView alloc] initWithFrame:self.view.bounds 15 | guides:mutableGuides]; 16 | [self.view addSubview:guideView]; 17 | [guideView showGuide]; 18 | ``` 19 | 20 | 21 | -------------------------------------------------------------------------------- /WQGuideView.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 8461374A1D9D0C4D0038AE04 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 846137491D9D0C4D0038AE04 /* main.m */; }; 11 | 8461374D1D9D0C4D0038AE04 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 8461374C1D9D0C4D0038AE04 /* AppDelegate.m */; }; 12 | 846137501D9D0C4D0038AE04 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8461374F1D9D0C4D0038AE04 /* ViewController.m */; }; 13 | 846137531D9D0C4D0038AE04 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 846137511D9D0C4D0038AE04 /* Main.storyboard */; }; 14 | 846137551D9D0C4D0038AE04 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 846137541D9D0C4D0038AE04 /* Assets.xcassets */; }; 15 | 846137581D9D0C4D0038AE04 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 846137561D9D0C4D0038AE04 /* LaunchScreen.storyboard */; }; 16 | 846137631D9D0C4D0038AE04 /* WQGuideViewTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 846137621D9D0C4D0038AE04 /* WQGuideViewTests.m */; }; 17 | 8461376E1D9D0C4D0038AE04 /* WQGuideViewUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 8461376D1D9D0C4D0038AE04 /* WQGuideViewUITests.m */; }; 18 | 8461377E1D9D0C8B0038AE04 /* WQGuideView.m in Sources */ = {isa = PBXBuildFile; fileRef = 8461377D1D9D0C8B0038AE04 /* WQGuideView.m */; }; 19 | 847F0BEA1DAB921E004FCFDB /* Shot1.png in Resources */ = {isa = PBXBuildFile; fileRef = 847F0BE71DAB921E004FCFDB /* Shot1.png */; }; 20 | 847F0BEB1DAB921E004FCFDB /* Shot2.png in Resources */ = {isa = PBXBuildFile; fileRef = 847F0BE81DAB921E004FCFDB /* Shot2.png */; }; 21 | 847F0BEC1DAB921E004FCFDB /* Shot3.png in Resources */ = {isa = PBXBuildFile; fileRef = 847F0BE91DAB921E004FCFDB /* Shot3.png */; }; 22 | 8485922B1DAC7F73002F94E5 /* Shot4.png in Resources */ = {isa = PBXBuildFile; fileRef = 8485922A1DAC7F73002F94E5 /* Shot4.png */; }; 23 | 848D24DE1DADE05F0023CD0A /* GuideView0.gif in Resources */ = {isa = PBXBuildFile; fileRef = 848D24DC1DADE05F0023CD0A /* GuideView0.gif */; }; 24 | 848D24DF1DADE05F0023CD0A /* GuideView1.gif in Resources */ = {isa = PBXBuildFile; fileRef = 848D24DD1DADE05F0023CD0A /* GuideView1.gif */; }; 25 | /* End PBXBuildFile section */ 26 | 27 | /* Begin PBXContainerItemProxy section */ 28 | 8461375F1D9D0C4D0038AE04 /* PBXContainerItemProxy */ = { 29 | isa = PBXContainerItemProxy; 30 | containerPortal = 8461373D1D9D0C4D0038AE04 /* Project object */; 31 | proxyType = 1; 32 | remoteGlobalIDString = 846137441D9D0C4D0038AE04; 33 | remoteInfo = WQGuideView; 34 | }; 35 | 8461376A1D9D0C4D0038AE04 /* PBXContainerItemProxy */ = { 36 | isa = PBXContainerItemProxy; 37 | containerPortal = 8461373D1D9D0C4D0038AE04 /* Project object */; 38 | proxyType = 1; 39 | remoteGlobalIDString = 846137441D9D0C4D0038AE04; 40 | remoteInfo = WQGuideView; 41 | }; 42 | /* End PBXContainerItemProxy section */ 43 | 44 | /* Begin PBXFileReference section */ 45 | 846137451D9D0C4D0038AE04 /* WQGuideView.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = WQGuideView.app; sourceTree = BUILT_PRODUCTS_DIR; }; 46 | 846137491D9D0C4D0038AE04 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 47 | 8461374B1D9D0C4D0038AE04 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 48 | 8461374C1D9D0C4D0038AE04 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 49 | 8461374E1D9D0C4D0038AE04 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 50 | 8461374F1D9D0C4D0038AE04 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 51 | 846137521D9D0C4D0038AE04 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 52 | 846137541D9D0C4D0038AE04 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 53 | 846137571D9D0C4D0038AE04 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 54 | 846137591D9D0C4D0038AE04 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 55 | 8461375E1D9D0C4D0038AE04 /* WQGuideViewTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = WQGuideViewTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 56 | 846137621D9D0C4D0038AE04 /* WQGuideViewTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = WQGuideViewTests.m; sourceTree = ""; }; 57 | 846137641D9D0C4D0038AE04 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 58 | 846137691D9D0C4D0038AE04 /* WQGuideViewUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = WQGuideViewUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 59 | 8461376D1D9D0C4D0038AE04 /* WQGuideViewUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = WQGuideViewUITests.m; sourceTree = ""; }; 60 | 8461376F1D9D0C4D0038AE04 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 61 | 8461377C1D9D0C8B0038AE04 /* WQGuideView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WQGuideView.h; sourceTree = ""; }; 62 | 8461377D1D9D0C8B0038AE04 /* WQGuideView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WQGuideView.m; sourceTree = ""; }; 63 | 847F0BE71DAB921E004FCFDB /* Shot1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Shot1.png; sourceTree = ""; }; 64 | 847F0BE81DAB921E004FCFDB /* Shot2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Shot2.png; sourceTree = ""; }; 65 | 847F0BE91DAB921E004FCFDB /* Shot3.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Shot3.png; sourceTree = ""; }; 66 | 8485922A1DAC7F73002F94E5 /* Shot4.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Shot4.png; sourceTree = ""; }; 67 | 848D24DC1DADE05F0023CD0A /* GuideView0.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = GuideView0.gif; sourceTree = ""; }; 68 | 848D24DD1DADE05F0023CD0A /* GuideView1.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = GuideView1.gif; sourceTree = ""; }; 69 | /* End PBXFileReference section */ 70 | 71 | /* Begin PBXFrameworksBuildPhase section */ 72 | 846137421D9D0C4D0038AE04 /* Frameworks */ = { 73 | isa = PBXFrameworksBuildPhase; 74 | buildActionMask = 2147483647; 75 | files = ( 76 | ); 77 | runOnlyForDeploymentPostprocessing = 0; 78 | }; 79 | 8461375B1D9D0C4D0038AE04 /* Frameworks */ = { 80 | isa = PBXFrameworksBuildPhase; 81 | buildActionMask = 2147483647; 82 | files = ( 83 | ); 84 | runOnlyForDeploymentPostprocessing = 0; 85 | }; 86 | 846137661D9D0C4D0038AE04 /* Frameworks */ = { 87 | isa = PBXFrameworksBuildPhase; 88 | buildActionMask = 2147483647; 89 | files = ( 90 | ); 91 | runOnlyForDeploymentPostprocessing = 0; 92 | }; 93 | /* End PBXFrameworksBuildPhase section */ 94 | 95 | /* Begin PBXGroup section */ 96 | 8461373C1D9D0C4D0038AE04 = { 97 | isa = PBXGroup; 98 | children = ( 99 | 846137471D9D0C4D0038AE04 /* WQGuideView */, 100 | 846137611D9D0C4D0038AE04 /* WQGuideViewTests */, 101 | 8461376C1D9D0C4D0038AE04 /* WQGuideViewUITests */, 102 | 846137461D9D0C4D0038AE04 /* Products */, 103 | ); 104 | sourceTree = ""; 105 | }; 106 | 846137461D9D0C4D0038AE04 /* Products */ = { 107 | isa = PBXGroup; 108 | children = ( 109 | 846137451D9D0C4D0038AE04 /* WQGuideView.app */, 110 | 8461375E1D9D0C4D0038AE04 /* WQGuideViewTests.xctest */, 111 | 846137691D9D0C4D0038AE04 /* WQGuideViewUITests.xctest */, 112 | ); 113 | name = Products; 114 | sourceTree = ""; 115 | }; 116 | 846137471D9D0C4D0038AE04 /* WQGuideView */ = { 117 | isa = PBXGroup; 118 | children = ( 119 | 848D24DB1DADE05F0023CD0A /* Gif */, 120 | 847F0BE01DAB8FA3004FCFDB /* UIScreenshot */, 121 | 8461377B1D9D0C690038AE04 /* WQGuideVIew */, 122 | 8461374B1D9D0C4D0038AE04 /* AppDelegate.h */, 123 | 8461374C1D9D0C4D0038AE04 /* AppDelegate.m */, 124 | 8461374E1D9D0C4D0038AE04 /* ViewController.h */, 125 | 8461374F1D9D0C4D0038AE04 /* ViewController.m */, 126 | 846137511D9D0C4D0038AE04 /* Main.storyboard */, 127 | 846137541D9D0C4D0038AE04 /* Assets.xcassets */, 128 | 846137561D9D0C4D0038AE04 /* LaunchScreen.storyboard */, 129 | 846137591D9D0C4D0038AE04 /* Info.plist */, 130 | 846137481D9D0C4D0038AE04 /* Supporting Files */, 131 | ); 132 | path = WQGuideView; 133 | sourceTree = ""; 134 | }; 135 | 846137481D9D0C4D0038AE04 /* Supporting Files */ = { 136 | isa = PBXGroup; 137 | children = ( 138 | 846137491D9D0C4D0038AE04 /* main.m */, 139 | ); 140 | name = "Supporting Files"; 141 | sourceTree = ""; 142 | }; 143 | 846137611D9D0C4D0038AE04 /* WQGuideViewTests */ = { 144 | isa = PBXGroup; 145 | children = ( 146 | 846137621D9D0C4D0038AE04 /* WQGuideViewTests.m */, 147 | 846137641D9D0C4D0038AE04 /* Info.plist */, 148 | ); 149 | path = WQGuideViewTests; 150 | sourceTree = ""; 151 | }; 152 | 8461376C1D9D0C4D0038AE04 /* WQGuideViewUITests */ = { 153 | isa = PBXGroup; 154 | children = ( 155 | 8461376D1D9D0C4D0038AE04 /* WQGuideViewUITests.m */, 156 | 8461376F1D9D0C4D0038AE04 /* Info.plist */, 157 | ); 158 | path = WQGuideViewUITests; 159 | sourceTree = ""; 160 | }; 161 | 8461377B1D9D0C690038AE04 /* WQGuideVIew */ = { 162 | isa = PBXGroup; 163 | children = ( 164 | 8461377C1D9D0C8B0038AE04 /* WQGuideView.h */, 165 | 8461377D1D9D0C8B0038AE04 /* WQGuideView.m */, 166 | ); 167 | path = WQGuideVIew; 168 | sourceTree = ""; 169 | }; 170 | 847F0BE01DAB8FA3004FCFDB /* UIScreenshot */ = { 171 | isa = PBXGroup; 172 | children = ( 173 | 8485922A1DAC7F73002F94E5 /* Shot4.png */, 174 | 847F0BE71DAB921E004FCFDB /* Shot1.png */, 175 | 847F0BE81DAB921E004FCFDB /* Shot2.png */, 176 | 847F0BE91DAB921E004FCFDB /* Shot3.png */, 177 | ); 178 | path = UIScreenshot; 179 | sourceTree = ""; 180 | }; 181 | 848D24DB1DADE05F0023CD0A /* Gif */ = { 182 | isa = PBXGroup; 183 | children = ( 184 | 848D24DC1DADE05F0023CD0A /* GuideView0.gif */, 185 | 848D24DD1DADE05F0023CD0A /* GuideView1.gif */, 186 | ); 187 | path = Gif; 188 | sourceTree = ""; 189 | }; 190 | /* End PBXGroup section */ 191 | 192 | /* Begin PBXNativeTarget section */ 193 | 846137441D9D0C4D0038AE04 /* WQGuideView */ = { 194 | isa = PBXNativeTarget; 195 | buildConfigurationList = 846137721D9D0C4D0038AE04 /* Build configuration list for PBXNativeTarget "WQGuideView" */; 196 | buildPhases = ( 197 | 846137411D9D0C4D0038AE04 /* Sources */, 198 | 846137421D9D0C4D0038AE04 /* Frameworks */, 199 | 846137431D9D0C4D0038AE04 /* Resources */, 200 | ); 201 | buildRules = ( 202 | ); 203 | dependencies = ( 204 | ); 205 | name = WQGuideView; 206 | productName = WQGuideView; 207 | productReference = 846137451D9D0C4D0038AE04 /* WQGuideView.app */; 208 | productType = "com.apple.product-type.application"; 209 | }; 210 | 8461375D1D9D0C4D0038AE04 /* WQGuideViewTests */ = { 211 | isa = PBXNativeTarget; 212 | buildConfigurationList = 846137751D9D0C4D0038AE04 /* Build configuration list for PBXNativeTarget "WQGuideViewTests" */; 213 | buildPhases = ( 214 | 8461375A1D9D0C4D0038AE04 /* Sources */, 215 | 8461375B1D9D0C4D0038AE04 /* Frameworks */, 216 | 8461375C1D9D0C4D0038AE04 /* Resources */, 217 | ); 218 | buildRules = ( 219 | ); 220 | dependencies = ( 221 | 846137601D9D0C4D0038AE04 /* PBXTargetDependency */, 222 | ); 223 | name = WQGuideViewTests; 224 | productName = WQGuideViewTests; 225 | productReference = 8461375E1D9D0C4D0038AE04 /* WQGuideViewTests.xctest */; 226 | productType = "com.apple.product-type.bundle.unit-test"; 227 | }; 228 | 846137681D9D0C4D0038AE04 /* WQGuideViewUITests */ = { 229 | isa = PBXNativeTarget; 230 | buildConfigurationList = 846137781D9D0C4D0038AE04 /* Build configuration list for PBXNativeTarget "WQGuideViewUITests" */; 231 | buildPhases = ( 232 | 846137651D9D0C4D0038AE04 /* Sources */, 233 | 846137661D9D0C4D0038AE04 /* Frameworks */, 234 | 846137671D9D0C4D0038AE04 /* Resources */, 235 | ); 236 | buildRules = ( 237 | ); 238 | dependencies = ( 239 | 8461376B1D9D0C4D0038AE04 /* PBXTargetDependency */, 240 | ); 241 | name = WQGuideViewUITests; 242 | productName = WQGuideViewUITests; 243 | productReference = 846137691D9D0C4D0038AE04 /* WQGuideViewUITests.xctest */; 244 | productType = "com.apple.product-type.bundle.ui-testing"; 245 | }; 246 | /* End PBXNativeTarget section */ 247 | 248 | /* Begin PBXProject section */ 249 | 8461373D1D9D0C4D0038AE04 /* Project object */ = { 250 | isa = PBXProject; 251 | attributes = { 252 | CLASSPREFIX = WQ; 253 | LastUpgradeCheck = 0720; 254 | ORGANIZATIONNAME = SUWQ; 255 | TargetAttributes = { 256 | 846137441D9D0C4D0038AE04 = { 257 | CreatedOnToolsVersion = 7.2; 258 | }; 259 | 8461375D1D9D0C4D0038AE04 = { 260 | CreatedOnToolsVersion = 7.2; 261 | TestTargetID = 846137441D9D0C4D0038AE04; 262 | }; 263 | 846137681D9D0C4D0038AE04 = { 264 | CreatedOnToolsVersion = 7.2; 265 | TestTargetID = 846137441D9D0C4D0038AE04; 266 | }; 267 | }; 268 | }; 269 | buildConfigurationList = 846137401D9D0C4D0038AE04 /* Build configuration list for PBXProject "WQGuideView" */; 270 | compatibilityVersion = "Xcode 3.2"; 271 | developmentRegion = English; 272 | hasScannedForEncodings = 0; 273 | knownRegions = ( 274 | en, 275 | Base, 276 | ); 277 | mainGroup = 8461373C1D9D0C4D0038AE04; 278 | productRefGroup = 846137461D9D0C4D0038AE04 /* Products */; 279 | projectDirPath = ""; 280 | projectRoot = ""; 281 | targets = ( 282 | 846137441D9D0C4D0038AE04 /* WQGuideView */, 283 | 8461375D1D9D0C4D0038AE04 /* WQGuideViewTests */, 284 | 846137681D9D0C4D0038AE04 /* WQGuideViewUITests */, 285 | ); 286 | }; 287 | /* End PBXProject section */ 288 | 289 | /* Begin PBXResourcesBuildPhase section */ 290 | 846137431D9D0C4D0038AE04 /* Resources */ = { 291 | isa = PBXResourcesBuildPhase; 292 | buildActionMask = 2147483647; 293 | files = ( 294 | 846137581D9D0C4D0038AE04 /* LaunchScreen.storyboard in Resources */, 295 | 8485922B1DAC7F73002F94E5 /* Shot4.png in Resources */, 296 | 846137551D9D0C4D0038AE04 /* Assets.xcassets in Resources */, 297 | 848D24DF1DADE05F0023CD0A /* GuideView1.gif in Resources */, 298 | 848D24DE1DADE05F0023CD0A /* GuideView0.gif in Resources */, 299 | 847F0BEA1DAB921E004FCFDB /* Shot1.png in Resources */, 300 | 847F0BEB1DAB921E004FCFDB /* Shot2.png in Resources */, 301 | 846137531D9D0C4D0038AE04 /* Main.storyboard in Resources */, 302 | 847F0BEC1DAB921E004FCFDB /* Shot3.png in Resources */, 303 | ); 304 | runOnlyForDeploymentPostprocessing = 0; 305 | }; 306 | 8461375C1D9D0C4D0038AE04 /* Resources */ = { 307 | isa = PBXResourcesBuildPhase; 308 | buildActionMask = 2147483647; 309 | files = ( 310 | ); 311 | runOnlyForDeploymentPostprocessing = 0; 312 | }; 313 | 846137671D9D0C4D0038AE04 /* Resources */ = { 314 | isa = PBXResourcesBuildPhase; 315 | buildActionMask = 2147483647; 316 | files = ( 317 | ); 318 | runOnlyForDeploymentPostprocessing = 0; 319 | }; 320 | /* End PBXResourcesBuildPhase section */ 321 | 322 | /* Begin PBXSourcesBuildPhase section */ 323 | 846137411D9D0C4D0038AE04 /* Sources */ = { 324 | isa = PBXSourcesBuildPhase; 325 | buildActionMask = 2147483647; 326 | files = ( 327 | 846137501D9D0C4D0038AE04 /* ViewController.m in Sources */, 328 | 8461377E1D9D0C8B0038AE04 /* WQGuideView.m in Sources */, 329 | 8461374D1D9D0C4D0038AE04 /* AppDelegate.m in Sources */, 330 | 8461374A1D9D0C4D0038AE04 /* main.m in Sources */, 331 | ); 332 | runOnlyForDeploymentPostprocessing = 0; 333 | }; 334 | 8461375A1D9D0C4D0038AE04 /* Sources */ = { 335 | isa = PBXSourcesBuildPhase; 336 | buildActionMask = 2147483647; 337 | files = ( 338 | 846137631D9D0C4D0038AE04 /* WQGuideViewTests.m in Sources */, 339 | ); 340 | runOnlyForDeploymentPostprocessing = 0; 341 | }; 342 | 846137651D9D0C4D0038AE04 /* Sources */ = { 343 | isa = PBXSourcesBuildPhase; 344 | buildActionMask = 2147483647; 345 | files = ( 346 | 8461376E1D9D0C4D0038AE04 /* WQGuideViewUITests.m in Sources */, 347 | ); 348 | runOnlyForDeploymentPostprocessing = 0; 349 | }; 350 | /* End PBXSourcesBuildPhase section */ 351 | 352 | /* Begin PBXTargetDependency section */ 353 | 846137601D9D0C4D0038AE04 /* PBXTargetDependency */ = { 354 | isa = PBXTargetDependency; 355 | target = 846137441D9D0C4D0038AE04 /* WQGuideView */; 356 | targetProxy = 8461375F1D9D0C4D0038AE04 /* PBXContainerItemProxy */; 357 | }; 358 | 8461376B1D9D0C4D0038AE04 /* PBXTargetDependency */ = { 359 | isa = PBXTargetDependency; 360 | target = 846137441D9D0C4D0038AE04 /* WQGuideView */; 361 | targetProxy = 8461376A1D9D0C4D0038AE04 /* PBXContainerItemProxy */; 362 | }; 363 | /* End PBXTargetDependency section */ 364 | 365 | /* Begin PBXVariantGroup section */ 366 | 846137511D9D0C4D0038AE04 /* Main.storyboard */ = { 367 | isa = PBXVariantGroup; 368 | children = ( 369 | 846137521D9D0C4D0038AE04 /* Base */, 370 | ); 371 | name = Main.storyboard; 372 | sourceTree = ""; 373 | }; 374 | 846137561D9D0C4D0038AE04 /* LaunchScreen.storyboard */ = { 375 | isa = PBXVariantGroup; 376 | children = ( 377 | 846137571D9D0C4D0038AE04 /* Base */, 378 | ); 379 | name = LaunchScreen.storyboard; 380 | sourceTree = ""; 381 | }; 382 | /* End PBXVariantGroup section */ 383 | 384 | /* Begin XCBuildConfiguration section */ 385 | 846137701D9D0C4D0038AE04 /* Debug */ = { 386 | isa = XCBuildConfiguration; 387 | buildSettings = { 388 | ALWAYS_SEARCH_USER_PATHS = NO; 389 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 390 | CLANG_CXX_LIBRARY = "libc++"; 391 | CLANG_ENABLE_MODULES = YES; 392 | CLANG_ENABLE_OBJC_ARC = YES; 393 | CLANG_WARN_BOOL_CONVERSION = YES; 394 | CLANG_WARN_CONSTANT_CONVERSION = YES; 395 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 396 | CLANG_WARN_EMPTY_BODY = YES; 397 | CLANG_WARN_ENUM_CONVERSION = YES; 398 | CLANG_WARN_INT_CONVERSION = YES; 399 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 400 | CLANG_WARN_UNREACHABLE_CODE = YES; 401 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 402 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 403 | COPY_PHASE_STRIP = NO; 404 | DEBUG_INFORMATION_FORMAT = dwarf; 405 | ENABLE_STRICT_OBJC_MSGSEND = YES; 406 | ENABLE_TESTABILITY = YES; 407 | GCC_C_LANGUAGE_STANDARD = gnu99; 408 | GCC_DYNAMIC_NO_PIC = NO; 409 | GCC_NO_COMMON_BLOCKS = YES; 410 | GCC_OPTIMIZATION_LEVEL = 0; 411 | GCC_PREPROCESSOR_DEFINITIONS = ( 412 | "DEBUG=1", 413 | "$(inherited)", 414 | ); 415 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 416 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 417 | GCC_WARN_UNDECLARED_SELECTOR = YES; 418 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 419 | GCC_WARN_UNUSED_FUNCTION = YES; 420 | GCC_WARN_UNUSED_VARIABLE = YES; 421 | IPHONEOS_DEPLOYMENT_TARGET = 9.2; 422 | MTL_ENABLE_DEBUG_INFO = YES; 423 | ONLY_ACTIVE_ARCH = YES; 424 | SDKROOT = iphoneos; 425 | }; 426 | name = Debug; 427 | }; 428 | 846137711D9D0C4D0038AE04 /* Release */ = { 429 | isa = XCBuildConfiguration; 430 | buildSettings = { 431 | ALWAYS_SEARCH_USER_PATHS = NO; 432 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 433 | CLANG_CXX_LIBRARY = "libc++"; 434 | CLANG_ENABLE_MODULES = YES; 435 | CLANG_ENABLE_OBJC_ARC = YES; 436 | CLANG_WARN_BOOL_CONVERSION = YES; 437 | CLANG_WARN_CONSTANT_CONVERSION = YES; 438 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 439 | CLANG_WARN_EMPTY_BODY = YES; 440 | CLANG_WARN_ENUM_CONVERSION = YES; 441 | CLANG_WARN_INT_CONVERSION = YES; 442 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 443 | CLANG_WARN_UNREACHABLE_CODE = YES; 444 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 445 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 446 | COPY_PHASE_STRIP = NO; 447 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 448 | ENABLE_NS_ASSERTIONS = NO; 449 | ENABLE_STRICT_OBJC_MSGSEND = YES; 450 | GCC_C_LANGUAGE_STANDARD = gnu99; 451 | GCC_NO_COMMON_BLOCKS = YES; 452 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 453 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 454 | GCC_WARN_UNDECLARED_SELECTOR = YES; 455 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 456 | GCC_WARN_UNUSED_FUNCTION = YES; 457 | GCC_WARN_UNUSED_VARIABLE = YES; 458 | IPHONEOS_DEPLOYMENT_TARGET = 9.2; 459 | MTL_ENABLE_DEBUG_INFO = NO; 460 | SDKROOT = iphoneos; 461 | VALIDATE_PRODUCT = YES; 462 | }; 463 | name = Release; 464 | }; 465 | 846137731D9D0C4D0038AE04 /* Debug */ = { 466 | isa = XCBuildConfiguration; 467 | buildSettings = { 468 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 469 | INFOPLIST_FILE = WQGuideView/Info.plist; 470 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 471 | PRODUCT_BUNDLE_IDENTIFIER = com.SUWQ.WQGuideView; 472 | PRODUCT_NAME = "$(TARGET_NAME)"; 473 | }; 474 | name = Debug; 475 | }; 476 | 846137741D9D0C4D0038AE04 /* Release */ = { 477 | isa = XCBuildConfiguration; 478 | buildSettings = { 479 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 480 | INFOPLIST_FILE = WQGuideView/Info.plist; 481 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 482 | PRODUCT_BUNDLE_IDENTIFIER = com.SUWQ.WQGuideView; 483 | PRODUCT_NAME = "$(TARGET_NAME)"; 484 | }; 485 | name = Release; 486 | }; 487 | 846137761D9D0C4D0038AE04 /* Debug */ = { 488 | isa = XCBuildConfiguration; 489 | buildSettings = { 490 | BUNDLE_LOADER = "$(TEST_HOST)"; 491 | INFOPLIST_FILE = WQGuideViewTests/Info.plist; 492 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 493 | PRODUCT_BUNDLE_IDENTIFIER = com.SUWQ.WQGuideViewTests; 494 | PRODUCT_NAME = "$(TARGET_NAME)"; 495 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/WQGuideView.app/WQGuideView"; 496 | }; 497 | name = Debug; 498 | }; 499 | 846137771D9D0C4D0038AE04 /* Release */ = { 500 | isa = XCBuildConfiguration; 501 | buildSettings = { 502 | BUNDLE_LOADER = "$(TEST_HOST)"; 503 | INFOPLIST_FILE = WQGuideViewTests/Info.plist; 504 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 505 | PRODUCT_BUNDLE_IDENTIFIER = com.SUWQ.WQGuideViewTests; 506 | PRODUCT_NAME = "$(TARGET_NAME)"; 507 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/WQGuideView.app/WQGuideView"; 508 | }; 509 | name = Release; 510 | }; 511 | 846137791D9D0C4D0038AE04 /* Debug */ = { 512 | isa = XCBuildConfiguration; 513 | buildSettings = { 514 | INFOPLIST_FILE = WQGuideViewUITests/Info.plist; 515 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 516 | PRODUCT_BUNDLE_IDENTIFIER = com.SUWQ.WQGuideViewUITests; 517 | PRODUCT_NAME = "$(TARGET_NAME)"; 518 | TEST_TARGET_NAME = WQGuideView; 519 | USES_XCTRUNNER = YES; 520 | }; 521 | name = Debug; 522 | }; 523 | 8461377A1D9D0C4D0038AE04 /* Release */ = { 524 | isa = XCBuildConfiguration; 525 | buildSettings = { 526 | INFOPLIST_FILE = WQGuideViewUITests/Info.plist; 527 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 528 | PRODUCT_BUNDLE_IDENTIFIER = com.SUWQ.WQGuideViewUITests; 529 | PRODUCT_NAME = "$(TARGET_NAME)"; 530 | TEST_TARGET_NAME = WQGuideView; 531 | USES_XCTRUNNER = YES; 532 | }; 533 | name = Release; 534 | }; 535 | /* End XCBuildConfiguration section */ 536 | 537 | /* Begin XCConfigurationList section */ 538 | 846137401D9D0C4D0038AE04 /* Build configuration list for PBXProject "WQGuideView" */ = { 539 | isa = XCConfigurationList; 540 | buildConfigurations = ( 541 | 846137701D9D0C4D0038AE04 /* Debug */, 542 | 846137711D9D0C4D0038AE04 /* Release */, 543 | ); 544 | defaultConfigurationIsVisible = 0; 545 | defaultConfigurationName = Release; 546 | }; 547 | 846137721D9D0C4D0038AE04 /* Build configuration list for PBXNativeTarget "WQGuideView" */ = { 548 | isa = XCConfigurationList; 549 | buildConfigurations = ( 550 | 846137731D9D0C4D0038AE04 /* Debug */, 551 | 846137741D9D0C4D0038AE04 /* Release */, 552 | ); 553 | defaultConfigurationIsVisible = 0; 554 | defaultConfigurationName = Release; 555 | }; 556 | 846137751D9D0C4D0038AE04 /* Build configuration list for PBXNativeTarget "WQGuideViewTests" */ = { 557 | isa = XCConfigurationList; 558 | buildConfigurations = ( 559 | 846137761D9D0C4D0038AE04 /* Debug */, 560 | 846137771D9D0C4D0038AE04 /* Release */, 561 | ); 562 | defaultConfigurationIsVisible = 0; 563 | defaultConfigurationName = Release; 564 | }; 565 | 846137781D9D0C4D0038AE04 /* Build configuration list for PBXNativeTarget "WQGuideViewUITests" */ = { 566 | isa = XCConfigurationList; 567 | buildConfigurations = ( 568 | 846137791D9D0C4D0038AE04 /* Debug */, 569 | 8461377A1D9D0C4D0038AE04 /* Release */, 570 | ); 571 | defaultConfigurationIsVisible = 0; 572 | defaultConfigurationName = Release; 573 | }; 574 | /* End XCConfigurationList section */ 575 | }; 576 | rootObject = 8461373D1D9D0C4D0038AE04 /* Project object */; 577 | } 578 | -------------------------------------------------------------------------------- /WQGuideView.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /WQGuideView.xcodeproj/xcuserdata/admin.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 8 | 21 | 22 | 24 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /WQGuideView.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/WQGuideView.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 43 | 49 | 50 | 51 | 52 | 53 | 59 | 60 | 61 | 62 | 63 | 64 | 74 | 76 | 82 | 83 | 84 | 85 | 86 | 87 | 93 | 95 | 101 | 102 | 103 | 104 | 106 | 107 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /WQGuideView.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | WQGuideView.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 846137441D9D0C4D0038AE04 16 | 17 | primary 18 | 19 | 20 | 8461375D1D9D0C4D0038AE04 21 | 22 | primary 23 | 24 | 25 | 846137681D9D0C4D0038AE04 26 | 27 | primary 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /WQGuideView/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // WQGuideView 4 | // 5 | // Created by admin on 16/9/29. 6 | // Copyright © 2016年 SUWQ. 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 | -------------------------------------------------------------------------------- /WQGuideView/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // WQGuideView 4 | // 5 | // Created by admin on 16/9/29. 6 | // Copyright © 2016年 SUWQ. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 19 | // NSLog(@"%@",[UIFont familyNames]); 20 | return YES; 21 | } 22 | 23 | - (void)applicationWillResignActive:(UIApplication *)application { 24 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 25 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 26 | } 27 | 28 | - (void)applicationDidEnterBackground:(UIApplication *)application { 29 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 31 | } 32 | 33 | - (void)applicationWillEnterForeground:(UIApplication *)application { 34 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 35 | } 36 | 37 | - (void)applicationDidBecomeActive:(UIApplication *)application { 38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application { 42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /WQGuideView/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /WQGuideView/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /WQGuideView/Assets.xcassets/Star.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "Star@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "Star@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /WQGuideView/Assets.xcassets/Star.imageset/Star@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AppleDP/WQGuideView/f1d68adc1109df45150badf84efea7fce97bf238/WQGuideView/Assets.xcassets/Star.imageset/Star@2x.png -------------------------------------------------------------------------------- /WQGuideView/Assets.xcassets/Star.imageset/Star@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AppleDP/WQGuideView/f1d68adc1109df45150badf84efea7fce97bf238/WQGuideView/Assets.xcassets/Star.imageset/Star@3x.png -------------------------------------------------------------------------------- /WQGuideView/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /WQGuideView/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 | 31 | 41 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 68 | 78 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | -------------------------------------------------------------------------------- /WQGuideView/Gif/GuideView0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AppleDP/WQGuideView/f1d68adc1109df45150badf84efea7fce97bf238/WQGuideView/Gif/GuideView0.gif -------------------------------------------------------------------------------- /WQGuideView/Gif/GuideView1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AppleDP/WQGuideView/f1d68adc1109df45150badf84efea7fce97bf238/WQGuideView/Gif/GuideView1.gif -------------------------------------------------------------------------------- /WQGuideView/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /WQGuideView/UIScreenshot/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AppleDP/WQGuideView/f1d68adc1109df45150badf84efea7fce97bf238/WQGuideView/UIScreenshot/.DS_Store -------------------------------------------------------------------------------- /WQGuideView/UIScreenshot/Shot1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AppleDP/WQGuideView/f1d68adc1109df45150badf84efea7fce97bf238/WQGuideView/UIScreenshot/Shot1.png -------------------------------------------------------------------------------- /WQGuideView/UIScreenshot/Shot2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AppleDP/WQGuideView/f1d68adc1109df45150badf84efea7fce97bf238/WQGuideView/UIScreenshot/Shot2.png -------------------------------------------------------------------------------- /WQGuideView/UIScreenshot/Shot3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AppleDP/WQGuideView/f1d68adc1109df45150badf84efea7fce97bf238/WQGuideView/UIScreenshot/Shot3.png -------------------------------------------------------------------------------- /WQGuideView/UIScreenshot/Shot4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AppleDP/WQGuideView/f1d68adc1109df45150badf84efea7fce97bf238/WQGuideView/UIScreenshot/Shot4.png -------------------------------------------------------------------------------- /WQGuideView/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // WQGuideView 4 | // 5 | // Created by admin on 16/9/29. 6 | // Copyright © 2016年 SUWQ. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /WQGuideView/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // WQGuideView 4 | // 5 | // Created by admin on 16/9/29. 6 | // Copyright © 1516年 SUWQ. All rights reserved. 7 | // 8 | 9 | #import "WQGuideView.h" 10 | #import "ViewController.h" 11 | 12 | @interface ViewController () 13 | @end 14 | 15 | @implementation ViewController 16 | 17 | - (void)viewDidLoad { 18 | [super viewDidLoad]; 19 | } 20 | 21 | - (void)viewDidAppear:(BOOL)animated { 22 | // 生成数据源 23 | NSMutableArray *customerShapes = [[NSMutableArray alloc] init]; 24 | NSArray *subViews = self.view.subviews; 25 | NSMutableArray *> *mutableGuides = [[NSMutableArray alloc] initWithCapacity:subViews.count]; 26 | for (int index = 0; index < subViews.count; index ++) { 27 | if ([subViews[index] isKindOfClass:[UILabel class]] || [subViews[index] isKindOfClass:[UIImageView class]]) { 28 | NSString *describe = [NSString stringWithFormat:@"Welcome to use WQGuideView .\n The current view is %@ , number is %d",[subViews[index] class],index]; 29 | UIView *view = subViews[index]; 30 | 31 | // 添加描述内容和引导位置 32 | [mutableGuides addObject:@{describe : [NSValue valueWithCGRect:view.frame]}]; 33 | 34 | /************************** 自 定 义 引 导 形 状 **************************/ 35 | UIBezierPath *path = [UIBezierPath bezierPath]; 36 | [path moveToPoint:CGPointMake(CGRectGetMinX(view.frame)-10, CGRectGetMinY(view.frame))]; 37 | [path addLineToPoint:CGPointMake(CGRectGetMaxX(view.frame)+10, CGRectGetMinY(view.frame))]; 38 | [path addLineToPoint:CGPointMake(CGRectGetMaxX(view.frame)+10-CGRectGetWidth(view.frame)*1/5, CGRectGetMaxY(view.frame))]; 39 | [path addLineToPoint:CGPointMake(CGRectGetMinX(view.frame)-10+CGRectGetWidth(view.frame)*1/5, CGRectGetMaxY(view.frame))]; 40 | [path closePath]; 41 | [customerShapes addObject:path]; 42 | } 43 | } 44 | 45 | /************************** 生 成 引 导 视 图 **************************/ 46 | WQGuideView *guideView = [[WQGuideView alloc] initWithFrame:self.view.bounds 47 | guides:mutableGuides]; 48 | guideView.delegate = self; 49 | 50 | 51 | /************************** 使 用 自 定 的 引 导 形 状 **************************/ 52 | // guideView.boxStyle = WQCustomer; 53 | // guideView.customerShapes = customerShapes; 54 | 55 | 56 | /************************** 使 用 内 置 引 导 图 形 **************************/ 57 | // /* 圆 形 */ 58 | // guideView.boxStyle |= WQCircle; 59 | // /* 方 形 */ 60 | // guideView.boxStyle |= WQRect; 61 | // /* 加 花 纹 */ 62 | // guideView.boxStyle |= WQPattern; 63 | // /* 不 加 花 纹 */ 64 | // guideView.boxStyle |= WQNonePattern; 65 | 66 | 67 | /************************** 使 用 内 置 引 导 描 述 放 置 样 式 **************************/ 68 | // guideView.messageStyle = WQStyle1; 69 | 70 | 71 | /************************** 设 置 引 导 描 述 字 体 **************************/ 72 | // guideView.messageFont = [UIFont systemFontOfSize:15]; 73 | // guideView.messageColor = [UIColor greenColor]; 74 | 75 | 76 | /************************** 设 置 引 导 描 述 与 引 导 框 距 离 **************************/ 77 | // guideView.space = 10; 78 | 79 | 80 | [self.view addSubview:guideView]; 81 | [guideView showGuide]; 82 | } 83 | 84 | #pragma mark WQGuideViewDelegate 85 | - (void)hideGuide { 86 | NSLog(@"***************** 欢 迎 使 用 WQGuideView *****************"); 87 | } 88 | @end 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /WQGuideView/WQGuideVIew/WQGuideView.h: -------------------------------------------------------------------------------- 1 | // 2 | // WQGuideView.h 3 | // WQGuideView 4 | // 5 | // Created by admin on 16/9/29. 6 | // Copyright © 2016年 SUWQ. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | typedef enum{ 12 | WQNonePattern = 1, /*! 没有花纹 */ 13 | WQPattern = 1 << 1, /*! 有花纹 */ 14 | WQRect = 1 << 2, /*! 方形 */ 15 | WQCircle = 1 << 3, /*! 圆形 */ 16 | WQCustomer = 1 << 4 /*! 自定义引导图形 */ 17 | }WQGuideBoxStyle; 18 | 19 | typedef enum{ 20 | WQStyle0, /*! 引导描述放在引导范围中心上(下)的一边 */ 21 | WQStyle1 /*! 引导描述中心点 x 与引导范围中心一致 */ 22 | }WQGuideMessageStyle; 23 | 24 | @protocol WQGuideViewDelegate 25 | - (void)hideGuide; 26 | @end 27 | 28 | @interface WQGuideView : UIView 29 | /*! 移除引导页面时调用代理 */ 30 | @property (nonatomic, weak) id delegate; 31 | /*! 引导描述与引导框距离,默认为 10 */ 32 | @property (nonatomic, assign) CGFloat space; 33 | /*! 设置引导提示文字字体 */ 34 | @property (nonatomic, strong) UIFont *messageFont; 35 | /*! 设置引导提示文字颜色,默认为白 */ 36 | @property (nonatomic, strong) UIColor *messageColor; 37 | /*! 引导框样式,默认为圆形无边框 */ 38 | @property (nonatomic, assign) WQGuideBoxStyle boxStyle; 39 | /*! 引导描述放置样式,默认为 WQStyle0 */ 40 | @property (nonatomic, assign) WQGuideMessageStyle messageStyle; 41 | /*! 自定义引导框形状,在 style 设置为 WQCustomer 时可用 */ 42 | @property (nonatomic, copy) NSArray *customerShapes; 43 | /*! 花纹大小,默认为 5,在 style 设置为 WQPattern 时可用 */ 44 | @property (nonatomic, assign) CGFloat patternWidth; 45 | 46 | /*! 47 | * 初始化引导页面 48 | * 49 | * @param frame 引导页面的 frame 50 | * @param guides <@"引导描述" : 点击范围> 51 | * 52 | * @return 引导页面 53 | */ 54 | - (WQGuideView *)initWithFrame:(CGRect)frame 55 | guides:(NSArray *> *)guides; 56 | 57 | /*! 58 | * 开始引导 59 | */ 60 | - (void)showGuide; 61 | @end 62 | 63 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /WQGuideView/WQGuideVIew/WQGuideView.m: -------------------------------------------------------------------------------- 1 | // 2 | // WQGuideView.m 3 | // WQGuideView 4 | // 5 | // Created by admin on 16/9/29. 6 | // Copyright © 2016年 SUWQ. All rights reserved. 7 | // 8 | 9 | #import "WQGuideView.h" 10 | 11 | #define sWidth CGRectGetWidth(self.frame) 12 | #define sHeigth CGRectGetHeight(self.frame) 13 | /*! 引导描述距离 guideView 边框大小 */ 14 | #define Margin 10.0 15 | 16 | typedef enum{ 17 | Left = 1, 18 | Right = 1 << 1, 19 | Upper = 1 << 2, 20 | Down = 1 << 3 21 | }WQMessageLocation; 22 | 23 | @interface WQGuideView () 24 | @property (nonatomic, copy) NSArray *> *guides; 25 | @property (nonatomic, assign) NSInteger currentIndex; 26 | @property (nonatomic, strong) UIButton *btnGuide; 27 | @property (nonatomic, strong) UILabel *labMessage; 28 | @property (nonatomic, assign) WQMessageLocation location; 29 | @end 30 | 31 | @implementation WQGuideView 32 | - (WQGuideView *)initWithFrame:(CGRect)frame 33 | guides:(NSArray *> *)guides { 34 | self = [super initWithFrame:frame]; 35 | if (self) { 36 | self.guides = [guides copy]; 37 | self.backgroundColor = [UIColor blackColor]; 38 | self.alpha = 0.8; 39 | 40 | // 默认样式为圆形有花 41 | self.boxStyle = WQCircle; 42 | self.boxStyle |= WQNonePattern; 43 | 44 | // 默认引导样式 45 | self.messageStyle = WQStyle0; 46 | 47 | // 描述与框默认距离 48 | self.space = 10; 49 | 50 | // 默认花边大小 51 | self.patternWidth = 5.f; 52 | 53 | // 点击动作 54 | self.btnGuide = [UIButton buttonWithType:UIButtonTypeRoundedRect]; 55 | self.btnGuide.backgroundColor = [UIColor clearColor]; 56 | [self.btnGuide addTarget:self 57 | action:@selector(nextGuide:) 58 | forControlEvents:UIControlEventTouchUpInside]; 59 | [self addSubview:self.btnGuide]; 60 | 61 | // 引导描述 62 | self.labMessage = [[UILabel alloc] init]; 63 | self.labMessage.textColor = [UIColor whiteColor]; 64 | self.labMessage.numberOfLines = 0; 65 | self.messageFont = [UIFont fontWithName:@"Zapfino" 66 | size:8]; 67 | [self addSubview:self.labMessage]; 68 | } 69 | return self; 70 | } 71 | 72 | - (void)setMessageFont:(UIFont *)messageFont { 73 | _messageFont = messageFont; 74 | self.labMessage.font = messageFont; 75 | } 76 | 77 | - (void)setMessageColor:(UIColor *)messageColor { 78 | _messageColor = messageColor; 79 | self.labMessage.textColor = messageColor; 80 | } 81 | 82 | - (void)showGuide { 83 | self.currentIndex = 0; 84 | [self guideWithIndex:self.currentIndex]; 85 | } 86 | 87 | - (void)guideWithIndex:(NSInteger)index { 88 | if (self.guides.count == 0) { 89 | [self nextGuide:nil]; 90 | return; 91 | } 92 | NSDictionary *dic = self.guides[index]; 93 | CGRect rect = [dic[[[dic allKeys] firstObject]] CGRectValue]; 94 | self.btnGuide.frame = rect; 95 | 96 | // 添加描述 97 | if (self.messageStyle == WQStyle0) { 98 | [self addMessage0:[[dic allKeys] firstObject] 99 | nearRect:rect]; 100 | }else { 101 | [self addMessage1:[[dic allKeys] firstObject] 102 | nearRect:rect]; 103 | } 104 | 105 | UIBezierPath *shapePath; 106 | CGFloat lineWidth = 0.0; 107 | 108 | if (self.boxStyle & WQCircle) { 109 | // 圆形 110 | shapePath = [UIBezierPath bezierPathWithOvalInRect:rect]; 111 | } 112 | 113 | if (self.boxStyle & WQRect) { 114 | // 方形 115 | shapePath = [UIBezierPath bezierPathWithRect:rect]; 116 | } 117 | 118 | if (self.boxStyle & WQNonePattern) { 119 | // 无花纹 120 | lineWidth = 0; 121 | } 122 | 123 | if (self.boxStyle & WQPattern) { 124 | // 有花纹 125 | lineWidth = self.patternWidth; 126 | } 127 | 128 | if (self.boxStyle & WQCustomer) { 129 | // 用户自定义 130 | NSAssert(self.customerShapes.count == self.guides.count, @"自定义引导形状个数和引导个数不一致"); 131 | shapePath = (UIBezierPath *)self.customerShapes[index]; 132 | } 133 | 134 | // 添加圆形空白处 135 | CAShapeLayer *layer = [CAShapeLayer layer]; 136 | UIBezierPath *bezier = [UIBezierPath bezierPathWithRect:self.bounds]; 137 | [bezier appendPath:[shapePath bezierPathByReversingPath]]; 138 | layer.path = bezier.CGPath; 139 | layer.lineWidth = lineWidth; 140 | layer.lineDashPattern = @[@5,@5]; 141 | layer.strokeColor = [UIColor redColor].CGColor; 142 | layer.fillColor = [UIColor redColor].CGColor; 143 | self.layer.mask = layer; 144 | } 145 | 146 | #pragma mark 引导描述放于中心上下的一个边 147 | - (void)addMessage0:(NSString *)message 148 | nearRect:(CGRect)rect{ 149 | CGPoint center = CGPointMake(CGRectGetMidX(rect), 150 | CGRectGetMidY(rect)); 151 | self.location = center.x > sWidth - center.x ? Left : Right; 152 | self.location |= (sHeigth - center.y) > sHeigth/2 ? Down : Upper; 153 | 154 | // 文字最大显示区域 155 | CGSize size = CGSizeMake(self.location & Left ? center.x : sWidth - center.x - Margin, 156 | self.location & Upper ? CGRectGetMinY(rect) - self.space : sHeigth - (self.space + CGRectGetMaxY(rect))); 157 | // 文字长宽 158 | CGRect msgRect = [message boundingRectWithSize:size 159 | options:NSStringDrawingUsesLineFragmentOrigin 160 | attributes:@{NSFontAttributeName : self.labMessage.font} 161 | context:nil]; 162 | CGFloat labY = self.location & Upper ? CGRectGetMinY(rect) - self.space - CGRectGetHeight(msgRect) : CGRectGetMaxY(rect) + self.space; 163 | CGFloat labX = self.location & Left ? center.x - CGRectGetWidth(msgRect) + Margin : center.x; 164 | CGRect labRect = CGRectMake(labX, 165 | labY, 166 | msgRect.size.width, 167 | msgRect.size.height); 168 | self.labMessage.frame = labRect; 169 | self.labMessage.text = message; 170 | } 171 | 172 | - (void)addMessage1:(NSString *)message 173 | nearRect:(CGRect)rect { 174 | CGPoint center = CGPointMake(CGRectGetMidX(rect), 175 | CGRectGetMidY(rect)); 176 | self.location = (sHeigth - center.y) > sHeigth/2 ? Down : Upper; 177 | 178 | // 文字最大显示区域 179 | CGSize size = CGSizeMake(sWidth - Margin*2, 180 | self.location & Upper ? CGRectGetMinY(rect) - self.space : sHeigth - (self.space + CGRectGetMaxY(rect))); 181 | // 文字长宽 182 | CGRect msgRect = [message boundingRectWithSize:size 183 | options:NSStringDrawingUsesLineFragmentOrigin 184 | attributes:@{NSFontAttributeName : self.labMessage.font} 185 | context:nil]; 186 | CGFloat labY = self.location & Upper ? CGRectGetMinY(rect) - self.space - CGRectGetHeight(msgRect) : CGRectGetMaxY(rect) + self.space; 187 | CGFloat labX = 0.0; 188 | if (center.x + msgRect.size.width/2 >= sWidth) { 189 | labX = sWidth - msgRect.size.width - Margin ; 190 | }else if (center.x - msgRect.size.width/2 <= 0){ 191 | labX = Margin; 192 | }else { 193 | labX = CGRectGetMidX(rect) - msgRect.size.width/2; 194 | } 195 | CGRect labRect = CGRectMake(labX, 196 | labY, 197 | msgRect.size.width, 198 | msgRect.size.height); 199 | self.labMessage.frame = labRect; 200 | self.labMessage.text = message; 201 | } 202 | 203 | - (void)nextGuide:(UIButton *)sender { 204 | self.currentIndex ++; 205 | if (self.currentIndex < self.guides.count) { 206 | [self guideWithIndex:self.currentIndex]; 207 | return; 208 | } 209 | 210 | [self removeFromSuperview]; 211 | if ([self.delegate respondsToSelector:@selector(hideGuide)]) { 212 | [self.delegate hideGuide]; 213 | } 214 | } 215 | @end 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | -------------------------------------------------------------------------------- /WQGuideView/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // WQGuideView 4 | // 5 | // Created by admin on 16/9/29. 6 | // Copyright © 2016年 SUWQ. 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 | -------------------------------------------------------------------------------- /WQGuideViewTests/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 | -------------------------------------------------------------------------------- /WQGuideViewTests/WQGuideViewTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // WQGuideViewTests.m 3 | // WQGuideViewTests 4 | // 5 | // Created by admin on 16/9/29. 6 | // Copyright © 2016年 SUWQ. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface WQGuideViewTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation WQGuideViewTests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | // Put setup code here. This method is called before the invocation of each test method in the class. 20 | } 21 | 22 | - (void)tearDown { 23 | // Put teardown code here. This method is called after the invocation of each test method in the class. 24 | [super tearDown]; 25 | } 26 | 27 | - (void)testExample { 28 | // This is an example of a functional test case. 29 | // Use XCTAssert and related functions to verify your tests produce the correct results. 30 | } 31 | 32 | - (void)testPerformanceExample { 33 | // This is an example of a performance test case. 34 | [self measureBlock:^{ 35 | // Put the code you want to measure the time of here. 36 | }]; 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /WQGuideViewUITests/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 | -------------------------------------------------------------------------------- /WQGuideViewUITests/WQGuideViewUITests.m: -------------------------------------------------------------------------------- 1 | // 2 | // WQGuideViewUITests.m 3 | // WQGuideViewUITests 4 | // 5 | // Created by admin on 16/9/29. 6 | // Copyright © 2016年 SUWQ. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface WQGuideViewUITests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation WQGuideViewUITests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | 22 | // In UI tests it is usually best to stop immediately when a failure occurs. 23 | self.continueAfterFailure = NO; 24 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 25 | [[[XCUIApplication alloc] init] launch]; 26 | 27 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 28 | } 29 | 30 | - (void)tearDown { 31 | // Put teardown code here. This method is called after the invocation of each test method in the class. 32 | [super tearDown]; 33 | } 34 | 35 | - (void)testExample { 36 | // Use recording to get started writing UI tests. 37 | // Use XCTAssert and related functions to verify your tests produce the correct results. 38 | } 39 | 40 | @end 41 | --------------------------------------------------------------------------------