├── ._MSSCrollGuideView.gif ├── ._MSSCrollGuideView.xcodeproj ├── .gitignore ├── LICENSE ├── MSSCrollGuideView.gif ├── MSSCrollGuideView.xcodeproj ├── ._project.xcworkspace ├── project.pbxproj └── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ └── IDEWorkspaceChecks.plist ├── MSSCrollGuideView ├── ._ViewController.m ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── icon-1024@2x.png │ │ ├── icon-20-ipad.png │ │ ├── icon-20@2x-ipad.png │ │ ├── icon-20@2x.png │ │ ├── icon-20@3x.png │ │ ├── icon-29-ipad.png │ │ ├── icon-29.png │ │ ├── icon-29@2x-ipad.png │ │ ├── icon-29@2x.png │ │ ├── icon-29@3x.png │ │ ├── icon-40.png │ │ ├── icon-40@2x.png │ │ ├── icon-40@3x.png │ │ ├── icon-50.png │ │ ├── icon-50@2x.png │ │ ├── icon-57.png │ │ ├── icon-57@2x.png │ │ ├── icon-60@2x.png │ │ ├── icon-60@3x.png │ │ ├── icon-72.png │ │ ├── icon-72@2x.png │ │ ├── icon-76.png │ │ ├── icon-76@2x.png │ │ └── icon-83.5@2x.png │ ├── Contents.json │ └── LaunchImage.launchimage │ │ ├── 1125iPhonePortraitiOS89_1125x2436pt@2x.png │ │ ├── 1125iPhonePortraitiOS89_1125x2436pt@2xiPhonePortraitiOS56_320x480pt@2x.png │ │ ├── 1125iPhonePortraitiOS89_1125x2436pt@2xiPhonePortraitiOS56_320x568pt@2x.png │ │ ├── 1125iPhonePortraitiOS89_1125x2436pt@2xiPhonePortraitiOS8_375x667pt@2x.png │ │ ├── 1125iPhonePortraitiOS89_1125x2436pt@2xiPhonePortraitiOS8_414x736pt@3x.png │ │ └── Contents.json ├── Info.plist ├── MSScrollGuideView │ ├── ._MSScrollGuideView.h │ ├── ._MSScrollGuideViewHeader.h │ ├── MSScrollGuideView.h │ ├── MSScrollGuideView.m │ ├── MSScrollGuideViewHeader.h │ └── Resource │ │ ├── dragonball.jpg │ │ ├── scrollGuideFingerPicture@2x.png │ │ └── scrollGuideFingerPicture@3x.png ├── Other │ ├── ._main.m │ ├── AppDelegate.h │ ├── AppDelegate.m │ └── main.m ├── ViewController.h └── ViewController.m ├── MSSCrollGuideView2.gif └── README.md /._MSSCrollGuideView.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/._MSSCrollGuideView.gif -------------------------------------------------------------------------------- /._MSSCrollGuideView.xcodeproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/._MSSCrollGuideView.xcodeproj -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## User settings 6 | xcuserdata/ 7 | 8 | ## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9) 9 | *.xcscmblueprint 10 | *.xccheckout 11 | 12 | ## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4) 13 | build/ 14 | DerivedData/ 15 | *.moved-aside 16 | *.pbxuser 17 | !default.pbxuser 18 | *.mode1v3 19 | !default.mode1v3 20 | *.mode2v3 21 | !default.mode2v3 22 | *.perspectivev3 23 | !default.perspectivev3 24 | 25 | ## Obj-C/Swift specific 26 | *.hmap 27 | 28 | ## App packaging 29 | *.ipa 30 | *.dSYM.zip 31 | *.dSYM 32 | 33 | # CocoaPods 34 | # 35 | # We recommend against adding the Pods directory to your .gitignore. However 36 | # you should judge for yourself, the pros and cons are mentioned at: 37 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 38 | # 39 | # Pods/ 40 | # 41 | # Add this line if you want to avoid checking in source code from the Xcode workspace 42 | # *.xcworkspace 43 | 44 | # Carthage 45 | # 46 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 47 | # Carthage/Checkouts 48 | 49 | Carthage/Build/ 50 | 51 | # fastlane 52 | # 53 | # It is recommended to not store the screenshots in the git repo. 54 | # Instead, use fastlane to re-generate the screenshots whenever they are needed. 55 | # For more information about the recommended setup visit: 56 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 57 | 58 | fastlane/report.xml 59 | fastlane/Preview.html 60 | fastlane/screenshots/**/*.png 61 | fastlane/test_output 62 | 63 | # Code Injection 64 | # 65 | # After new code Injection tools there's a generated folder /iOSInjectionProject 66 | # https://github.com/johnno1962/injectionforxcode 67 | 68 | iOSInjectionProject/ 69 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 sureJiang 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 | -------------------------------------------------------------------------------- /MSSCrollGuideView.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView.gif -------------------------------------------------------------------------------- /MSSCrollGuideView.xcodeproj/._project.xcworkspace: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView.xcodeproj/._project.xcworkspace -------------------------------------------------------------------------------- /MSSCrollGuideView.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 48; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 0ED3CB192414B52800CE528F /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 0ED3CB182414B52800CE528F /* AppDelegate.m */; }; 11 | 0ED3CB1F2414B52800CE528F /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0ED3CB1E2414B52800CE528F /* ViewController.m */; }; 12 | 0ED3CB242414B52B00CE528F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0ED3CB232414B52B00CE528F /* Assets.xcassets */; }; 13 | 0ED3CB2A2414B52B00CE528F /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 0ED3CB292414B52B00CE528F /* main.m */; }; 14 | 0ED3CB4E2414B53600CE528F /* MSScrollGuideView.m in Sources */ = {isa = PBXBuildFile; fileRef = 0ED3CB4C2414B53600CE528F /* MSScrollGuideView.m */; }; 15 | 0ED3CB542414BAA300CE528F /* scrollGuideFingerPicture@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 0ED3CB522414BAA200CE528F /* scrollGuideFingerPicture@2x.png */; }; 16 | 0ED3CB552414BAA300CE528F /* scrollGuideFingerPicture@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 0ED3CB532414BAA300CE528F /* scrollGuideFingerPicture@3x.png */; }; 17 | 0ED3CB582414C14A00CE528F /* dragonball.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 0ED3CB572414C14A00CE528F /* dragonball.jpg */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXFileReference section */ 21 | 0ED3CB142414B52800CE528F /* MSSCrollGuideView.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MSSCrollGuideView.app; sourceTree = BUILT_PRODUCTS_DIR; }; 22 | 0ED3CB172414B52800CE528F /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 23 | 0ED3CB182414B52800CE528F /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 24 | 0ED3CB1D2414B52800CE528F /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 25 | 0ED3CB1E2414B52800CE528F /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 26 | 0ED3CB232414B52B00CE528F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 27 | 0ED3CB282414B52B00CE528F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 28 | 0ED3CB292414B52B00CE528F /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 29 | 0ED3CB4C2414B53600CE528F /* MSScrollGuideView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MSScrollGuideView.m; sourceTree = ""; }; 30 | 0ED3CB4D2414B53600CE528F /* MSScrollGuideView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MSScrollGuideView.h; sourceTree = ""; }; 31 | 0ED3CB4F2414B54B00CE528F /* MSScrollGuideViewHeader.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MSScrollGuideViewHeader.h; sourceTree = ""; }; 32 | 0ED3CB522414BAA200CE528F /* scrollGuideFingerPicture@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "scrollGuideFingerPicture@2x.png"; sourceTree = ""; }; 33 | 0ED3CB532414BAA300CE528F /* scrollGuideFingerPicture@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "scrollGuideFingerPicture@3x.png"; sourceTree = ""; }; 34 | 0ED3CB572414C14A00CE528F /* dragonball.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = dragonball.jpg; sourceTree = ""; }; 35 | /* End PBXFileReference section */ 36 | 37 | /* Begin PBXFrameworksBuildPhase section */ 38 | 0ED3CB112414B52800CE528F /* Frameworks */ = { 39 | isa = PBXFrameworksBuildPhase; 40 | buildActionMask = 2147483647; 41 | files = ( 42 | ); 43 | runOnlyForDeploymentPostprocessing = 0; 44 | }; 45 | /* End PBXFrameworksBuildPhase section */ 46 | 47 | /* Begin PBXGroup section */ 48 | 0ED3CB0B2414B52800CE528F = { 49 | isa = PBXGroup; 50 | children = ( 51 | 0ED3CB162414B52800CE528F /* MSSCrollGuideView */, 52 | 0ED3CB152414B52800CE528F /* Products */, 53 | ); 54 | sourceTree = ""; 55 | }; 56 | 0ED3CB152414B52800CE528F /* Products */ = { 57 | isa = PBXGroup; 58 | children = ( 59 | 0ED3CB142414B52800CE528F /* MSSCrollGuideView.app */, 60 | ); 61 | name = Products; 62 | sourceTree = ""; 63 | }; 64 | 0ED3CB162414B52800CE528F /* MSSCrollGuideView */ = { 65 | isa = PBXGroup; 66 | children = ( 67 | 0ED3CB1D2414B52800CE528F /* ViewController.h */, 68 | 0ED3CB1E2414B52800CE528F /* ViewController.m */, 69 | 0ED3CB502414B9A400CE528F /* MSScrollGuideView */, 70 | 0ED3CB512414B9AD00CE528F /* Other */, 71 | 0ED3CB232414B52B00CE528F /* Assets.xcassets */, 72 | 0ED3CB282414B52B00CE528F /* Info.plist */, 73 | ); 74 | path = MSSCrollGuideView; 75 | sourceTree = ""; 76 | }; 77 | 0ED3CB502414B9A400CE528F /* MSScrollGuideView */ = { 78 | isa = PBXGroup; 79 | children = ( 80 | 0ED3CB4F2414B54B00CE528F /* MSScrollGuideViewHeader.h */, 81 | 0ED3CB4D2414B53600CE528F /* MSScrollGuideView.h */, 82 | 0ED3CB4C2414B53600CE528F /* MSScrollGuideView.m */, 83 | 0ED3CB562414BAAC00CE528F /* Resource */, 84 | ); 85 | path = MSScrollGuideView; 86 | sourceTree = ""; 87 | }; 88 | 0ED3CB512414B9AD00CE528F /* Other */ = { 89 | isa = PBXGroup; 90 | children = ( 91 | 0ED3CB172414B52800CE528F /* AppDelegate.h */, 92 | 0ED3CB182414B52800CE528F /* AppDelegate.m */, 93 | 0ED3CB292414B52B00CE528F /* main.m */, 94 | ); 95 | path = Other; 96 | sourceTree = ""; 97 | }; 98 | 0ED3CB562414BAAC00CE528F /* Resource */ = { 99 | isa = PBXGroup; 100 | children = ( 101 | 0ED3CB572414C14A00CE528F /* dragonball.jpg */, 102 | 0ED3CB522414BAA200CE528F /* scrollGuideFingerPicture@2x.png */, 103 | 0ED3CB532414BAA300CE528F /* scrollGuideFingerPicture@3x.png */, 104 | ); 105 | path = Resource; 106 | sourceTree = ""; 107 | }; 108 | /* End PBXGroup section */ 109 | 110 | /* Begin PBXNativeTarget section */ 111 | 0ED3CB132414B52800CE528F /* MSSCrollGuideView */ = { 112 | isa = PBXNativeTarget; 113 | buildConfigurationList = 0ED3CB432414B52C00CE528F /* Build configuration list for PBXNativeTarget "MSSCrollGuideView" */; 114 | buildPhases = ( 115 | 0ED3CB102414B52800CE528F /* Sources */, 116 | 0ED3CB112414B52800CE528F /* Frameworks */, 117 | 0ED3CB122414B52800CE528F /* Resources */, 118 | ); 119 | buildRules = ( 120 | ); 121 | dependencies = ( 122 | ); 123 | name = MSSCrollGuideView; 124 | productName = MSSCrollGuideView; 125 | productReference = 0ED3CB142414B52800CE528F /* MSSCrollGuideView.app */; 126 | productType = "com.apple.product-type.application"; 127 | }; 128 | /* End PBXNativeTarget section */ 129 | 130 | /* Begin PBXProject section */ 131 | 0ED3CB0C2414B52800CE528F /* Project object */ = { 132 | isa = PBXProject; 133 | attributes = { 134 | LastUpgradeCheck = 1130; 135 | ORGANIZATIONNAME = demo; 136 | TargetAttributes = { 137 | 0ED3CB132414B52800CE528F = { 138 | CreatedOnToolsVersion = 11.3.1; 139 | }; 140 | }; 141 | }; 142 | buildConfigurationList = 0ED3CB0F2414B52800CE528F /* Build configuration list for PBXProject "MSSCrollGuideView" */; 143 | compatibilityVersion = "Xcode 6.0"; 144 | developmentRegion = en; 145 | hasScannedForEncodings = 0; 146 | knownRegions = ( 147 | en, 148 | Base, 149 | ); 150 | mainGroup = 0ED3CB0B2414B52800CE528F; 151 | productRefGroup = 0ED3CB152414B52800CE528F /* Products */; 152 | projectDirPath = ""; 153 | projectRoot = ""; 154 | targets = ( 155 | 0ED3CB132414B52800CE528F /* MSSCrollGuideView */, 156 | ); 157 | }; 158 | /* End PBXProject section */ 159 | 160 | /* Begin PBXResourcesBuildPhase section */ 161 | 0ED3CB122414B52800CE528F /* Resources */ = { 162 | isa = PBXResourcesBuildPhase; 163 | buildActionMask = 2147483647; 164 | files = ( 165 | 0ED3CB552414BAA300CE528F /* scrollGuideFingerPicture@3x.png in Resources */, 166 | 0ED3CB542414BAA300CE528F /* scrollGuideFingerPicture@2x.png in Resources */, 167 | 0ED3CB582414C14A00CE528F /* dragonball.jpg in Resources */, 168 | 0ED3CB242414B52B00CE528F /* Assets.xcassets in Resources */, 169 | ); 170 | runOnlyForDeploymentPostprocessing = 0; 171 | }; 172 | /* End PBXResourcesBuildPhase section */ 173 | 174 | /* Begin PBXSourcesBuildPhase section */ 175 | 0ED3CB102414B52800CE528F /* Sources */ = { 176 | isa = PBXSourcesBuildPhase; 177 | buildActionMask = 2147483647; 178 | files = ( 179 | 0ED3CB1F2414B52800CE528F /* ViewController.m in Sources */, 180 | 0ED3CB192414B52800CE528F /* AppDelegate.m in Sources */, 181 | 0ED3CB4E2414B53600CE528F /* MSScrollGuideView.m in Sources */, 182 | 0ED3CB2A2414B52B00CE528F /* main.m in Sources */, 183 | ); 184 | runOnlyForDeploymentPostprocessing = 0; 185 | }; 186 | /* End PBXSourcesBuildPhase section */ 187 | 188 | /* Begin XCBuildConfiguration section */ 189 | 0ED3CB412414B52C00CE528F /* Debug */ = { 190 | isa = XCBuildConfiguration; 191 | buildSettings = { 192 | ALWAYS_SEARCH_USER_PATHS = NO; 193 | CLANG_ANALYZER_NONNULL = YES; 194 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 195 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 196 | CLANG_CXX_LIBRARY = "libc++"; 197 | CLANG_ENABLE_MODULES = YES; 198 | CLANG_ENABLE_OBJC_ARC = YES; 199 | CLANG_ENABLE_OBJC_WEAK = YES; 200 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 201 | CLANG_WARN_BOOL_CONVERSION = YES; 202 | CLANG_WARN_COMMA = YES; 203 | CLANG_WARN_CONSTANT_CONVERSION = YES; 204 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 205 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 206 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 207 | CLANG_WARN_EMPTY_BODY = YES; 208 | CLANG_WARN_ENUM_CONVERSION = YES; 209 | CLANG_WARN_INFINITE_RECURSION = YES; 210 | CLANG_WARN_INT_CONVERSION = YES; 211 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 212 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 213 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 214 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 215 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 216 | CLANG_WARN_STRICT_PROTOTYPES = YES; 217 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 218 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 219 | CLANG_WARN_UNREACHABLE_CODE = YES; 220 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 221 | COPY_PHASE_STRIP = NO; 222 | DEBUG_INFORMATION_FORMAT = dwarf; 223 | ENABLE_STRICT_OBJC_MSGSEND = YES; 224 | ENABLE_TESTABILITY = YES; 225 | GCC_C_LANGUAGE_STANDARD = gnu11; 226 | GCC_DYNAMIC_NO_PIC = NO; 227 | GCC_NO_COMMON_BLOCKS = YES; 228 | GCC_OPTIMIZATION_LEVEL = 0; 229 | GCC_PREPROCESSOR_DEFINITIONS = ( 230 | "DEBUG=1", 231 | "$(inherited)", 232 | ); 233 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 234 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 235 | GCC_WARN_UNDECLARED_SELECTOR = YES; 236 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 237 | GCC_WARN_UNUSED_FUNCTION = YES; 238 | GCC_WARN_UNUSED_VARIABLE = YES; 239 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 240 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 241 | MTL_FAST_MATH = YES; 242 | ONLY_ACTIVE_ARCH = YES; 243 | SDKROOT = iphoneos; 244 | }; 245 | name = Debug; 246 | }; 247 | 0ED3CB422414B52C00CE528F /* Release */ = { 248 | isa = XCBuildConfiguration; 249 | buildSettings = { 250 | ALWAYS_SEARCH_USER_PATHS = NO; 251 | CLANG_ANALYZER_NONNULL = YES; 252 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 253 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 254 | CLANG_CXX_LIBRARY = "libc++"; 255 | CLANG_ENABLE_MODULES = YES; 256 | CLANG_ENABLE_OBJC_ARC = YES; 257 | CLANG_ENABLE_OBJC_WEAK = YES; 258 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 259 | CLANG_WARN_BOOL_CONVERSION = YES; 260 | CLANG_WARN_COMMA = YES; 261 | CLANG_WARN_CONSTANT_CONVERSION = YES; 262 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 263 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 264 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 265 | CLANG_WARN_EMPTY_BODY = YES; 266 | CLANG_WARN_ENUM_CONVERSION = YES; 267 | CLANG_WARN_INFINITE_RECURSION = YES; 268 | CLANG_WARN_INT_CONVERSION = YES; 269 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 270 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 271 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 272 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 273 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 274 | CLANG_WARN_STRICT_PROTOTYPES = YES; 275 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 276 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 277 | CLANG_WARN_UNREACHABLE_CODE = YES; 278 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 279 | COPY_PHASE_STRIP = NO; 280 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 281 | ENABLE_NS_ASSERTIONS = NO; 282 | ENABLE_STRICT_OBJC_MSGSEND = YES; 283 | GCC_C_LANGUAGE_STANDARD = gnu11; 284 | GCC_NO_COMMON_BLOCKS = YES; 285 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 286 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 287 | GCC_WARN_UNDECLARED_SELECTOR = YES; 288 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 289 | GCC_WARN_UNUSED_FUNCTION = YES; 290 | GCC_WARN_UNUSED_VARIABLE = YES; 291 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 292 | MTL_ENABLE_DEBUG_INFO = NO; 293 | MTL_FAST_MATH = YES; 294 | SDKROOT = iphoneos; 295 | VALIDATE_PRODUCT = YES; 296 | }; 297 | name = Release; 298 | }; 299 | 0ED3CB442414B52C00CE528F /* Debug */ = { 300 | isa = XCBuildConfiguration; 301 | buildSettings = { 302 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 303 | CODE_SIGN_STYLE = Automatic; 304 | DEVELOPMENT_TEAM = GB67CKZBHU; 305 | INFOPLIST_FILE = MSSCrollGuideView/Info.plist; 306 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 307 | LD_RUNPATH_SEARCH_PATHS = ( 308 | "$(inherited)", 309 | "@executable_path/Frameworks", 310 | ); 311 | PRODUCT_BUNDLE_IDENTIFIER = com.yaymedialabs.putongxxxx; 312 | PRODUCT_NAME = "$(TARGET_NAME)"; 313 | TARGETED_DEVICE_FAMILY = 1; 314 | }; 315 | name = Debug; 316 | }; 317 | 0ED3CB452414B52C00CE528F /* Release */ = { 318 | isa = XCBuildConfiguration; 319 | buildSettings = { 320 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 321 | CODE_SIGN_STYLE = Automatic; 322 | DEVELOPMENT_TEAM = GB67CKZBHU; 323 | INFOPLIST_FILE = MSSCrollGuideView/Info.plist; 324 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 325 | LD_RUNPATH_SEARCH_PATHS = ( 326 | "$(inherited)", 327 | "@executable_path/Frameworks", 328 | ); 329 | PRODUCT_BUNDLE_IDENTIFIER = com.yaymedialabs.putongxxxx; 330 | PRODUCT_NAME = "$(TARGET_NAME)"; 331 | TARGETED_DEVICE_FAMILY = 1; 332 | }; 333 | name = Release; 334 | }; 335 | /* End XCBuildConfiguration section */ 336 | 337 | /* Begin XCConfigurationList section */ 338 | 0ED3CB0F2414B52800CE528F /* Build configuration list for PBXProject "MSSCrollGuideView" */ = { 339 | isa = XCConfigurationList; 340 | buildConfigurations = ( 341 | 0ED3CB412414B52C00CE528F /* Debug */, 342 | 0ED3CB422414B52C00CE528F /* Release */, 343 | ); 344 | defaultConfigurationIsVisible = 0; 345 | defaultConfigurationName = Release; 346 | }; 347 | 0ED3CB432414B52C00CE528F /* Build configuration list for PBXNativeTarget "MSSCrollGuideView" */ = { 348 | isa = XCConfigurationList; 349 | buildConfigurations = ( 350 | 0ED3CB442414B52C00CE528F /* Debug */, 351 | 0ED3CB452414B52C00CE528F /* Release */, 352 | ); 353 | defaultConfigurationIsVisible = 0; 354 | defaultConfigurationName = Release; 355 | }; 356 | /* End XCConfigurationList section */ 357 | }; 358 | rootObject = 0ED3CB0C2414B52800CE528F /* Project object */; 359 | } 360 | -------------------------------------------------------------------------------- /MSSCrollGuideView.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /MSSCrollGuideView.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /MSSCrollGuideView/._ViewController.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/._ViewController.m -------------------------------------------------------------------------------- /MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "icon-20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "icon-20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "icon-29.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "icon-29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "icon-29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "icon-40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "icon-40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "57x57", 47 | "idiom" : "iphone", 48 | "filename" : "icon-57.png", 49 | "scale" : "1x" 50 | }, 51 | { 52 | "size" : "57x57", 53 | "idiom" : "iphone", 54 | "filename" : "icon-57@2x.png", 55 | "scale" : "2x" 56 | }, 57 | { 58 | "size" : "60x60", 59 | "idiom" : "iphone", 60 | "filename" : "icon-60@2x.png", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "size" : "60x60", 65 | "idiom" : "iphone", 66 | "filename" : "icon-60@3x.png", 67 | "scale" : "3x" 68 | }, 69 | { 70 | "size" : "20x20", 71 | "idiom" : "ipad", 72 | "filename" : "icon-20-ipad.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "20x20", 77 | "idiom" : "ipad", 78 | "filename" : "icon-20@2x-ipad.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "29x29", 83 | "idiom" : "ipad", 84 | "filename" : "icon-29-ipad.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "29x29", 89 | "idiom" : "ipad", 90 | "filename" : "icon-29@2x-ipad.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "40x40", 95 | "idiom" : "ipad", 96 | "filename" : "icon-40.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "40x40", 101 | "idiom" : "ipad", 102 | "filename" : "icon-40@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "50x50", 107 | "idiom" : "ipad", 108 | "filename" : "icon-50.png", 109 | "scale" : "1x" 110 | }, 111 | { 112 | "size" : "50x50", 113 | "idiom" : "ipad", 114 | "filename" : "icon-50@2x.png", 115 | "scale" : "2x" 116 | }, 117 | { 118 | "size" : "72x72", 119 | "idiom" : "ipad", 120 | "filename" : "icon-72.png", 121 | "scale" : "1x" 122 | }, 123 | { 124 | "size" : "72x72", 125 | "idiom" : "ipad", 126 | "filename" : "icon-72@2x.png", 127 | "scale" : "2x" 128 | }, 129 | { 130 | "size" : "76x76", 131 | "idiom" : "ipad", 132 | "filename" : "icon-76.png", 133 | "scale" : "1x" 134 | }, 135 | { 136 | "size" : "76x76", 137 | "idiom" : "ipad", 138 | "filename" : "icon-76@2x.png", 139 | "scale" : "2x" 140 | }, 141 | { 142 | "size" : "83.5x83.5", 143 | "idiom" : "ipad", 144 | "filename" : "icon-83.5@2x.png", 145 | "scale" : "2x" 146 | }, 147 | { 148 | "size" : "1024x1024", 149 | "idiom" : "ios-marketing", 150 | "filename" : "icon-1024@2x.png", 151 | "scale" : "1x" 152 | } 153 | ], 154 | "info" : { 155 | "version" : 1, 156 | "author" : "xcode" 157 | } 158 | } -------------------------------------------------------------------------------- /MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-1024@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-1024@2x.png -------------------------------------------------------------------------------- /MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-20-ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-20-ipad.png -------------------------------------------------------------------------------- /MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-20@2x-ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-20@2x-ipad.png -------------------------------------------------------------------------------- /MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png -------------------------------------------------------------------------------- /MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-20@3x.png -------------------------------------------------------------------------------- /MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-29-ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-29-ipad.png -------------------------------------------------------------------------------- /MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-29.png -------------------------------------------------------------------------------- /MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-29@2x-ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-29@2x-ipad.png -------------------------------------------------------------------------------- /MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png -------------------------------------------------------------------------------- /MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png -------------------------------------------------------------------------------- /MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-40.png -------------------------------------------------------------------------------- /MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png -------------------------------------------------------------------------------- /MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png -------------------------------------------------------------------------------- /MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-50.png -------------------------------------------------------------------------------- /MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-50@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-50@2x.png -------------------------------------------------------------------------------- /MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-57.png -------------------------------------------------------------------------------- /MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-57@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-57@2x.png -------------------------------------------------------------------------------- /MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png -------------------------------------------------------------------------------- /MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png -------------------------------------------------------------------------------- /MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-72.png -------------------------------------------------------------------------------- /MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-72@2x.png -------------------------------------------------------------------------------- /MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-76.png -------------------------------------------------------------------------------- /MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png -------------------------------------------------------------------------------- /MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png -------------------------------------------------------------------------------- /MSSCrollGuideView/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /MSSCrollGuideView/Assets.xcassets/LaunchImage.launchimage/1125iPhonePortraitiOS89_1125x2436pt@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/Assets.xcassets/LaunchImage.launchimage/1125iPhonePortraitiOS89_1125x2436pt@2x.png -------------------------------------------------------------------------------- /MSSCrollGuideView/Assets.xcassets/LaunchImage.launchimage/1125iPhonePortraitiOS89_1125x2436pt@2xiPhonePortraitiOS56_320x480pt@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/Assets.xcassets/LaunchImage.launchimage/1125iPhonePortraitiOS89_1125x2436pt@2xiPhonePortraitiOS56_320x480pt@2x.png -------------------------------------------------------------------------------- /MSSCrollGuideView/Assets.xcassets/LaunchImage.launchimage/1125iPhonePortraitiOS89_1125x2436pt@2xiPhonePortraitiOS56_320x568pt@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/Assets.xcassets/LaunchImage.launchimage/1125iPhonePortraitiOS89_1125x2436pt@2xiPhonePortraitiOS56_320x568pt@2x.png -------------------------------------------------------------------------------- /MSSCrollGuideView/Assets.xcassets/LaunchImage.launchimage/1125iPhonePortraitiOS89_1125x2436pt@2xiPhonePortraitiOS8_375x667pt@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/Assets.xcassets/LaunchImage.launchimage/1125iPhonePortraitiOS89_1125x2436pt@2xiPhonePortraitiOS8_375x667pt@2x.png -------------------------------------------------------------------------------- /MSSCrollGuideView/Assets.xcassets/LaunchImage.launchimage/1125iPhonePortraitiOS89_1125x2436pt@2xiPhonePortraitiOS8_414x736pt@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/Assets.xcassets/LaunchImage.launchimage/1125iPhonePortraitiOS89_1125x2436pt@2xiPhonePortraitiOS8_414x736pt@3x.png -------------------------------------------------------------------------------- /MSSCrollGuideView/Assets.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "iphone", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "12.0", 8 | "subtype" : "2688h", 9 | "scale" : "3x" 10 | }, 11 | { 12 | "orientation" : "portrait", 13 | "idiom" : "iphone", 14 | "extent" : "full-screen", 15 | "minimum-system-version" : "12.0", 16 | "subtype" : "1792h", 17 | "scale" : "2x" 18 | }, 19 | { 20 | "extent" : "full-screen", 21 | "idiom" : "iphone", 22 | "subtype" : "2436h", 23 | "filename" : "1125iPhonePortraitiOS89_1125x2436pt@2x.png", 24 | "minimum-system-version" : "11.0", 25 | "orientation" : "portrait", 26 | "scale" : "3x" 27 | }, 28 | { 29 | "extent" : "full-screen", 30 | "idiom" : "iphone", 31 | "subtype" : "736h", 32 | "filename" : "1125iPhonePortraitiOS89_1125x2436pt@2xiPhonePortraitiOS8_414x736pt@3x.png", 33 | "minimum-system-version" : "8.0", 34 | "orientation" : "portrait", 35 | "scale" : "3x" 36 | }, 37 | { 38 | "extent" : "full-screen", 39 | "idiom" : "iphone", 40 | "subtype" : "667h", 41 | "filename" : "1125iPhonePortraitiOS89_1125x2436pt@2xiPhonePortraitiOS8_375x667pt@2x.png", 42 | "minimum-system-version" : "8.0", 43 | "orientation" : "portrait", 44 | "scale" : "2x" 45 | }, 46 | { 47 | "orientation" : "portrait", 48 | "idiom" : "iphone", 49 | "filename" : "1125iPhonePortraitiOS89_1125x2436pt@2xiPhonePortraitiOS56_320x480pt@2x.png", 50 | "extent" : "full-screen", 51 | "minimum-system-version" : "7.0", 52 | "scale" : "2x" 53 | }, 54 | { 55 | "orientation" : "portrait", 56 | "idiom" : "iphone", 57 | "extent" : "full-screen", 58 | "minimum-system-version" : "7.0", 59 | "subtype" : "retina4", 60 | "scale" : "2x" 61 | }, 62 | { 63 | "orientation" : "portrait", 64 | "idiom" : "iphone", 65 | "extent" : "full-screen", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "orientation" : "portrait", 70 | "idiom" : "iphone", 71 | "extent" : "full-screen", 72 | "scale" : "2x" 73 | }, 74 | { 75 | "orientation" : "portrait", 76 | "idiom" : "iphone", 77 | "filename" : "1125iPhonePortraitiOS89_1125x2436pt@2xiPhonePortraitiOS56_320x568pt@2x.png", 78 | "extent" : "full-screen", 79 | "subtype" : "retina4", 80 | "scale" : "2x" 81 | } 82 | ], 83 | "info" : { 84 | "version" : 1, 85 | "author" : "xcode" 86 | } 87 | } -------------------------------------------------------------------------------- /MSSCrollGuideView/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 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 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 | 33 | UISupportedInterfaceOrientations~ipad 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationPortraitUpsideDown 37 | UIInterfaceOrientationLandscapeLeft 38 | UIInterfaceOrientationLandscapeRight 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /MSSCrollGuideView/MSScrollGuideView/._MSScrollGuideView.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/MSScrollGuideView/._MSScrollGuideView.h -------------------------------------------------------------------------------- /MSSCrollGuideView/MSScrollGuideView/._MSScrollGuideViewHeader.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/MSScrollGuideView/._MSScrollGuideViewHeader.h -------------------------------------------------------------------------------- /MSSCrollGuideView/MSScrollGuideView/MSScrollGuideView.h: -------------------------------------------------------------------------------- 1 | // 2 | // MSScrollGuideView.h 3 | // 4 | // 5 | // Created by jiang on 19/2/2015. 6 | // Copyright © 2015 jiang. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "MSScrollGuideViewHeader.h" 11 | 12 | NS_ASSUME_NONNULL_BEGIN 13 | 14 | @interface MSScrollGuideView : UIView 15 | 16 | - (instancetype)initWithContainer:(UIView *)container; 17 | 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | -------------------------------------------------------------------------------- /MSSCrollGuideView/MSScrollGuideView/MSScrollGuideView.m: -------------------------------------------------------------------------------- 1 | // 2 | // ScrollGuideView.m 3 | // 4 | // 5 | // Created by jiang 6 | // Copyright © 2015 jiang. All rights reserved. 7 | // Support background configuration of animation execution time and animation execution interval through timer 8 | 9 | #import "MSScrollGuideView.h" 10 | 11 | @interface MSScrollGuideView() 12 | 13 | @property(nonatomic,strong)dispatch_source_t timer; 14 | @property(nonatomic,strong)UILabel* txtLabel; 15 | @property(nonatomic,strong)UIView* lineView; 16 | @property(nonatomic,assign)BOOL isSuspend; 17 | @property(nonatomic,weak) UIView* container; 18 | @property(nonatomic,strong)UIView* contentView; 19 | @property(nonatomic,strong)UIImageView* gestureImageView; 20 | 21 | @end 22 | 23 | @implementation MSScrollGuideView 24 | 25 | @synthesize delegate = _delegate; 26 | @synthesize removeBlock = _removeBlock; 27 | @synthesize scrollGuideViewScollUpBlock = _scrollGuideViewScollUpBlock; 28 | @synthesize scrollGuideViewScollDownBlock = _scrollGuideViewScollDownBlock; 29 | 30 | - (void)dealloc { 31 | [self removeNotifications]; 32 | } 33 | 34 | - (instancetype)initWithContainer:(UIView *)container { 35 | if (self = [super init]) { 36 | [self setUpSubviews]; 37 | self.frame = UIScreen.mainScreen.bounds; 38 | self.container = container; 39 | } 40 | return self; 41 | } 42 | 43 | - (void)scrollGuideRemoveFromSuperView { 44 | [self removeFromSuperview]; 45 | } 46 | 47 | -(void)beforAnimationConfig { 48 | [self setUpEventHandling]; 49 | [self.container addSubview:self]; 50 | } 51 | 52 | - (void)startAllAnimation { 53 | [self beforAnimationConfig]; 54 | [UIView animateWithDuration:0.3 animations:^{ 55 | [self firstAniamtion]; 56 | }completion:^(BOOL finished) { 57 | [self showSlideAnimation]; 58 | }]; 59 | } 60 | 61 | - (void)showSlideAnimation { 62 | __weak typeof(self) weakSelf = self; 63 | dispatch_source_set_event_handler(self.timer, ^{ 64 | [weakSelf setUpSubviews]; 65 | [weakSelf firstAniamtion]; 66 | [weakSelf startAnimation]; 67 | [weakSelf suspendTimer]; 68 | dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(kAnimationDuration * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ 69 | if (weakSelf.isSuspend) { 70 | [weakSelf performSelector:@selector(resumeTime) withObject:nil afterDelay:0]; 71 | } 72 | }); 73 | 74 | }); 75 | 76 | [self startTimer]; 77 | } 78 | 79 | - (void)startAnimation { 80 | [UIView animateKeyframesWithDuration:kScrollGuideAniamtionDuration 81 | delay:0 82 | options:UIViewKeyframeAnimationOptionAllowUserInteraction| 83 | UIViewKeyframeAnimationOptionCalculationModeLinear 84 | animations:^{ 85 | [UIView addKeyframeWithRelativeStartTime:(0.3-0.3)/kScrollGuideAniamtionDuration relativeDuration:0.2 animations:^{ 86 | [self secondAniamtion]; 87 | }]; 88 | [UIView addKeyframeWithRelativeStartTime:(0.5-0.3)/kScrollGuideAniamtionDuration relativeDuration:0.2 animations:^{ 89 | [self thirdAnimation]; 90 | }]; 91 | [UIView addKeyframeWithRelativeStartTime:(0.8-0.3)/kScrollGuideAniamtionDuration relativeDuration:0.3 animations:^{ 92 | [self fourthAnimation]; 93 | }]; 94 | [UIView addKeyframeWithRelativeStartTime:(1.1-0.3)/kScrollGuideAniamtionDuration relativeDuration:0.3 animations:^{ 95 | [self fifthAnimation]; 96 | }]; 97 | [UIView addKeyframeWithRelativeStartTime:(1.5-0.3)/kScrollGuideAniamtionDuration relativeDuration:0.3 animations:^{ 98 | [self sixthAnimation]; 99 | }]; 100 | } completion:nil]; 101 | 102 | } 103 | 104 | #pragma mark --Aniamtion 105 | - (void)firstAniamtion {//0-0.3 106 | self.txtLabel.alpha = 1.0; 107 | self.lineView.alpha = 1.0; 108 | self.gestureImageView.alpha = 1.0; 109 | self.contentView.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:kScrollGuideDefaultAlpa]; 110 | } 111 | 112 | - (void)secondAniamtion {//0.3-0.6 113 | self.lineView.frame = CGRectMake(CGRectGetMidX(self.gestureImageView.frame)-7, self.gestureImageView.frame.origin.y-5-96, 14, 110); 114 | 115 | UIImage* image = self.gestureImageView.image; 116 | self.gestureImageView.frame = CGRectMake((self.contentView.frame.size.width-image.size.width)*0.5,self.lineView.frame.origin.y+5, image.size.width, image.size.height); 117 | } 118 | 119 | - (void)thirdAnimation {//0.5-0.8 120 | if([self.delegate respondsToSelector:@selector(scrollGuideViewScollUpWithDisdance:)]){ 121 | [self.delegate scrollGuideViewScollUpWithDisdance:kScrollGuiMSSCrollGuideViewveVerticalDistance]; 122 | } 123 | if (self.scrollGuideViewScollUpBlock) { 124 | self.scrollGuideViewScollUpBlock(kScrollGuiMSSCrollGuideViewveVerticalDistance); 125 | } 126 | } 127 | 128 | - (void)fourthAnimation {//0.8-1.1 129 | self.lineView.frame = CGRectMake(CGRectGetMidX(self.gestureImageView.frame)-7, self.lineView.frame.origin.y, 14, 14); 130 | } 131 | 132 | - (void)fifthAnimation {//1.1-1.4 133 | self.lineView.alpha = kScrollGuideEndAlpa; 134 | self.gestureImageView.alpha = kScrollGuideEndAlpa; 135 | } 136 | 137 | - (void)sixthAnimation {//1.5-1.8 138 | if([self.delegate respondsToSelector:@selector(scrollGuideViewScollDownWithDisdance:)]){ 139 | [self.delegate scrollGuideViewScollDownWithDisdance:kScrollGuiMSSCrollGuideViewveVerticalDistance]; 140 | } 141 | if (self.scrollGuideViewScollDownBlock) { 142 | self.scrollGuideViewScollDownBlock(kScrollGuiMSSCrollGuideViewveVerticalDistance); 143 | } 144 | } 145 | 146 | #pragma mark --setUpSubviews 147 | - (void)setUpSubviews { 148 | CGSize superViewSize = UIScreen.mainScreen.bounds.size; 149 | self.frame = UIScreen.mainScreen.bounds; 150 | self.backgroundColor = [UIColor clearColor]; 151 | [self addSubview:self.contentView]; 152 | UIView* superView = self.contentView; 153 | 154 | [superView addSubview:self.txtLabel]; 155 | self.txtLabel.text = kScrollGuideDefaultTxt; 156 | self.txtLabel.frame = CGRectMake((superViewSize.width-200)*0.5, superViewSize.height-(mIsIphoneX ? 311 : 249), 200, 28); 157 | 158 | [superView addSubview:self.gestureImageView]; 159 | UIImage* image = [UIImage imageNamed:kScrollGuideFingerPic]; 160 | self.gestureImageView.image = image; 161 | self.gestureImageView.frame = CGRectMake((superViewSize.width-image.size.width)*0.5,self.txtLabel.frame.origin.y- image.size.height-10, image.size.width, image.size.height); 162 | 163 | [superView addSubview:self.lineView]; 164 | self.lineView.backgroundColor = mRGBColor(216, 216, 216); 165 | self.lineView.layer.cornerRadius = 7; 166 | self.lineView.layer.masksToBounds = YES; 167 | self.lineView.frame = CGRectMake(CGRectGetMidX(self.gestureImageView.frame)-7, self.gestureImageView.frame.origin.y-5, 14, 14); 168 | 169 | [superView bringSubviewToFront:self.gestureImageView]; 170 | } 171 | 172 | - (void)removeFromSuperview { 173 | [self removeNotifications]; 174 | [NSObject cancelPreviousPerformRequestsWithTarget:self]; 175 | if (self.superview) { 176 | @try { 177 | [self destroyTimer]; 178 | } @catch (NSException *exception) { } @finally { } 179 | } 180 | [super removeFromSuperview]; 181 | if (self.removeBlock) { 182 | self.removeBlock(); 183 | } 184 | } 185 | 186 | #pragma mark --timer 187 | - (void)startTimer { 188 | if (!_timer) { return; } 189 | if (self.isSuspend) { 190 | [self resumeTime]; 191 | } else { 192 | dispatch_resume(_timer); 193 | } 194 | } 195 | 196 | - (void)suspendTimer { 197 | if (!_timer) { return; } 198 | 199 | self.isSuspend = YES; 200 | dispatch_suspend(self.timer); 201 | } 202 | 203 | - (void)destroyTimer { 204 | if (!_timer) { return; } 205 | 206 | if (self.isSuspend) { 207 | [self resumeTime]; 208 | } 209 | dispatch_source_cancel(_timer); 210 | _timer = nil; 211 | } 212 | 213 | - (void)resumeTime { 214 | if (!_timer) { return; } 215 | if (!self.isSuspend) { return; } 216 | 217 | self.isSuspend = NO; 218 | dispatch_resume(self.timer); 219 | } 220 | 221 | #pragma mark - NSNotification 222 | - (void)setUpEventHandling { 223 | [self removeNotifications]; 224 | 225 | NSNotificationCenter* center = [NSNotificationCenter defaultCenter]; 226 | [center addObserver:self selector:@selector(applicationDidEnterBackground) name:UIApplicationDidEnterBackgroundNotification object:nil]; 227 | [center addObserver:self selector:@selector(applicationDidBecomeActiveNotification) name:UIApplicationDidBecomeActiveNotification object:nil]; 228 | 229 | UITapGestureRecognizer *scrollGuideTapGestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(scrollGuideRemoveFromSuperView)]; 230 | [self addGestureRecognizer:scrollGuideTapGestureRecognizer]; 231 | UIPanGestureRecognizer *scrollGuidePanGestureRecognizer = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(scrollGuideRemoveFromSuperView)]; 232 | [self addGestureRecognizer:scrollGuidePanGestureRecognizer]; 233 | } 234 | 235 | - (void)removeNotifications { 236 | [NSNotificationCenter.defaultCenter removeObserver:self]; 237 | } 238 | 239 | #pragma mark - lazy 240 | - (UIView *)contentView { 241 | if(!_contentView){ 242 | _contentView = [UIView new]; 243 | _contentView.frame = self.bounds; 244 | self.contentView.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0]; 245 | } 246 | return _contentView; 247 | } 248 | 249 | - (UIView *)lineView { 250 | if(!_lineView){ 251 | _lineView = [UIView new]; 252 | _lineView.alpha = 0; 253 | } 254 | return _lineView; 255 | } 256 | 257 | - (UIImageView *)gestureImageView { 258 | if(!_gestureImageView){ 259 | _gestureImageView = [UIImageView new]; 260 | _gestureImageView.alpha = 0; 261 | } 262 | return _gestureImageView; 263 | } 264 | 265 | - (UILabel *)txtLabel { 266 | if(!_txtLabel){ 267 | _txtLabel = [UILabel new]; 268 | _txtLabel.alpha = 0; 269 | _txtLabel.font=[UIFont boldSystemFontOfSize:20]; 270 | _txtLabel.textColor = [UIColor whiteColor]; 271 | _txtLabel.textAlignment = NSTextAlignmentCenter; 272 | } 273 | return _txtLabel; 274 | } 275 | 276 | - (dispatch_source_t)timer { 277 | if (!_timer) { 278 | dispatch_queue_t queue = dispatch_get_main_queue(); 279 | dispatch_source_t timer = dispatch_source_create(DISPATCH_SOURCE_TYPE_TIMER, 0, 0, queue); 280 | dispatch_source_set_timer(timer,dispatch_walltime(NULL, 0),kScrollGuideAniamtionDuration*NSEC_PER_SEC, 0); 281 | _timer = timer; 282 | } 283 | return _timer; 284 | } 285 | 286 | #pragma mark app life 287 | - (void)applicationDidEnterBackground { 288 | [self destroyTimer]; 289 | [self.contentView.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)]; 290 | } 291 | 292 | - (void)applicationDidBecomeActiveNotification { 293 | [self setUpSubviews]; 294 | [self startAllAnimation]; 295 | } 296 | 297 | @end 298 | -------------------------------------------------------------------------------- /MSSCrollGuideView/MSScrollGuideView/MSScrollGuideViewHeader.h: -------------------------------------------------------------------------------- 1 | // 2 | // MSScrollGuideViewHeader.h 3 | // 4 | // 5 | // Created by jiang. 6 | // 7 | 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | static NSString* _Nonnull const kScrollGuideFingerPic = @"scrollGuideFingerPicture"; 14 | static NSString* _Nonnull const kScrollGuideDefaultTxt = @"Slide To See More"; 15 | static CGFloat const kScrollGuiMSSCrollGuideViewveVerticalDistance = 150.0; 16 | static CGFloat const kScrollGuideDefaultAlpa = 0.3; 17 | static CGFloat const kScrollGuideEndAlpa = 0; 18 | static CGFloat const kScrollGuideAniamtionDuration = 1.5; 19 | static CGFloat const kAnimationDuration = 0.25; 20 | 21 | #define mIsIphoneX ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125, 2436), [[UIScreen mainScreen] currentMode].size) : NO) 22 | #define mRGBColor(r, g, b) [UIColor colorWithRed:(r) / 255.0f green:(g) / 255.0f blue:(b) / 255.0f alpha:1.0] 23 | 24 | 25 | #pragma mark --MSScrollGuideViewProtocol 26 | @protocol MSScrollGuideViewProtocol 27 | 28 | - (void)scrollGuideViewScollUpWithDisdance:(CGFloat)disdance; 29 | - (void)scrollGuideViewScollDownWithDisdance:(CGFloat)disdance; 30 | 31 | @end 32 | 33 | 34 | #pragma mark --MSScrollGuideView 35 | 36 | @protocol MSScrollGuideView 37 | 38 | - (void)startAllAnimation; 39 | 40 | @property(nonatomic,weak)id delegate; 41 | @property(nonatomic,copy)dispatch_block_t removeBlock; 42 | @property(nonatomic,copy)void(^scrollGuideViewScollUpBlock) (CGFloat disdance); 43 | @property(nonatomic,copy)void(^scrollGuideViewScollDownBlock)(CGFloat disdance); 44 | 45 | @end 46 | NS_ASSUME_NONNULL_END 47 | -------------------------------------------------------------------------------- /MSSCrollGuideView/MSScrollGuideView/Resource/dragonball.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/MSScrollGuideView/Resource/dragonball.jpg -------------------------------------------------------------------------------- /MSSCrollGuideView/MSScrollGuideView/Resource/scrollGuideFingerPicture@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/MSScrollGuideView/Resource/scrollGuideFingerPicture@2x.png -------------------------------------------------------------------------------- /MSSCrollGuideView/MSScrollGuideView/Resource/scrollGuideFingerPicture@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/MSScrollGuideView/Resource/scrollGuideFingerPicture@3x.png -------------------------------------------------------------------------------- /MSSCrollGuideView/Other/._main.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView/Other/._main.m -------------------------------------------------------------------------------- /MSSCrollGuideView/Other/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // MSSCrollGuideView 4 | // 5 | // Created by jiang on 8/3/2015. 6 | // Copyright © 2015 MSSCrollGuideView. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | 17 | -------------------------------------------------------------------------------- /MSSCrollGuideView/Other/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // MSSCrollGuideView 4 | // 5 | // Created by jiang on 8/3/2015. 6 | // Copyright © 2015 MSSCrollGuideView. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | #import "ViewController.h" 11 | 12 | @implementation AppDelegate 13 | 14 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 15 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 16 | self.window.backgroundColor = [UIColor whiteColor]; 17 | self.window.rootViewController = [ViewController new]; 18 | [self.window makeKeyAndVisible]; 19 | return YES; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /MSSCrollGuideView/Other/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // MSSCrollGuideView 4 | // 5 | // Created by jiang on 8/3/2015. 6 | // Copyright © 2015 MSSCrollGuideView. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | NSString * appDelegateClassName; 14 | @autoreleasepool { 15 | // Setup code that might create autoreleased objects goes here. 16 | appDelegateClassName = NSStringFromClass([AppDelegate class]); 17 | } 18 | return UIApplicationMain(argc, argv, nil, appDelegateClassName); 19 | } 20 | -------------------------------------------------------------------------------- /MSSCrollGuideView/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // MSSCrollGuideView 4 | // 5 | // Created by jiang on 8/3/2015. 6 | // Copyright © 2015 MSSCrollGuideView. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /MSSCrollGuideView/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // MSSCrollGuideView 4 | // 5 | // Created by jiang on 8/3/2015. 6 | // Copyright © 2015 MSSCrollGuideView. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | #import "MSScrollGuideView.h" 11 | 12 | @interface ViewController () 13 | @property(nonatomic,strong)MSScrollGuideView *scrollGuideView; 14 | @property(nonatomic,strong)UIScrollView *scrollView; 15 | 16 | @end 17 | 18 | @implementation ViewController 19 | 20 | - (void)viewDidLoad { 21 | [super viewDidLoad]; 22 | 23 | // Animation effect one 24 | [self animationOne]; 25 | 26 | // Animation effect two black 27 | //[self animationTwo]; 28 | } 29 | 30 | - (void)animationOne { 31 | [self.scrollView addSubview:self.scrollGuideView]; 32 | [self setUpSubviews]; 33 | [self.scrollGuideView startAllAnimation]; 34 | } 35 | 36 | - (void)animationTwo { 37 | self.view.backgroundColor = [UIColor blackColor]; 38 | [self.view addSubview:self.scrollGuideView]; 39 | [self.scrollGuideView startAllAnimation]; 40 | } 41 | 42 | #pragma mark -- MSScrollGuideViewProtocol 43 | - (void)scrollGuideViewScollUpWithDisdance:(CGFloat)disdance { 44 | self.scrollView.contentOffset = CGPointMake(0, self.scrollView.contentOffset.y+disdance); 45 | } 46 | 47 | - (void)scrollGuideViewScollDownWithDisdance:(CGFloat)disdance { 48 | self.scrollView.contentOffset = CGPointMake(0, self.scrollView.contentOffset.y-disdance); 49 | } 50 | 51 | #pragma mark -- lazy 52 | - (MSScrollGuideView *)scrollGuideView { 53 | if (!_scrollGuideView) { 54 | _scrollGuideView = [[MSScrollGuideView alloc] initWithContainer:self.view]; 55 | _scrollGuideView.delegate = self; 56 | } 57 | return _scrollGuideView; 58 | } 59 | 60 | - (UIScrollView *)scrollView { 61 | if (!_scrollView) { 62 | _scrollView = [[UIScrollView alloc] initWithFrame:self.view.bounds]; 63 | _scrollView.contentSize = CGSizeMake(self.view.bounds.size.width, self.view.bounds.size.height*2); 64 | _scrollView.pagingEnabled = YES; 65 | } 66 | return _scrollView; 67 | } 68 | 69 | 70 | #pragma mark -- setUpSubviews 71 | - (void)setUpSubviews { 72 | [self.view addSubview:self.scrollView]; 73 | UIImageView* testView = [[UIImageView alloc] initWithFrame:CGRectMake(0, self.view.bounds.size.height, self.view.bounds.size.width, self.view.bounds.size.height)]; 74 | testView.image = [UIImage imageNamed:@"dragonball.jpg"]; 75 | [self.scrollView addSubview:testView]; 76 | 77 | UIImageView* testView2 = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.view.bounds.size.width, self.view.bounds.size.height)]; 78 | testView2.image = [UIImage imageNamed:@"dragonball.jpg"]; 79 | [self.scrollView addSubview:testView2]; 80 | } 81 | 82 | @end 83 | -------------------------------------------------------------------------------- /MSSCrollGuideView2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureJiang/MSSCrollGuideView/d8f9c8a86ed733bc9a5a2de72edc3c313e44b716/MSSCrollGuideView2.gif -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MSSCrollGuideView 2 | Keyframeanimation user guided animation 3 | ![image](MSSCrollGuideView2.gif) 4 | ![image](MSSCrollGuideView.gif) 5 | --------------------------------------------------------------------------------