├── .gitignore ├── .travis.yml ├── ABFullScrollViewControllerExample ├── ABFullScrollViewControllerExample.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata ├── ABFullScrollViewControllerExample │ ├── ABFullScrollViewControllerExample-Info.plist │ ├── ABFullScrollViewControllerExample-Prefix.pch │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Assets │ │ ├── background@2x.jpg │ │ └── background@2x~ipad.jpg │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── LaunchImage.launchimage │ │ │ └── Contents.json │ ├── Main.storyboard │ ├── ViewController.h │ ├── ViewController.m │ ├── en.lproj │ │ └── InfoPlist.strings │ └── main.m ├── ABFullScrollViewControllerExampleTests │ ├── ABFullScrollViewControllerExampleTests-Info.plist │ ├── ABFullScrollViewControllerExampleTests.m │ └── en.lproj │ │ └── InfoPlist.strings └── Demo │ ├── ABFullScrollVC_screen_1.png │ ├── ABFullScrollVC_screen_2.png │ ├── ABMFullScroll_logo.png │ ├── ABMFullScroll_scheme_multiplexer.png │ ├── ABMFullScroll_scheme_simple.png │ ├── instructions_1.png │ ├── instructions_2.png │ └── instructions_3.png ├── ABMFullScrollBehavior.podspec ├── ABMFullScrollBehavior ├── ABMFullScrollBehavior.h ├── ABMFullScrollBehavior.m ├── ABMMultiplexerProxyBehavior.h └── ABMMultiplexerProxyBehavior.m ├── LICENSE └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | .DS_Store 3 | */build/* 4 | *.pbxuser 5 | !default.pbxuser 6 | *.mode1v3 7 | !default.mode1v3 8 | *.mode2v3 9 | !default.mode2v3 10 | *.perspectivev3 11 | !default.perspectivev3 12 | xcuserdata 13 | profile 14 | *.moved-aside 15 | DerivedData 16 | .idea/ 17 | *.hmap 18 | *.xccheckout 19 | 20 | #CocoaPods 21 | Pods 22 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: objective-c -------------------------------------------------------------------------------- /ABFullScrollViewControllerExample/ABFullScrollViewControllerExample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 3C30455F1889856D00077EA4 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3C30455E1889856D00077EA4 /* Foundation.framework */; }; 11 | 3C3045611889856D00077EA4 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3C3045601889856D00077EA4 /* CoreGraphics.framework */; }; 12 | 3C3045631889856D00077EA4 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3C3045621889856D00077EA4 /* UIKit.framework */; }; 13 | 3C3045691889856D00077EA4 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 3C3045671889856D00077EA4 /* InfoPlist.strings */; }; 14 | 3C30456B1889856D00077EA4 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 3C30456A1889856D00077EA4 /* main.m */; }; 15 | 3C30456F1889856D00077EA4 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 3C30456E1889856D00077EA4 /* AppDelegate.m */; }; 16 | 3C3045781889856D00077EA4 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 3C3045771889856D00077EA4 /* ViewController.m */; }; 17 | 3C30457A1889856D00077EA4 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3C3045791889856D00077EA4 /* Images.xcassets */; }; 18 | 3C3045811889856D00077EA4 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3C3045801889856D00077EA4 /* XCTest.framework */; }; 19 | 3C3045821889856D00077EA4 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3C30455E1889856D00077EA4 /* Foundation.framework */; }; 20 | 3C3045831889856D00077EA4 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3C3045621889856D00077EA4 /* UIKit.framework */; }; 21 | 3C30458B1889856D00077EA4 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 3C3045891889856D00077EA4 /* InfoPlist.strings */; }; 22 | 3C30458D1889856D00077EA4 /* ABFullScrollViewControllerExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 3C30458C1889856D00077EA4 /* ABFullScrollViewControllerExampleTests.m */; }; 23 | 3C30459C1889947200077EA4 /* background@2x.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 3C30459B1889947200077EA4 /* background@2x.jpg */; }; 24 | 3C30459E188996E700077EA4 /* background@2x~ipad.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 3C30459D188996E700077EA4 /* background@2x~ipad.jpg */; }; 25 | DDA615A61AC88AE200F5146F /* ABMFullScrollBehavior.m in Sources */ = {isa = PBXBuildFile; fileRef = DDA615A31AC88AE200F5146F /* ABMFullScrollBehavior.m */; }; 26 | DDA615A71AC88AE200F5146F /* ABMMultiplexerProxyBehavior.m in Sources */ = {isa = PBXBuildFile; fileRef = DDA615A51AC88AE200F5146F /* ABMMultiplexerProxyBehavior.m */; }; 27 | DDC596F01AC6D29A00908BAE /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = DDC596EF1AC6D29A00908BAE /* Main.storyboard */; }; 28 | /* End PBXBuildFile section */ 29 | 30 | /* Begin PBXContainerItemProxy section */ 31 | 3C3045841889856D00077EA4 /* PBXContainerItemProxy */ = { 32 | isa = PBXContainerItemProxy; 33 | containerPortal = 3C3045531889856C00077EA4 /* Project object */; 34 | proxyType = 1; 35 | remoteGlobalIDString = 3C30455A1889856D00077EA4; 36 | remoteInfo = ABFullScrollViewControllerExample; 37 | }; 38 | /* End PBXContainerItemProxy section */ 39 | 40 | /* Begin PBXFileReference section */ 41 | 3C30455B1889856D00077EA4 /* ABFullScrollViewControllerExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ABFullScrollViewControllerExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 42 | 3C30455E1889856D00077EA4 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 43 | 3C3045601889856D00077EA4 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 44 | 3C3045621889856D00077EA4 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 45 | 3C3045661889856D00077EA4 /* ABFullScrollViewControllerExample-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "ABFullScrollViewControllerExample-Info.plist"; sourceTree = ""; }; 46 | 3C3045681889856D00077EA4 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 47 | 3C30456A1889856D00077EA4 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 48 | 3C30456C1889856D00077EA4 /* ABFullScrollViewControllerExample-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ABFullScrollViewControllerExample-Prefix.pch"; sourceTree = ""; }; 49 | 3C30456D1889856D00077EA4 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 50 | 3C30456E1889856D00077EA4 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 51 | 3C3045761889856D00077EA4 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 52 | 3C3045771889856D00077EA4 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 53 | 3C3045791889856D00077EA4 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 54 | 3C30457F1889856D00077EA4 /* ABFullScrollViewControllerExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ABFullScrollViewControllerExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 55 | 3C3045801889856D00077EA4 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; 56 | 3C3045881889856D00077EA4 /* ABFullScrollViewControllerExampleTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "ABFullScrollViewControllerExampleTests-Info.plist"; sourceTree = ""; }; 57 | 3C30458A1889856D00077EA4 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 58 | 3C30458C1889856D00077EA4 /* ABFullScrollViewControllerExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ABFullScrollViewControllerExampleTests.m; sourceTree = ""; }; 59 | 3C30459B1889947200077EA4 /* background@2x.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "background@2x.jpg"; sourceTree = ""; }; 60 | 3C30459D188996E700077EA4 /* background@2x~ipad.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "background@2x~ipad.jpg"; sourceTree = ""; }; 61 | DDA6159F1AC88AA200F5146F /* ABMFullScrollBehavior.podspec */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = ABMFullScrollBehavior.podspec; path = ../ABMFullScrollBehavior.podspec; sourceTree = ""; }; 62 | DDA615A21AC88AE200F5146F /* ABMFullScrollBehavior.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ABMFullScrollBehavior.h; sourceTree = ""; }; 63 | DDA615A31AC88AE200F5146F /* ABMFullScrollBehavior.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ABMFullScrollBehavior.m; sourceTree = ""; }; 64 | DDA615A41AC88AE200F5146F /* ABMMultiplexerProxyBehavior.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ABMMultiplexerProxyBehavior.h; sourceTree = ""; }; 65 | DDA615A51AC88AE200F5146F /* ABMMultiplexerProxyBehavior.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ABMMultiplexerProxyBehavior.m; sourceTree = ""; }; 66 | DDC596EF1AC6D29A00908BAE /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = ""; }; 67 | /* End PBXFileReference section */ 68 | 69 | /* Begin PBXFrameworksBuildPhase section */ 70 | 3C3045581889856D00077EA4 /* Frameworks */ = { 71 | isa = PBXFrameworksBuildPhase; 72 | buildActionMask = 2147483647; 73 | files = ( 74 | 3C3045611889856D00077EA4 /* CoreGraphics.framework in Frameworks */, 75 | 3C3045631889856D00077EA4 /* UIKit.framework in Frameworks */, 76 | 3C30455F1889856D00077EA4 /* Foundation.framework in Frameworks */, 77 | ); 78 | runOnlyForDeploymentPostprocessing = 0; 79 | }; 80 | 3C30457C1889856D00077EA4 /* Frameworks */ = { 81 | isa = PBXFrameworksBuildPhase; 82 | buildActionMask = 2147483647; 83 | files = ( 84 | 3C3045811889856D00077EA4 /* XCTest.framework in Frameworks */, 85 | 3C3045831889856D00077EA4 /* UIKit.framework in Frameworks */, 86 | 3C3045821889856D00077EA4 /* Foundation.framework in Frameworks */, 87 | ); 88 | runOnlyForDeploymentPostprocessing = 0; 89 | }; 90 | /* End PBXFrameworksBuildPhase section */ 91 | 92 | /* Begin PBXGroup section */ 93 | 3C3045521889856C00077EA4 = { 94 | isa = PBXGroup; 95 | children = ( 96 | DDA6159F1AC88AA200F5146F /* ABMFullScrollBehavior.podspec */, 97 | DDA615A11AC88AE200F5146F /* ABMFullScrollBehavior */, 98 | 3C3045641889856D00077EA4 /* ABFullScrollViewControllerExample */, 99 | 3C3045861889856D00077EA4 /* ABFullScrollViewControllerExampleTests */, 100 | 3C30455D1889856D00077EA4 /* Frameworks */, 101 | 3C30455C1889856D00077EA4 /* Products */, 102 | ); 103 | sourceTree = ""; 104 | }; 105 | 3C30455C1889856D00077EA4 /* Products */ = { 106 | isa = PBXGroup; 107 | children = ( 108 | 3C30455B1889856D00077EA4 /* ABFullScrollViewControllerExample.app */, 109 | 3C30457F1889856D00077EA4 /* ABFullScrollViewControllerExampleTests.xctest */, 110 | ); 111 | name = Products; 112 | sourceTree = ""; 113 | }; 114 | 3C30455D1889856D00077EA4 /* Frameworks */ = { 115 | isa = PBXGroup; 116 | children = ( 117 | 3C30455E1889856D00077EA4 /* Foundation.framework */, 118 | 3C3045601889856D00077EA4 /* CoreGraphics.framework */, 119 | 3C3045621889856D00077EA4 /* UIKit.framework */, 120 | 3C3045801889856D00077EA4 /* XCTest.framework */, 121 | ); 122 | name = Frameworks; 123 | sourceTree = ""; 124 | }; 125 | 3C3045641889856D00077EA4 /* ABFullScrollViewControllerExample */ = { 126 | isa = PBXGroup; 127 | children = ( 128 | 3C30459A1889947200077EA4 /* Assets */, 129 | 3C30456D1889856D00077EA4 /* AppDelegate.h */, 130 | 3C30456E1889856D00077EA4 /* AppDelegate.m */, 131 | DDC596EF1AC6D29A00908BAE /* Main.storyboard */, 132 | 3C3045761889856D00077EA4 /* ViewController.h */, 133 | 3C3045771889856D00077EA4 /* ViewController.m */, 134 | 3C3045791889856D00077EA4 /* Images.xcassets */, 135 | 3C3045651889856D00077EA4 /* Supporting Files */, 136 | ); 137 | path = ABFullScrollViewControllerExample; 138 | sourceTree = ""; 139 | }; 140 | 3C3045651889856D00077EA4 /* Supporting Files */ = { 141 | isa = PBXGroup; 142 | children = ( 143 | 3C3045661889856D00077EA4 /* ABFullScrollViewControllerExample-Info.plist */, 144 | 3C3045671889856D00077EA4 /* InfoPlist.strings */, 145 | 3C30456A1889856D00077EA4 /* main.m */, 146 | 3C30456C1889856D00077EA4 /* ABFullScrollViewControllerExample-Prefix.pch */, 147 | ); 148 | name = "Supporting Files"; 149 | sourceTree = ""; 150 | }; 151 | 3C3045861889856D00077EA4 /* ABFullScrollViewControllerExampleTests */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | 3C30458C1889856D00077EA4 /* ABFullScrollViewControllerExampleTests.m */, 155 | 3C3045871889856D00077EA4 /* Supporting Files */, 156 | ); 157 | path = ABFullScrollViewControllerExampleTests; 158 | sourceTree = ""; 159 | }; 160 | 3C3045871889856D00077EA4 /* Supporting Files */ = { 161 | isa = PBXGroup; 162 | children = ( 163 | 3C3045881889856D00077EA4 /* ABFullScrollViewControllerExampleTests-Info.plist */, 164 | 3C3045891889856D00077EA4 /* InfoPlist.strings */, 165 | ); 166 | name = "Supporting Files"; 167 | sourceTree = ""; 168 | }; 169 | 3C30459A1889947200077EA4 /* Assets */ = { 170 | isa = PBXGroup; 171 | children = ( 172 | 3C30459D188996E700077EA4 /* background@2x~ipad.jpg */, 173 | 3C30459B1889947200077EA4 /* background@2x.jpg */, 174 | ); 175 | path = Assets; 176 | sourceTree = ""; 177 | }; 178 | DDA615A11AC88AE200F5146F /* ABMFullScrollBehavior */ = { 179 | isa = PBXGroup; 180 | children = ( 181 | DDA615A21AC88AE200F5146F /* ABMFullScrollBehavior.h */, 182 | DDA615A31AC88AE200F5146F /* ABMFullScrollBehavior.m */, 183 | DDA615A41AC88AE200F5146F /* ABMMultiplexerProxyBehavior.h */, 184 | DDA615A51AC88AE200F5146F /* ABMMultiplexerProxyBehavior.m */, 185 | ); 186 | name = ABMFullScrollBehavior; 187 | path = ../ABMFullScrollBehavior; 188 | sourceTree = ""; 189 | }; 190 | /* End PBXGroup section */ 191 | 192 | /* Begin PBXNativeTarget section */ 193 | 3C30455A1889856D00077EA4 /* ABFullScrollViewControllerExample */ = { 194 | isa = PBXNativeTarget; 195 | buildConfigurationList = 3C3045901889856D00077EA4 /* Build configuration list for PBXNativeTarget "ABFullScrollViewControllerExample" */; 196 | buildPhases = ( 197 | 3C3045571889856D00077EA4 /* Sources */, 198 | 3C3045581889856D00077EA4 /* Frameworks */, 199 | 3C3045591889856D00077EA4 /* Resources */, 200 | ); 201 | buildRules = ( 202 | ); 203 | dependencies = ( 204 | ); 205 | name = ABFullScrollViewControllerExample; 206 | productName = ABFullScrollViewControllerExample; 207 | productReference = 3C30455B1889856D00077EA4 /* ABFullScrollViewControllerExample.app */; 208 | productType = "com.apple.product-type.application"; 209 | }; 210 | 3C30457E1889856D00077EA4 /* ABFullScrollViewControllerExampleTests */ = { 211 | isa = PBXNativeTarget; 212 | buildConfigurationList = 3C3045931889856D00077EA4 /* Build configuration list for PBXNativeTarget "ABFullScrollViewControllerExampleTests" */; 213 | buildPhases = ( 214 | 3C30457B1889856D00077EA4 /* Sources */, 215 | 3C30457C1889856D00077EA4 /* Frameworks */, 216 | 3C30457D1889856D00077EA4 /* Resources */, 217 | ); 218 | buildRules = ( 219 | ); 220 | dependencies = ( 221 | 3C3045851889856D00077EA4 /* PBXTargetDependency */, 222 | ); 223 | name = ABFullScrollViewControllerExampleTests; 224 | productName = ABFullScrollViewControllerExampleTests; 225 | productReference = 3C30457F1889856D00077EA4 /* ABFullScrollViewControllerExampleTests.xctest */; 226 | productType = "com.apple.product-type.bundle.unit-test"; 227 | }; 228 | /* End PBXNativeTarget section */ 229 | 230 | /* Begin PBXProject section */ 231 | 3C3045531889856C00077EA4 /* Project object */ = { 232 | isa = PBXProject; 233 | attributes = { 234 | LastUpgradeCheck = 0500; 235 | ORGANIZATIONNAME = "Brun's Software"; 236 | TargetAttributes = { 237 | 3C30457E1889856D00077EA4 = { 238 | TestTargetID = 3C30455A1889856D00077EA4; 239 | }; 240 | }; 241 | }; 242 | buildConfigurationList = 3C3045561889856C00077EA4 /* Build configuration list for PBXProject "ABFullScrollViewControllerExample" */; 243 | compatibilityVersion = "Xcode 3.2"; 244 | developmentRegion = English; 245 | hasScannedForEncodings = 0; 246 | knownRegions = ( 247 | en, 248 | Base, 249 | ); 250 | mainGroup = 3C3045521889856C00077EA4; 251 | productRefGroup = 3C30455C1889856D00077EA4 /* Products */; 252 | projectDirPath = ""; 253 | projectRoot = ""; 254 | targets = ( 255 | 3C30455A1889856D00077EA4 /* ABFullScrollViewControllerExample */, 256 | 3C30457E1889856D00077EA4 /* ABFullScrollViewControllerExampleTests */, 257 | ); 258 | }; 259 | /* End PBXProject section */ 260 | 261 | /* Begin PBXResourcesBuildPhase section */ 262 | 3C3045591889856D00077EA4 /* Resources */ = { 263 | isa = PBXResourcesBuildPhase; 264 | buildActionMask = 2147483647; 265 | files = ( 266 | DDC596F01AC6D29A00908BAE /* Main.storyboard in Resources */, 267 | 3C30457A1889856D00077EA4 /* Images.xcassets in Resources */, 268 | 3C30459C1889947200077EA4 /* background@2x.jpg in Resources */, 269 | 3C3045691889856D00077EA4 /* InfoPlist.strings in Resources */, 270 | 3C30459E188996E700077EA4 /* background@2x~ipad.jpg in Resources */, 271 | ); 272 | runOnlyForDeploymentPostprocessing = 0; 273 | }; 274 | 3C30457D1889856D00077EA4 /* Resources */ = { 275 | isa = PBXResourcesBuildPhase; 276 | buildActionMask = 2147483647; 277 | files = ( 278 | 3C30458B1889856D00077EA4 /* InfoPlist.strings in Resources */, 279 | ); 280 | runOnlyForDeploymentPostprocessing = 0; 281 | }; 282 | /* End PBXResourcesBuildPhase section */ 283 | 284 | /* Begin PBXSourcesBuildPhase section */ 285 | 3C3045571889856D00077EA4 /* Sources */ = { 286 | isa = PBXSourcesBuildPhase; 287 | buildActionMask = 2147483647; 288 | files = ( 289 | DDA615A61AC88AE200F5146F /* ABMFullScrollBehavior.m in Sources */, 290 | DDA615A71AC88AE200F5146F /* ABMMultiplexerProxyBehavior.m in Sources */, 291 | 3C3045781889856D00077EA4 /* ViewController.m in Sources */, 292 | 3C30456F1889856D00077EA4 /* AppDelegate.m in Sources */, 293 | 3C30456B1889856D00077EA4 /* main.m in Sources */, 294 | ); 295 | runOnlyForDeploymentPostprocessing = 0; 296 | }; 297 | 3C30457B1889856D00077EA4 /* Sources */ = { 298 | isa = PBXSourcesBuildPhase; 299 | buildActionMask = 2147483647; 300 | files = ( 301 | 3C30458D1889856D00077EA4 /* ABFullScrollViewControllerExampleTests.m in Sources */, 302 | ); 303 | runOnlyForDeploymentPostprocessing = 0; 304 | }; 305 | /* End PBXSourcesBuildPhase section */ 306 | 307 | /* Begin PBXTargetDependency section */ 308 | 3C3045851889856D00077EA4 /* PBXTargetDependency */ = { 309 | isa = PBXTargetDependency; 310 | target = 3C30455A1889856D00077EA4 /* ABFullScrollViewControllerExample */; 311 | targetProxy = 3C3045841889856D00077EA4 /* PBXContainerItemProxy */; 312 | }; 313 | /* End PBXTargetDependency section */ 314 | 315 | /* Begin PBXVariantGroup section */ 316 | 3C3045671889856D00077EA4 /* InfoPlist.strings */ = { 317 | isa = PBXVariantGroup; 318 | children = ( 319 | 3C3045681889856D00077EA4 /* en */, 320 | ); 321 | name = InfoPlist.strings; 322 | sourceTree = ""; 323 | }; 324 | 3C3045891889856D00077EA4 /* InfoPlist.strings */ = { 325 | isa = PBXVariantGroup; 326 | children = ( 327 | 3C30458A1889856D00077EA4 /* en */, 328 | ); 329 | name = InfoPlist.strings; 330 | sourceTree = ""; 331 | }; 332 | /* End PBXVariantGroup section */ 333 | 334 | /* Begin XCBuildConfiguration section */ 335 | 3C30458E1889856D00077EA4 /* Debug */ = { 336 | isa = XCBuildConfiguration; 337 | buildSettings = { 338 | ALWAYS_SEARCH_USER_PATHS = NO; 339 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; 340 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 341 | CLANG_CXX_LIBRARY = "libc++"; 342 | CLANG_ENABLE_MODULES = YES; 343 | CLANG_ENABLE_OBJC_ARC = YES; 344 | CLANG_WARN_BOOL_CONVERSION = YES; 345 | CLANG_WARN_CONSTANT_CONVERSION = YES; 346 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 347 | CLANG_WARN_EMPTY_BODY = YES; 348 | CLANG_WARN_ENUM_CONVERSION = YES; 349 | CLANG_WARN_INT_CONVERSION = YES; 350 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 351 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 352 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 353 | COPY_PHASE_STRIP = NO; 354 | GCC_C_LANGUAGE_STANDARD = gnu99; 355 | GCC_DYNAMIC_NO_PIC = NO; 356 | GCC_OPTIMIZATION_LEVEL = 0; 357 | GCC_PREPROCESSOR_DEFINITIONS = ( 358 | "DEBUG=1", 359 | "$(inherited)", 360 | ); 361 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 362 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 363 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 364 | GCC_WARN_UNDECLARED_SELECTOR = YES; 365 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 366 | GCC_WARN_UNUSED_FUNCTION = YES; 367 | GCC_WARN_UNUSED_VARIABLE = YES; 368 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 369 | ONLY_ACTIVE_ARCH = YES; 370 | SDKROOT = iphoneos; 371 | TARGETED_DEVICE_FAMILY = "1,2"; 372 | }; 373 | name = Debug; 374 | }; 375 | 3C30458F1889856D00077EA4 /* Release */ = { 376 | isa = XCBuildConfiguration; 377 | buildSettings = { 378 | ALWAYS_SEARCH_USER_PATHS = NO; 379 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; 380 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 381 | CLANG_CXX_LIBRARY = "libc++"; 382 | CLANG_ENABLE_MODULES = YES; 383 | CLANG_ENABLE_OBJC_ARC = YES; 384 | CLANG_WARN_BOOL_CONVERSION = YES; 385 | CLANG_WARN_CONSTANT_CONVERSION = YES; 386 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 387 | CLANG_WARN_EMPTY_BODY = YES; 388 | CLANG_WARN_ENUM_CONVERSION = YES; 389 | CLANG_WARN_INT_CONVERSION = YES; 390 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 391 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 392 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 393 | COPY_PHASE_STRIP = YES; 394 | ENABLE_NS_ASSERTIONS = NO; 395 | GCC_C_LANGUAGE_STANDARD = gnu99; 396 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 397 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 398 | GCC_WARN_UNDECLARED_SELECTOR = YES; 399 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 400 | GCC_WARN_UNUSED_FUNCTION = YES; 401 | GCC_WARN_UNUSED_VARIABLE = YES; 402 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 403 | SDKROOT = iphoneos; 404 | TARGETED_DEVICE_FAMILY = "1,2"; 405 | VALIDATE_PRODUCT = YES; 406 | }; 407 | name = Release; 408 | }; 409 | 3C3045911889856D00077EA4 /* Debug */ = { 410 | isa = XCBuildConfiguration; 411 | buildSettings = { 412 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 413 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 414 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 415 | GCC_PREFIX_HEADER = "ABFullScrollViewControllerExample/ABFullScrollViewControllerExample-Prefix.pch"; 416 | INFOPLIST_FILE = "ABFullScrollViewControllerExample/ABFullScrollViewControllerExample-Info.plist"; 417 | PRODUCT_NAME = "$(TARGET_NAME)"; 418 | WRAPPER_EXTENSION = app; 419 | }; 420 | name = Debug; 421 | }; 422 | 3C3045921889856D00077EA4 /* Release */ = { 423 | isa = XCBuildConfiguration; 424 | buildSettings = { 425 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 426 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 427 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 428 | GCC_PREFIX_HEADER = "ABFullScrollViewControllerExample/ABFullScrollViewControllerExample-Prefix.pch"; 429 | INFOPLIST_FILE = "ABFullScrollViewControllerExample/ABFullScrollViewControllerExample-Info.plist"; 430 | PRODUCT_NAME = "$(TARGET_NAME)"; 431 | WRAPPER_EXTENSION = app; 432 | }; 433 | name = Release; 434 | }; 435 | 3C3045941889856D00077EA4 /* Debug */ = { 436 | isa = XCBuildConfiguration; 437 | buildSettings = { 438 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; 439 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/ABFullScrollViewControllerExample.app/ABFullScrollViewControllerExample"; 440 | FRAMEWORK_SEARCH_PATHS = ( 441 | "$(SDKROOT)/Developer/Library/Frameworks", 442 | "$(inherited)", 443 | "$(DEVELOPER_FRAMEWORKS_DIR)", 444 | ); 445 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 446 | GCC_PREFIX_HEADER = "ABFullScrollViewControllerExample/ABFullScrollViewControllerExample-Prefix.pch"; 447 | GCC_PREPROCESSOR_DEFINITIONS = ( 448 | "DEBUG=1", 449 | "$(inherited)", 450 | ); 451 | INFOPLIST_FILE = "ABFullScrollViewControllerExampleTests/ABFullScrollViewControllerExampleTests-Info.plist"; 452 | PRODUCT_NAME = "$(TARGET_NAME)"; 453 | TEST_HOST = "$(BUNDLE_LOADER)"; 454 | WRAPPER_EXTENSION = xctest; 455 | }; 456 | name = Debug; 457 | }; 458 | 3C3045951889856D00077EA4 /* Release */ = { 459 | isa = XCBuildConfiguration; 460 | buildSettings = { 461 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; 462 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/ABFullScrollViewControllerExample.app/ABFullScrollViewControllerExample"; 463 | FRAMEWORK_SEARCH_PATHS = ( 464 | "$(SDKROOT)/Developer/Library/Frameworks", 465 | "$(inherited)", 466 | "$(DEVELOPER_FRAMEWORKS_DIR)", 467 | ); 468 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 469 | GCC_PREFIX_HEADER = "ABFullScrollViewControllerExample/ABFullScrollViewControllerExample-Prefix.pch"; 470 | INFOPLIST_FILE = "ABFullScrollViewControllerExampleTests/ABFullScrollViewControllerExampleTests-Info.plist"; 471 | PRODUCT_NAME = "$(TARGET_NAME)"; 472 | TEST_HOST = "$(BUNDLE_LOADER)"; 473 | WRAPPER_EXTENSION = xctest; 474 | }; 475 | name = Release; 476 | }; 477 | /* End XCBuildConfiguration section */ 478 | 479 | /* Begin XCConfigurationList section */ 480 | 3C3045561889856C00077EA4 /* Build configuration list for PBXProject "ABFullScrollViewControllerExample" */ = { 481 | isa = XCConfigurationList; 482 | buildConfigurations = ( 483 | 3C30458E1889856D00077EA4 /* Debug */, 484 | 3C30458F1889856D00077EA4 /* Release */, 485 | ); 486 | defaultConfigurationIsVisible = 0; 487 | defaultConfigurationName = Release; 488 | }; 489 | 3C3045901889856D00077EA4 /* Build configuration list for PBXNativeTarget "ABFullScrollViewControllerExample" */ = { 490 | isa = XCConfigurationList; 491 | buildConfigurations = ( 492 | 3C3045911889856D00077EA4 /* Debug */, 493 | 3C3045921889856D00077EA4 /* Release */, 494 | ); 495 | defaultConfigurationIsVisible = 0; 496 | defaultConfigurationName = Release; 497 | }; 498 | 3C3045931889856D00077EA4 /* Build configuration list for PBXNativeTarget "ABFullScrollViewControllerExampleTests" */ = { 499 | isa = XCConfigurationList; 500 | buildConfigurations = ( 501 | 3C3045941889856D00077EA4 /* Debug */, 502 | 3C3045951889856D00077EA4 /* Release */, 503 | ); 504 | defaultConfigurationIsVisible = 0; 505 | defaultConfigurationName = Release; 506 | }; 507 | /* End XCConfigurationList section */ 508 | }; 509 | rootObject = 3C3045531889856C00077EA4 /* Project object */; 510 | } 511 | -------------------------------------------------------------------------------- /ABFullScrollViewControllerExample/ABFullScrollViewControllerExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ABFullScrollViewControllerExample/ABFullScrollViewControllerExample/ABFullScrollViewControllerExample-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | BrunSoftware.${PRODUCT_NAME:rfc1034identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UIMainStoryboardFile 28 | Main 29 | UIMainStoryboardFile~ipad 30 | Main_iPad 31 | UIRequiredDeviceCapabilities 32 | 33 | armv7 34 | 35 | UISupportedInterfaceOrientations 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationLandscapeLeft 39 | UIInterfaceOrientationLandscapeRight 40 | 41 | UISupportedInterfaceOrientations~ipad 42 | 43 | UIInterfaceOrientationPortrait 44 | UIInterfaceOrientationPortraitUpsideDown 45 | UIInterfaceOrientationLandscapeLeft 46 | UIInterfaceOrientationLandscapeRight 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /ABFullScrollViewControllerExample/ABFullScrollViewControllerExample/ABFullScrollViewControllerExample-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every source file. 5 | // 6 | 7 | #import 8 | 9 | #ifndef __IPHONE_5_0 10 | #warning "This project uses features only available in iOS SDK 5.0 and later." 11 | #endif 12 | 13 | #ifdef __OBJC__ 14 | #import 15 | #import 16 | #endif 17 | -------------------------------------------------------------------------------- /ABFullScrollViewControllerExample/ABFullScrollViewControllerExample/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // ABFullScrollViewControllerExample 4 | // 5 | // Created by Andrés Brun on 17/01/14. 6 | // Copyright (c) 2014 Brun's Software. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /ABFullScrollViewControllerExample/ABFullScrollViewControllerExample/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // ABFullScrollViewControllerExample 4 | // 5 | // Created by Andrés Brun on 17/01/14. 6 | // Copyright (c) 2014 Brun's Software. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @implementation AppDelegate 12 | 13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 14 | { 15 | // Override point for customization after application launch. 16 | return YES; 17 | } 18 | 19 | - (void)applicationWillResignActive:(UIApplication *)application 20 | { 21 | // 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. 22 | // 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. 23 | } 24 | 25 | - (void)applicationDidEnterBackground:(UIApplication *)application 26 | { 27 | // 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. 28 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 29 | } 30 | 31 | - (void)applicationWillEnterForeground:(UIApplication *)application 32 | { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | - (void)applicationDidBecomeActive:(UIApplication *)application 37 | { 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 | { 43 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 44 | } 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /ABFullScrollViewControllerExample/ABFullScrollViewControllerExample/Assets/background@2x.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andresbrun/ABFullScrollViewController/92013635f721e0852cce39b898a5a549036560c7/ABFullScrollViewControllerExample/ABFullScrollViewControllerExample/Assets/background@2x.jpg -------------------------------------------------------------------------------- /ABFullScrollViewControllerExample/ABFullScrollViewControllerExample/Assets/background@2x~ipad.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andresbrun/ABFullScrollViewController/92013635f721e0852cce39b898a5a549036560c7/ABFullScrollViewControllerExample/ABFullScrollViewControllerExample/Assets/background@2x~ipad.jpg -------------------------------------------------------------------------------- /ABFullScrollViewControllerExample/ABFullScrollViewControllerExample/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "40x40", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "60x60", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "ipad", 20 | "size" : "29x29", 21 | "scale" : "1x" 22 | }, 23 | { 24 | "idiom" : "ipad", 25 | "size" : "29x29", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "ipad", 30 | "size" : "40x40", 31 | "scale" : "1x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "40x40", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "76x76", 41 | "scale" : "1x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "76x76", 46 | "scale" : "2x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } -------------------------------------------------------------------------------- /ABFullScrollViewControllerExample/ABFullScrollViewControllerExample/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "iphone", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "7.0", 8 | "scale" : "2x" 9 | }, 10 | { 11 | "orientation" : "portrait", 12 | "idiom" : "iphone", 13 | "subtype" : "retina4", 14 | "extent" : "full-screen", 15 | "minimum-system-version" : "7.0", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "orientation" : "portrait", 20 | "idiom" : "ipad", 21 | "extent" : "full-screen", 22 | "minimum-system-version" : "7.0", 23 | "scale" : "1x" 24 | }, 25 | { 26 | "orientation" : "landscape", 27 | "idiom" : "ipad", 28 | "extent" : "full-screen", 29 | "minimum-system-version" : "7.0", 30 | "scale" : "1x" 31 | }, 32 | { 33 | "orientation" : "portrait", 34 | "idiom" : "ipad", 35 | "extent" : "full-screen", 36 | "minimum-system-version" : "7.0", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "orientation" : "landscape", 41 | "idiom" : "ipad", 42 | "extent" : "full-screen", 43 | "minimum-system-version" : "7.0", 44 | "scale" : "2x" 45 | } 46 | ], 47 | "info" : { 48 | "version" : 1, 49 | "author" : "xcode" 50 | } 51 | } -------------------------------------------------------------------------------- /ABFullScrollViewControllerExample/ABFullScrollViewControllerExample/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 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 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | -------------------------------------------------------------------------------- /ABFullScrollViewControllerExample/ABFullScrollViewControllerExample/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // ABFullScrollViewControllerExample 4 | // 5 | // Created by Andrés Brun on 17/01/14. 6 | // Copyright (c) 2014 Brun's Software. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "ABFullScrollViewController.h" 11 | #import "ABMFullScrollBehavior.h" 12 | 13 | @interface ViewController : UIViewController 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /ABFullScrollViewControllerExample/ABFullScrollViewControllerExample/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // ABFullScrollViewControllerExample 4 | // 5 | // Created by Andrés Brun on 17/01/14. 6 | // Copyright (c) 2014 Brun's Software. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | 11 | const CGFloat headerStandardHeight = 60; 12 | 13 | @interface ViewController () 14 | @property (weak, nonatomic) IBOutlet UIView *headerContainerView; 15 | 16 | @end 17 | 18 | @implementation ViewController 19 | 20 | #pragma mark - UITableView data source 21 | - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { 22 | return 50; 23 | } 24 | 25 | -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { 26 | UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Cell"]; 27 | 28 | if(cell==nil) { 29 | cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:@"Cell"]; 30 | } 31 | 32 | [cell.textLabel setText:[NSString stringWithFormat:@"Cell %ld", (long)indexPath.row]]; 33 | [cell.textLabel setTextColor:[UIColor colorWithWhite:1-(indexPath.row/40.0) alpha:1]]; 34 | [cell setBackgroundColor:[UIColor colorWithWhite:indexPath.row/40.0 alpha:0.3]]; 35 | 36 | return cell; 37 | } 38 | 39 | -(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { 40 | return 1; 41 | } 42 | 43 | - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { 44 | return 40; 45 | } 46 | 47 | #pragma mark - ABMFullScroll Delegates 48 | - (void)scroll:(UIScrollView *)scroll animationForHeaderView:(UIView *)view percent:(CGFloat)percent { 49 | [self.headerContainerView setAlpha:percent]; 50 | 51 | CGFloat transform = MIN(percent+0.5, 1); 52 | [self.headerContainerView setTransform:CGAffineTransformMakeScale(transform, transform)]; 53 | } 54 | 55 | @end 56 | -------------------------------------------------------------------------------- /ABFullScrollViewControllerExample/ABFullScrollViewControllerExample/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ABFullScrollViewControllerExample/ABFullScrollViewControllerExample/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // ABFullScrollViewControllerExample 4 | // 5 | // Created by Andrés Brun on 17/01/14. 6 | // Copyright (c) 2014 Brun's Software. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "AppDelegate.h" 12 | 13 | int main(int argc, char * argv[]) 14 | { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /ABFullScrollViewControllerExample/ABFullScrollViewControllerExampleTests/ABFullScrollViewControllerExampleTests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | BrunSoftware.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /ABFullScrollViewControllerExample/ABFullScrollViewControllerExampleTests/ABFullScrollViewControllerExampleTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // ABFullScrollViewControllerExampleTests.m 3 | // ABFullScrollViewControllerExampleTests 4 | // 5 | // Created by Andrés Brun on 17/01/14. 6 | // Copyright (c) 2014 Brun's Software. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ABFullScrollViewControllerExampleTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation ABFullScrollViewControllerExampleTests 16 | 17 | - (void)setUp 18 | { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown 24 | { 25 | // Put teardown code here. This method is called after the invocation of each test method in the class. 26 | [super tearDown]; 27 | } 28 | 29 | - (void)testExample 30 | { 31 | XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); 32 | } 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /ABFullScrollViewControllerExample/ABFullScrollViewControllerExampleTests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ABFullScrollViewControllerExample/Demo/ABFullScrollVC_screen_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andresbrun/ABFullScrollViewController/92013635f721e0852cce39b898a5a549036560c7/ABFullScrollViewControllerExample/Demo/ABFullScrollVC_screen_1.png -------------------------------------------------------------------------------- /ABFullScrollViewControllerExample/Demo/ABFullScrollVC_screen_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andresbrun/ABFullScrollViewController/92013635f721e0852cce39b898a5a549036560c7/ABFullScrollViewControllerExample/Demo/ABFullScrollVC_screen_2.png -------------------------------------------------------------------------------- /ABFullScrollViewControllerExample/Demo/ABMFullScroll_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andresbrun/ABFullScrollViewController/92013635f721e0852cce39b898a5a549036560c7/ABFullScrollViewControllerExample/Demo/ABMFullScroll_logo.png -------------------------------------------------------------------------------- /ABFullScrollViewControllerExample/Demo/ABMFullScroll_scheme_multiplexer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andresbrun/ABFullScrollViewController/92013635f721e0852cce39b898a5a549036560c7/ABFullScrollViewControllerExample/Demo/ABMFullScroll_scheme_multiplexer.png -------------------------------------------------------------------------------- /ABFullScrollViewControllerExample/Demo/ABMFullScroll_scheme_simple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andresbrun/ABFullScrollViewController/92013635f721e0852cce39b898a5a549036560c7/ABFullScrollViewControllerExample/Demo/ABMFullScroll_scheme_simple.png -------------------------------------------------------------------------------- /ABFullScrollViewControllerExample/Demo/instructions_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andresbrun/ABFullScrollViewController/92013635f721e0852cce39b898a5a549036560c7/ABFullScrollViewControllerExample/Demo/instructions_1.png -------------------------------------------------------------------------------- /ABFullScrollViewControllerExample/Demo/instructions_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andresbrun/ABFullScrollViewController/92013635f721e0852cce39b898a5a549036560c7/ABFullScrollViewControllerExample/Demo/instructions_2.png -------------------------------------------------------------------------------- /ABFullScrollViewControllerExample/Demo/instructions_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andresbrun/ABFullScrollViewController/92013635f721e0852cce39b898a5a549036560c7/ABFullScrollViewControllerExample/Demo/instructions_3.png -------------------------------------------------------------------------------- /ABMFullScrollBehavior.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | 3 | s.name = "ABMFullScrollBehavior" 4 | s.version = "2.0" 5 | s.summary = "Component that provide the behavior of hidding a header view while the user makes scroll. It is inspiring in Facebook table scroll style." 6 | s.homepage = "https://github.com/andresbrun/ABFullScrollViewController" 7 | s.screenshots = "https://raw.githubusercontent.com/andresbrun/ABFullScrollViewController/master/ABFullScrollViewControllerExample/Demo/ABFullScrollVC_screen_1.png" 8 | 9 | s.license = { :type => 'MIT', :file => 'LICENSE' } 10 | s.author = { "Andrés Brun Moreno" => "andresbrunmoreno@gmail.com" } 11 | 12 | s.platform = :ios, '6.0' 13 | s.source = { :git => "https://github.com/andresbrun/ABFullScrollViewController.git", :tag => "CocoaPods/v2.0" } 14 | 15 | s.source_files = 'ABMFullScrollBehavior/*.{h,m}' 16 | 17 | s.requires_arc = true 18 | 19 | end 20 | -------------------------------------------------------------------------------- /ABMFullScrollBehavior/ABMFullScrollBehavior.h: -------------------------------------------------------------------------------- 1 | // 2 | // ABMFullScrollBehavior.h 3 | // ABFullScrollViewControllerExample 4 | // 5 | // Created by Andres Brun Moreno on 28/03/15. 6 | // Copyright (c) 2015 Brun's Software. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @protocol ABMFullScrollBehaviorDelegate 12 | - (void)scroll:(UIScrollView *)scroll animationForHeaderView:(UIView *)view percent:(CGFloat)percent 13 | ; 14 | @end 15 | 16 | @interface ABMFullScrollBehavior : NSObject 17 | 18 | @property (nonatomic) IBInspectable CGFloat minVisibleHeight; 19 | @property (nonatomic) IBInspectable BOOL imantate; 20 | 21 | @property (weak, nonatomic) IBOutlet UIScrollView *scrollView; 22 | @property (weak, nonatomic) IBOutlet UIView *headerView; 23 | 24 | @property (weak) IBOutlet id delegate; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /ABMFullScrollBehavior/ABMFullScrollBehavior.m: -------------------------------------------------------------------------------- 1 | // 2 | // ABMFullScrollBehavior.m 3 | // ABFullScrollViewControllerExample 4 | // 5 | // Created by Andres Brun Moreno on 28/03/15. 6 | // Copyright (c) 2015 Brun's Software. All rights reserved. 7 | // 8 | 9 | #import "ABMFullScrollBehavior.h" 10 | #import 11 | 12 | @interface ABMFullScrollBehavior () 13 | 14 | @property(nonatomic, strong) NSNumber *initialYPosition; 15 | @property(nonatomic, assign) CGFloat initialYContentOffset; 16 | @property(nonatomic, assign) CGFloat previousYOffset; 17 | @property(nonatomic, assign) BOOL dragging; 18 | @property(nonatomic, assign) BOOL draggingScrollDown; 19 | 20 | @end 21 | 22 | @implementation ABMFullScrollBehavior 23 | 24 | - (void)awakeFromNib { 25 | [super awakeFromNib]; 26 | 27 | // Otherwise IBOutlet are nil. Didn't find any other way to do it 28 | dispatch_async(dispatch_get_main_queue(), ^{ 29 | [self setUpInitialValues]; 30 | }); 31 | } 32 | 33 | - (void) setUpInitialValues { 34 | 35 | self.initialYContentOffset = 0; 36 | self.previousYOffset = self.initialYContentOffset; 37 | 38 | if (self.scrollView && self.headerView) { 39 | UIEdgeInsets edges = self.scrollView.contentInset; 40 | [self.scrollView setContentInset:UIEdgeInsetsMake(CGRectGetHeight(self.headerView.frame), edges.left, edges.bottom, edges.right)]; 41 | [self.scrollView setScrollIndicatorInsets:self.scrollView.contentInset]; 42 | } 43 | } 44 | 45 | 46 | #pragma mark - Scroll delegates 47 | - (void)scrollViewDidScrollToTop:(UIScrollView *)scrollView { 48 | float delta= self.previousYOffset - scrollView.contentOffset.y; 49 | [self moveHeaderToY: delta]; 50 | } 51 | 52 | - (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView { 53 | if (!self.initialYPosition) { 54 | self.initialYPosition = @(CGRectGetMinY(self.headerView.frame)); 55 | } 56 | self.dragging = YES; 57 | } 58 | 59 | - (void)scrollViewDidScroll:(UIScrollView *)scrollView { 60 | if(self.headerView && self.dragging) { 61 | 62 | //Move toolbar 63 | float yCurrentOffset = scrollView.contentOffset.y; 64 | 65 | //Avoid a wrong behaviour when scroll bounce to top 66 | if(yCurrentOffset > self.initialYContentOffset) { 67 | float delta = _previousYOffset - yCurrentOffset; 68 | [self moveHeaderToY: self.headerView.frame.origin.y + delta]; 69 | } 70 | 71 | _previousYOffset = yCurrentOffset; 72 | } 73 | } 74 | 75 | - (void)scrollViewWillEndDragging:(UIScrollView *)scrollView withVelocity:(CGPoint)velocity targetContentOffset:(inout CGPoint *)targetContentOffset { 76 | self.dragging=NO; 77 | 78 | if (velocity.y == 0) { 79 | self.draggingScrollDown = [self currentHeaderPositionPercent] < 0.5; 80 | [self imantateToNearPosition]; 81 | } else { 82 | self.draggingScrollDown = velocity.y > 0; 83 | } 84 | } 85 | 86 | - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView { 87 | self.previousYOffset = scrollView.contentOffset.y; 88 | 89 | [self imantateToNearPosition]; 90 | } 91 | 92 | #pragma mark - Private methods 93 | - (void)imantateToNearPosition { 94 | if (self.imantate) { 95 | [UIView animateWithDuration:0.1 animations:^{ 96 | [self moveHeaderToY:self.draggingScrollDown ? [self headerViewInitialYPos] : [self headerViewFinalYPos]]; 97 | }]; 98 | } 99 | } 100 | 101 | - (void)moveHeaderToY:(CGFloat)y { 102 | [self moveHeaderInsideBoundToY:y]; 103 | 104 | if ([self.delegate respondsToSelector:@selector(scroll:animationForHeaderView:percent:)]) { 105 | [self.delegate scroll:self.scrollView animationForHeaderView:self.headerView percent:[self currentHeaderPositionPercent]]; 106 | } 107 | } 108 | 109 | - (void)moveHeaderInsideBoundToY:(CGFloat)y { 110 | CGRect rect = self.headerView.frame; 111 | rect.origin.y = MAX(MIN(y, [self headerViewFinalYPos]), [self headerViewInitialYPos]); 112 | [self.headerView setFrame:rect]; 113 | } 114 | 115 | - (CGFloat)headerViewInitialYPos { 116 | return [self.initialYPosition floatValue] + self.minVisibleHeight - self.headerView.frame.size.height; 117 | } 118 | 119 | - (CGFloat)headerViewFinalYPos { 120 | return [self.initialYPosition floatValue]; 121 | } 122 | 123 | - (CGFloat)currentHeaderPositionPercent { 124 | return 1.0 - ((self.headerView.frame.origin.y - [self headerViewFinalYPos])/([self headerViewInitialYPos] - [self headerViewFinalYPos])); 125 | } 126 | 127 | @end 128 | -------------------------------------------------------------------------------- /ABMFullScrollBehavior/ABMMultiplexerProxyBehavior.h: -------------------------------------------------------------------------------- 1 | // 2 | // MultiplexerProxyBehavior.h 3 | // ABFullScrollViewControllerExample 4 | // 5 | // Created by Andres Brun Moreno on 28/03/15. 6 | // Copyright (c) 2015 Brun's Software. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ABMMultiplexerProxyBehavior : NSObject 12 | 13 | //! targets to propagate messages to 14 | @property(nonatomic, strong) IBOutletCollection(id) NSArray *targets; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ABMFullScrollBehavior/ABMMultiplexerProxyBehavior.m: -------------------------------------------------------------------------------- 1 | // 2 | // MultiplexerProxyBehavior.m 3 | // ABFullScrollViewControllerExample 4 | // 5 | // Created by Andres Brun Moreno on 28/03/15. 6 | // Copyright (c) 2015 Brun's Software. All rights reserved. 7 | // 8 | 9 | #import "ABMMultiplexerProxyBehavior.h" 10 | 11 | @implementation ABMMultiplexerProxyBehavior 12 | 13 | - (NSMethodSignature *)methodSignatureForSelector:(SEL)sel { 14 | NSMethodSignature *sig = [super methodSignatureForSelector:sel]; 15 | if (!sig) { 16 | for (id obj in self.targets) { 17 | if ((sig = [obj methodSignatureForSelector:sel])) { 18 | break; 19 | } 20 | } 21 | } 22 | return sig; 23 | } 24 | 25 | - (BOOL)respondsToSelector:(SEL)aSelector { 26 | BOOL base = [super respondsToSelector:aSelector]; 27 | if (base) { 28 | return base; 29 | } 30 | 31 | for (id obj in self.targets) { 32 | if ([obj respondsToSelector:aSelector]) { 33 | return YES; 34 | } 35 | } 36 | return NO; 37 | } 38 | 39 | 40 | - (void)forwardInvocation:(NSInvocation *)anInvocation { 41 | for (id obj in self.targets) { 42 | if ([obj respondsToSelector:anInvocation.selector]) { 43 | [anInvocation invokeWithTarget:obj]; 44 | } 45 | } 46 | } 47 | @end 48 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Andrés Brun 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | 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, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![alt tag](https://raw.githubusercontent.com/andresbrun/ABFullScrollViewController/master/ABFullScrollViewControllerExample/Demo/ABMFullScroll_logo.png) 2 | 3 | [![License MIT](https://go-shields.herokuapp.com/license-MIT-blue.png)](https://github.com/andresbrun/ABFullScrollViewController/blob/master/LICENSE) 4 | [![Build Status](https://travis-ci.org/andresbrun/ABFullScrollViewController.png?branch=master)](https://github.com/andresbrun/ABFullScrollViewController) 5 | [![Build Platform](https://cocoapod-badges.herokuapp.com/p/ABMFullScrollBehavior/badge.png)](https://github.com/andresbrun/ABFullScrollViewController) 6 | [![Build Version](https://cocoapod-badges.herokuapp.com/v/ABMFullScrollBehavior/badge.png)](https://github.com/andresbrun/ABFullScrollViewController) 7 | 8 | Component that provide the behavior of hidding a header view while the user makes scroll. It is inspiring in Facebook table scroll style. For sake of simplicity this component follows `Behavioral Object Pattern` [Objc.io](http://www.objc.io/issue-13/behaviors.html). 9 | 10 | ### Installation with CocoaPods 11 | 12 | [CocoaPods](http://cocoapods.org) is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like ABMFullScrollBehavior in your projects. 13 | 14 | #### Podfile 15 | 16 | ```ruby 17 | pod "ABMFullScrollBehavior" 18 | ``` 19 | 20 | ### Manual Installation 21 | If you don't want to use cocoapods you just need to copy `ABMFullScrollBehavior` folder in your project. 22 | 23 | ### Configuration 24 | In order to apply this behaviour to your scroll based view you just need to follow next steps: 25 | - Create a new Object in your ViewController using the .xib. 26 | 27 | ![alt tag](https://raw.githubusercontent.com/andresbrun/ABFullScrollViewController/master/ABFullScrollViewControllerExample/Demo/instructions_1.png) 28 | 29 | - Change the class to `ABMFullScrollBehavior` 30 | 31 | ![alt tag](https://raw.githubusercontent.com/andresbrun/ABFullScrollViewController/master/ABFullScrollViewControllerExample/Demo/instructions_3.png) 32 | 33 | - Connect the different IBOutlets: 34 | - `delegate` 35 | - `headerView` 36 | - `scrollView` 37 | 38 | - This object have a couple of `IBInspectable` properties that you can set from the storyboard: 39 | - `Imantate` in case you want to avoid the user leave the header in a non-end state. 40 | - `MinVisibleHeightHeader` to define how much header view height will remain visible. 41 | 42 | ![alt tag](https://raw.githubusercontent.com/andresbrun/ABFullScrollViewController/master/ABFullScrollViewControllerExample/Demo/instructions_2.png) 43 | 44 | - And that is! You got your scroll hiding the header when the user makes scroll! 45 | 46 | ### I want to use my scroll base element delegate 47 | Most likely you will want your UITableView reacts when the user press a cell and for that you need to use its delegate for instance. But I need it too to know when the user is doing scroll. Fine, let's solve this! 48 | 49 | Inside of the component there is another class called `ABMMultiplexerProxyBehavior`. That is used for connect one delegate and forward every call to every target we connect to it. So the steps would be: 50 | 51 | - Create a `ABMMultiplexerProxyBehavior` object in our ViewController using the storyboard or .xib editor. 52 | - Instead of connecting our scroll base element delegate to `ABMFullScrollBehavior` object we should connect it to this new object. 53 | - `ABMMultiplexerProxyBehavior` has and IBOutlet called `targets`. This is a `IBOutletCollection` so we can connect our `ABMFullScrollBehavior` object and the ViewController as well. 54 | 55 | ### I want to customize the animation 56 | You can provide a delegate for `ABMFullScrollBehavior` and implement it like the example: 57 | 58 | ```objective-c 59 | - (void)scroll:(UIScrollView *)scroll animationForHeaderView:(UIView *)view percent:(CGFloat)percent { 60 | [self.headerContainerView setAlpha:percent]; 61 | 62 | CGFloat transform = MIN(percent+0.5, 1); 63 | [self.headerContainerView setTransform:CGAffineTransformMakeScale(transform, transform)]; 64 | } 65 | ``` 66 | 67 | ## Architecture 68 | 69 | Let's do an small summarize of how is design all the connections between the different objects. 70 | 71 | #### Without ABMMultiplexerProxyBehavior 72 | 73 | ![alt tag](https://raw.githubusercontent.com/andresbrun/ABFullScrollViewController/master/ABFullScrollViewControllerExample/Demo/ABMFullScroll_scheme_simple.png) 74 | 75 | #### With ABMMultiplexerProxyBehavior 76 | 77 | ![alt tag](https://raw.githubusercontent.com/andresbrun/ABFullScrollViewController/master/ABFullScrollViewControllerExample/Demo/ABMFullScroll_scheme_multiplexer.png) 78 | 79 | ## Features 80 | - This components supports `Size classes` and `Autolayout`. 81 | - Also supports `Navigation Item`. 82 | - It works with any UI element that inherate from `UIScrollView` class. 83 | - `UICollectionView` 84 | - `UITableView` 85 | - `UIScrollView` 86 | - Everthing is configured just using storyboard of .xib editor. That make more encapsulate this code and it is painless to integrate and modify. 87 | 88 | ## Examples 89 | 90 | ![alt tag](https://raw.githubusercontent.com/andresbrun/ABFullScrollViewController/master/ABFullScrollViewControllerExample/Demo/ABFullScrollVC_screen_1.png) 91 | 92 | ## License 93 | 94 | ABMFullScrollBehavior is available under the MIT license. See the LICENSE file for more info. 95 | --------------------------------------------------------------------------------