├── LICENSE ├── LLWPlusPopViewDemo.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ │ └── eleven.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── xcuserdata │ └── eleven.xcuserdatad │ ├── xcdebugger │ └── Breakpoints_v2.xcbkptlist │ └── xcschemes │ └── xcschememanagement.plist ├── LLWPlusPopViewDemo ├── AppDelegate.h ├── AppDelegate.m ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ ├── Contents.json │ ├── icon_add.imageset │ │ ├── Contents.json │ │ ├── icon_add_1_n@2x.png │ │ └── icon_add_1_n@3x.png │ ├── publish_0.imageset │ │ ├── Contents.json │ │ ├── publish_0@2x.png │ │ └── publish_0@3x.png │ ├── publish_1.imageset │ │ ├── Contents.json │ │ ├── publish_1@2x.png │ │ └── publish_1@3x.png │ ├── publish_2.imageset │ │ ├── Contents.json │ │ ├── publish_2@2x.png │ │ └── publish_2@3x.png │ ├── publish_3.imageset │ │ ├── Contents.json │ │ ├── publish_3@2x.png │ │ └── publish_3@3x.png │ ├── publish_4.imageset │ │ ├── Contents.json │ │ ├── publish_4@2x.png │ │ └── publish_4@3x.png │ ├── publish_5.imageset │ │ ├── Contents.json │ │ ├── publish_5@2x.png │ │ └── publish_5@3x.png │ └── publish_6.imageset │ │ ├── Contents.json │ │ ├── publish_0@2x.png │ │ └── publish_0@3x.png ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── Header.h ├── Info.plist ├── LLWPlusPopView │ ├── LLWCustomButton.h │ ├── LLWCustomButton.m │ ├── LLWPlusPopView.h │ └── LLWPlusPopView.m ├── ViewController.h ├── ViewController.m └── main.m ├── LLWPlusPopViewDemoTests ├── Info.plist └── LLWPlusPopViewDemoTests.m ├── LLWPlusPopViewDemoUITests ├── Info.plist └── LLWPlusPopViewDemoUITests.m └── README.md /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 HawkEleven 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 | -------------------------------------------------------------------------------- /LLWPlusPopViewDemo.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 48; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | A55D4EB6207C638D00BCB8C5 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = A55D4EB5207C638D00BCB8C5 /* AppDelegate.m */; }; 11 | A55D4EB9207C638D00BCB8C5 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A55D4EB8207C638D00BCB8C5 /* ViewController.m */; }; 12 | A55D4EBC207C638D00BCB8C5 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A55D4EBA207C638D00BCB8C5 /* Main.storyboard */; }; 13 | A55D4EBE207C638D00BCB8C5 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A55D4EBD207C638D00BCB8C5 /* Assets.xcassets */; }; 14 | A55D4EC1207C638D00BCB8C5 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A55D4EBF207C638D00BCB8C5 /* LaunchScreen.storyboard */; }; 15 | A55D4EC4207C638D00BCB8C5 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = A55D4EC3207C638D00BCB8C5 /* main.m */; }; 16 | A55D4ECE207C638D00BCB8C5 /* LLWPlusPopViewDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = A55D4ECD207C638D00BCB8C5 /* LLWPlusPopViewDemoTests.m */; }; 17 | A55D4ED9207C638D00BCB8C5 /* LLWPlusPopViewDemoUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = A55D4ED8207C638D00BCB8C5 /* LLWPlusPopViewDemoUITests.m */; }; 18 | A5813FE7207D9BED0004979E /* LLWCustomButton.m in Sources */ = {isa = PBXBuildFile; fileRef = A5813FE4207D9BED0004979E /* LLWCustomButton.m */; }; 19 | A5813FE8207D9BED0004979E /* LLWPlusPopView.m in Sources */ = {isa = PBXBuildFile; fileRef = A5813FE5207D9BED0004979E /* LLWPlusPopView.m */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | A55D4ECA207C638D00BCB8C5 /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = A55D4EA9207C638C00BCB8C5 /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = A55D4EB0207C638C00BCB8C5; 28 | remoteInfo = LLWPlusPopViewDemo; 29 | }; 30 | A55D4ED5207C638D00BCB8C5 /* PBXContainerItemProxy */ = { 31 | isa = PBXContainerItemProxy; 32 | containerPortal = A55D4EA9207C638C00BCB8C5 /* Project object */; 33 | proxyType = 1; 34 | remoteGlobalIDString = A55D4EB0207C638C00BCB8C5; 35 | remoteInfo = LLWPlusPopViewDemo; 36 | }; 37 | /* End PBXContainerItemProxy section */ 38 | 39 | /* Begin PBXFileReference section */ 40 | A522CEE7207CED7B00B33352 /* Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Header.h; sourceTree = ""; }; 41 | A55D4EB1207C638C00BCB8C5 /* LLWPlusPopViewDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = LLWPlusPopViewDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 42 | A55D4EB4207C638D00BCB8C5 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 43 | A55D4EB5207C638D00BCB8C5 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 44 | A55D4EB7207C638D00BCB8C5 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 45 | A55D4EB8207C638D00BCB8C5 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 46 | A55D4EBB207C638D00BCB8C5 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 47 | A55D4EBD207C638D00BCB8C5 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 48 | A55D4EC0207C638D00BCB8C5 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 49 | A55D4EC2207C638D00BCB8C5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 50 | A55D4EC3207C638D00BCB8C5 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 51 | A55D4EC9207C638D00BCB8C5 /* LLWPlusPopViewDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = LLWPlusPopViewDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | A55D4ECD207C638D00BCB8C5 /* LLWPlusPopViewDemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LLWPlusPopViewDemoTests.m; sourceTree = ""; }; 53 | A55D4ECF207C638D00BCB8C5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 54 | A55D4ED4207C638D00BCB8C5 /* LLWPlusPopViewDemoUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = LLWPlusPopViewDemoUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 55 | A55D4ED8207C638D00BCB8C5 /* LLWPlusPopViewDemoUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LLWPlusPopViewDemoUITests.m; sourceTree = ""; }; 56 | A55D4EDA207C638D00BCB8C5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 57 | A5813FE3207D9BED0004979E /* LLWPlusPopView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LLWPlusPopView.h; sourceTree = ""; }; 58 | A5813FE4207D9BED0004979E /* LLWCustomButton.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LLWCustomButton.m; sourceTree = ""; }; 59 | A5813FE5207D9BED0004979E /* LLWPlusPopView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LLWPlusPopView.m; sourceTree = ""; }; 60 | A5813FE6207D9BED0004979E /* LLWCustomButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LLWCustomButton.h; sourceTree = ""; }; 61 | /* End PBXFileReference section */ 62 | 63 | /* Begin PBXFrameworksBuildPhase section */ 64 | A55D4EAE207C638C00BCB8C5 /* Frameworks */ = { 65 | isa = PBXFrameworksBuildPhase; 66 | buildActionMask = 2147483647; 67 | files = ( 68 | ); 69 | runOnlyForDeploymentPostprocessing = 0; 70 | }; 71 | A55D4EC6207C638D00BCB8C5 /* Frameworks */ = { 72 | isa = PBXFrameworksBuildPhase; 73 | buildActionMask = 2147483647; 74 | files = ( 75 | ); 76 | runOnlyForDeploymentPostprocessing = 0; 77 | }; 78 | A55D4ED1207C638D00BCB8C5 /* Frameworks */ = { 79 | isa = PBXFrameworksBuildPhase; 80 | buildActionMask = 2147483647; 81 | files = ( 82 | ); 83 | runOnlyForDeploymentPostprocessing = 0; 84 | }; 85 | /* End PBXFrameworksBuildPhase section */ 86 | 87 | /* Begin PBXGroup section */ 88 | A55D4EA8207C638C00BCB8C5 = { 89 | isa = PBXGroup; 90 | children = ( 91 | A55D4EB3207C638C00BCB8C5 /* LLWPlusPopViewDemo */, 92 | A55D4ECC207C638D00BCB8C5 /* LLWPlusPopViewDemoTests */, 93 | A55D4ED7207C638D00BCB8C5 /* LLWPlusPopViewDemoUITests */, 94 | A55D4EB2207C638C00BCB8C5 /* Products */, 95 | ); 96 | sourceTree = ""; 97 | }; 98 | A55D4EB2207C638C00BCB8C5 /* Products */ = { 99 | isa = PBXGroup; 100 | children = ( 101 | A55D4EB1207C638C00BCB8C5 /* LLWPlusPopViewDemo.app */, 102 | A55D4EC9207C638D00BCB8C5 /* LLWPlusPopViewDemoTests.xctest */, 103 | A55D4ED4207C638D00BCB8C5 /* LLWPlusPopViewDemoUITests.xctest */, 104 | ); 105 | name = Products; 106 | sourceTree = ""; 107 | }; 108 | A55D4EB3207C638C00BCB8C5 /* LLWPlusPopViewDemo */ = { 109 | isa = PBXGroup; 110 | children = ( 111 | A5813FE2207D9BED0004979E /* LLWPlusPopView */, 112 | A55D4EB4207C638D00BCB8C5 /* AppDelegate.h */, 113 | A55D4EB5207C638D00BCB8C5 /* AppDelegate.m */, 114 | A55D4EB7207C638D00BCB8C5 /* ViewController.h */, 115 | A55D4EB8207C638D00BCB8C5 /* ViewController.m */, 116 | A522CEE7207CED7B00B33352 /* Header.h */, 117 | A55D4EBA207C638D00BCB8C5 /* Main.storyboard */, 118 | A55D4EBD207C638D00BCB8C5 /* Assets.xcassets */, 119 | A55D4EBF207C638D00BCB8C5 /* LaunchScreen.storyboard */, 120 | A55D4EC2207C638D00BCB8C5 /* Info.plist */, 121 | A55D4EC3207C638D00BCB8C5 /* main.m */, 122 | ); 123 | path = LLWPlusPopViewDemo; 124 | sourceTree = ""; 125 | }; 126 | A55D4ECC207C638D00BCB8C5 /* LLWPlusPopViewDemoTests */ = { 127 | isa = PBXGroup; 128 | children = ( 129 | A55D4ECD207C638D00BCB8C5 /* LLWPlusPopViewDemoTests.m */, 130 | A55D4ECF207C638D00BCB8C5 /* Info.plist */, 131 | ); 132 | path = LLWPlusPopViewDemoTests; 133 | sourceTree = ""; 134 | }; 135 | A55D4ED7207C638D00BCB8C5 /* LLWPlusPopViewDemoUITests */ = { 136 | isa = PBXGroup; 137 | children = ( 138 | A55D4ED8207C638D00BCB8C5 /* LLWPlusPopViewDemoUITests.m */, 139 | A55D4EDA207C638D00BCB8C5 /* Info.plist */, 140 | ); 141 | path = LLWPlusPopViewDemoUITests; 142 | sourceTree = ""; 143 | }; 144 | A5813FE2207D9BED0004979E /* LLWPlusPopView */ = { 145 | isa = PBXGroup; 146 | children = ( 147 | A5813FE6207D9BED0004979E /* LLWCustomButton.h */, 148 | A5813FE4207D9BED0004979E /* LLWCustomButton.m */, 149 | A5813FE3207D9BED0004979E /* LLWPlusPopView.h */, 150 | A5813FE5207D9BED0004979E /* LLWPlusPopView.m */, 151 | ); 152 | path = LLWPlusPopView; 153 | sourceTree = ""; 154 | }; 155 | /* End PBXGroup section */ 156 | 157 | /* Begin PBXNativeTarget section */ 158 | A55D4EB0207C638C00BCB8C5 /* LLWPlusPopViewDemo */ = { 159 | isa = PBXNativeTarget; 160 | buildConfigurationList = A55D4EDD207C638D00BCB8C5 /* Build configuration list for PBXNativeTarget "LLWPlusPopViewDemo" */; 161 | buildPhases = ( 162 | A55D4EAD207C638C00BCB8C5 /* Sources */, 163 | A55D4EAE207C638C00BCB8C5 /* Frameworks */, 164 | A55D4EAF207C638C00BCB8C5 /* Resources */, 165 | ); 166 | buildRules = ( 167 | ); 168 | dependencies = ( 169 | ); 170 | name = LLWPlusPopViewDemo; 171 | productName = LLWPlusPopViewDemo; 172 | productReference = A55D4EB1207C638C00BCB8C5 /* LLWPlusPopViewDemo.app */; 173 | productType = "com.apple.product-type.application"; 174 | }; 175 | A55D4EC8207C638D00BCB8C5 /* LLWPlusPopViewDemoTests */ = { 176 | isa = PBXNativeTarget; 177 | buildConfigurationList = A55D4EE0207C638D00BCB8C5 /* Build configuration list for PBXNativeTarget "LLWPlusPopViewDemoTests" */; 178 | buildPhases = ( 179 | A55D4EC5207C638D00BCB8C5 /* Sources */, 180 | A55D4EC6207C638D00BCB8C5 /* Frameworks */, 181 | A55D4EC7207C638D00BCB8C5 /* Resources */, 182 | ); 183 | buildRules = ( 184 | ); 185 | dependencies = ( 186 | A55D4ECB207C638D00BCB8C5 /* PBXTargetDependency */, 187 | ); 188 | name = LLWPlusPopViewDemoTests; 189 | productName = LLWPlusPopViewDemoTests; 190 | productReference = A55D4EC9207C638D00BCB8C5 /* LLWPlusPopViewDemoTests.xctest */; 191 | productType = "com.apple.product-type.bundle.unit-test"; 192 | }; 193 | A55D4ED3207C638D00BCB8C5 /* LLWPlusPopViewDemoUITests */ = { 194 | isa = PBXNativeTarget; 195 | buildConfigurationList = A55D4EE3207C638D00BCB8C5 /* Build configuration list for PBXNativeTarget "LLWPlusPopViewDemoUITests" */; 196 | buildPhases = ( 197 | A55D4ED0207C638D00BCB8C5 /* Sources */, 198 | A55D4ED1207C638D00BCB8C5 /* Frameworks */, 199 | A55D4ED2207C638D00BCB8C5 /* Resources */, 200 | ); 201 | buildRules = ( 202 | ); 203 | dependencies = ( 204 | A55D4ED6207C638D00BCB8C5 /* PBXTargetDependency */, 205 | ); 206 | name = LLWPlusPopViewDemoUITests; 207 | productName = LLWPlusPopViewDemoUITests; 208 | productReference = A55D4ED4207C638D00BCB8C5 /* LLWPlusPopViewDemoUITests.xctest */; 209 | productType = "com.apple.product-type.bundle.ui-testing"; 210 | }; 211 | /* End PBXNativeTarget section */ 212 | 213 | /* Begin PBXProject section */ 214 | A55D4EA9207C638C00BCB8C5 /* Project object */ = { 215 | isa = PBXProject; 216 | attributes = { 217 | LastUpgradeCheck = 0910; 218 | ORGANIZATIONNAME = TGF; 219 | TargetAttributes = { 220 | A55D4EB0207C638C00BCB8C5 = { 221 | CreatedOnToolsVersion = 9.1; 222 | ProvisioningStyle = Automatic; 223 | }; 224 | A55D4EC8207C638D00BCB8C5 = { 225 | CreatedOnToolsVersion = 9.1; 226 | ProvisioningStyle = Automatic; 227 | TestTargetID = A55D4EB0207C638C00BCB8C5; 228 | }; 229 | A55D4ED3207C638D00BCB8C5 = { 230 | CreatedOnToolsVersion = 9.1; 231 | ProvisioningStyle = Automatic; 232 | TestTargetID = A55D4EB0207C638C00BCB8C5; 233 | }; 234 | }; 235 | }; 236 | buildConfigurationList = A55D4EAC207C638C00BCB8C5 /* Build configuration list for PBXProject "LLWPlusPopViewDemo" */; 237 | compatibilityVersion = "Xcode 8.0"; 238 | developmentRegion = en; 239 | hasScannedForEncodings = 0; 240 | knownRegions = ( 241 | en, 242 | Base, 243 | ); 244 | mainGroup = A55D4EA8207C638C00BCB8C5; 245 | productRefGroup = A55D4EB2207C638C00BCB8C5 /* Products */; 246 | projectDirPath = ""; 247 | projectRoot = ""; 248 | targets = ( 249 | A55D4EB0207C638C00BCB8C5 /* LLWPlusPopViewDemo */, 250 | A55D4EC8207C638D00BCB8C5 /* LLWPlusPopViewDemoTests */, 251 | A55D4ED3207C638D00BCB8C5 /* LLWPlusPopViewDemoUITests */, 252 | ); 253 | }; 254 | /* End PBXProject section */ 255 | 256 | /* Begin PBXResourcesBuildPhase section */ 257 | A55D4EAF207C638C00BCB8C5 /* Resources */ = { 258 | isa = PBXResourcesBuildPhase; 259 | buildActionMask = 2147483647; 260 | files = ( 261 | A55D4EC1207C638D00BCB8C5 /* LaunchScreen.storyboard in Resources */, 262 | A55D4EBE207C638D00BCB8C5 /* Assets.xcassets in Resources */, 263 | A55D4EBC207C638D00BCB8C5 /* Main.storyboard in Resources */, 264 | ); 265 | runOnlyForDeploymentPostprocessing = 0; 266 | }; 267 | A55D4EC7207C638D00BCB8C5 /* Resources */ = { 268 | isa = PBXResourcesBuildPhase; 269 | buildActionMask = 2147483647; 270 | files = ( 271 | ); 272 | runOnlyForDeploymentPostprocessing = 0; 273 | }; 274 | A55D4ED2207C638D00BCB8C5 /* Resources */ = { 275 | isa = PBXResourcesBuildPhase; 276 | buildActionMask = 2147483647; 277 | files = ( 278 | ); 279 | runOnlyForDeploymentPostprocessing = 0; 280 | }; 281 | /* End PBXResourcesBuildPhase section */ 282 | 283 | /* Begin PBXSourcesBuildPhase section */ 284 | A55D4EAD207C638C00BCB8C5 /* Sources */ = { 285 | isa = PBXSourcesBuildPhase; 286 | buildActionMask = 2147483647; 287 | files = ( 288 | A55D4EB9207C638D00BCB8C5 /* ViewController.m in Sources */, 289 | A55D4EC4207C638D00BCB8C5 /* main.m in Sources */, 290 | A5813FE8207D9BED0004979E /* LLWPlusPopView.m in Sources */, 291 | A5813FE7207D9BED0004979E /* LLWCustomButton.m in Sources */, 292 | A55D4EB6207C638D00BCB8C5 /* AppDelegate.m in Sources */, 293 | ); 294 | runOnlyForDeploymentPostprocessing = 0; 295 | }; 296 | A55D4EC5207C638D00BCB8C5 /* Sources */ = { 297 | isa = PBXSourcesBuildPhase; 298 | buildActionMask = 2147483647; 299 | files = ( 300 | A55D4ECE207C638D00BCB8C5 /* LLWPlusPopViewDemoTests.m in Sources */, 301 | ); 302 | runOnlyForDeploymentPostprocessing = 0; 303 | }; 304 | A55D4ED0207C638D00BCB8C5 /* Sources */ = { 305 | isa = PBXSourcesBuildPhase; 306 | buildActionMask = 2147483647; 307 | files = ( 308 | A55D4ED9207C638D00BCB8C5 /* LLWPlusPopViewDemoUITests.m in Sources */, 309 | ); 310 | runOnlyForDeploymentPostprocessing = 0; 311 | }; 312 | /* End PBXSourcesBuildPhase section */ 313 | 314 | /* Begin PBXTargetDependency section */ 315 | A55D4ECB207C638D00BCB8C5 /* PBXTargetDependency */ = { 316 | isa = PBXTargetDependency; 317 | target = A55D4EB0207C638C00BCB8C5 /* LLWPlusPopViewDemo */; 318 | targetProxy = A55D4ECA207C638D00BCB8C5 /* PBXContainerItemProxy */; 319 | }; 320 | A55D4ED6207C638D00BCB8C5 /* PBXTargetDependency */ = { 321 | isa = PBXTargetDependency; 322 | target = A55D4EB0207C638C00BCB8C5 /* LLWPlusPopViewDemo */; 323 | targetProxy = A55D4ED5207C638D00BCB8C5 /* PBXContainerItemProxy */; 324 | }; 325 | /* End PBXTargetDependency section */ 326 | 327 | /* Begin PBXVariantGroup section */ 328 | A55D4EBA207C638D00BCB8C5 /* Main.storyboard */ = { 329 | isa = PBXVariantGroup; 330 | children = ( 331 | A55D4EBB207C638D00BCB8C5 /* Base */, 332 | ); 333 | name = Main.storyboard; 334 | sourceTree = ""; 335 | }; 336 | A55D4EBF207C638D00BCB8C5 /* LaunchScreen.storyboard */ = { 337 | isa = PBXVariantGroup; 338 | children = ( 339 | A55D4EC0207C638D00BCB8C5 /* Base */, 340 | ); 341 | name = LaunchScreen.storyboard; 342 | sourceTree = ""; 343 | }; 344 | /* End PBXVariantGroup section */ 345 | 346 | /* Begin XCBuildConfiguration section */ 347 | A55D4EDB207C638D00BCB8C5 /* Debug */ = { 348 | isa = XCBuildConfiguration; 349 | buildSettings = { 350 | ALWAYS_SEARCH_USER_PATHS = NO; 351 | CLANG_ANALYZER_NONNULL = YES; 352 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 353 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 354 | CLANG_CXX_LIBRARY = "libc++"; 355 | CLANG_ENABLE_MODULES = YES; 356 | CLANG_ENABLE_OBJC_ARC = YES; 357 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 358 | CLANG_WARN_BOOL_CONVERSION = YES; 359 | CLANG_WARN_COMMA = YES; 360 | CLANG_WARN_CONSTANT_CONVERSION = YES; 361 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 362 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 363 | CLANG_WARN_EMPTY_BODY = YES; 364 | CLANG_WARN_ENUM_CONVERSION = YES; 365 | CLANG_WARN_INFINITE_RECURSION = YES; 366 | CLANG_WARN_INT_CONVERSION = YES; 367 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 368 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 369 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 370 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 371 | CLANG_WARN_STRICT_PROTOTYPES = YES; 372 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 373 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 374 | CLANG_WARN_UNREACHABLE_CODE = YES; 375 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 376 | CODE_SIGN_IDENTITY = "iPhone Developer"; 377 | COPY_PHASE_STRIP = NO; 378 | DEBUG_INFORMATION_FORMAT = dwarf; 379 | ENABLE_STRICT_OBJC_MSGSEND = YES; 380 | ENABLE_TESTABILITY = YES; 381 | GCC_C_LANGUAGE_STANDARD = gnu11; 382 | GCC_DYNAMIC_NO_PIC = NO; 383 | GCC_NO_COMMON_BLOCKS = YES; 384 | GCC_OPTIMIZATION_LEVEL = 0; 385 | GCC_PREPROCESSOR_DEFINITIONS = ( 386 | "DEBUG=1", 387 | "$(inherited)", 388 | ); 389 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 390 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 391 | GCC_WARN_UNDECLARED_SELECTOR = YES; 392 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 393 | GCC_WARN_UNUSED_FUNCTION = YES; 394 | GCC_WARN_UNUSED_VARIABLE = YES; 395 | IPHONEOS_DEPLOYMENT_TARGET = 11.1; 396 | MTL_ENABLE_DEBUG_INFO = YES; 397 | ONLY_ACTIVE_ARCH = YES; 398 | SDKROOT = iphoneos; 399 | }; 400 | name = Debug; 401 | }; 402 | A55D4EDC207C638D00BCB8C5 /* Release */ = { 403 | isa = XCBuildConfiguration; 404 | buildSettings = { 405 | ALWAYS_SEARCH_USER_PATHS = NO; 406 | CLANG_ANALYZER_NONNULL = YES; 407 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 408 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 409 | CLANG_CXX_LIBRARY = "libc++"; 410 | CLANG_ENABLE_MODULES = YES; 411 | CLANG_ENABLE_OBJC_ARC = YES; 412 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 413 | CLANG_WARN_BOOL_CONVERSION = YES; 414 | CLANG_WARN_COMMA = YES; 415 | CLANG_WARN_CONSTANT_CONVERSION = YES; 416 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 417 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 418 | CLANG_WARN_EMPTY_BODY = YES; 419 | CLANG_WARN_ENUM_CONVERSION = YES; 420 | CLANG_WARN_INFINITE_RECURSION = YES; 421 | CLANG_WARN_INT_CONVERSION = YES; 422 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 423 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 424 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 425 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 426 | CLANG_WARN_STRICT_PROTOTYPES = YES; 427 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 428 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 429 | CLANG_WARN_UNREACHABLE_CODE = YES; 430 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 431 | CODE_SIGN_IDENTITY = "iPhone Developer"; 432 | COPY_PHASE_STRIP = NO; 433 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 434 | ENABLE_NS_ASSERTIONS = NO; 435 | ENABLE_STRICT_OBJC_MSGSEND = YES; 436 | GCC_C_LANGUAGE_STANDARD = gnu11; 437 | GCC_NO_COMMON_BLOCKS = YES; 438 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 439 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 440 | GCC_WARN_UNDECLARED_SELECTOR = YES; 441 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 442 | GCC_WARN_UNUSED_FUNCTION = YES; 443 | GCC_WARN_UNUSED_VARIABLE = YES; 444 | IPHONEOS_DEPLOYMENT_TARGET = 11.1; 445 | MTL_ENABLE_DEBUG_INFO = NO; 446 | SDKROOT = iphoneos; 447 | VALIDATE_PRODUCT = YES; 448 | }; 449 | name = Release; 450 | }; 451 | A55D4EDE207C638D00BCB8C5 /* Debug */ = { 452 | isa = XCBuildConfiguration; 453 | buildSettings = { 454 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 455 | CODE_SIGN_STYLE = Automatic; 456 | INFOPLIST_FILE = LLWPlusPopViewDemo/Info.plist; 457 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 458 | PRODUCT_BUNDLE_IDENTIFIER = com.tgf..LLWPlusPopViewDemo; 459 | PRODUCT_NAME = "$(TARGET_NAME)"; 460 | TARGETED_DEVICE_FAMILY = "1,2"; 461 | }; 462 | name = Debug; 463 | }; 464 | A55D4EDF207C638D00BCB8C5 /* Release */ = { 465 | isa = XCBuildConfiguration; 466 | buildSettings = { 467 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 468 | CODE_SIGN_STYLE = Automatic; 469 | INFOPLIST_FILE = LLWPlusPopViewDemo/Info.plist; 470 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 471 | PRODUCT_BUNDLE_IDENTIFIER = com.tgf..LLWPlusPopViewDemo; 472 | PRODUCT_NAME = "$(TARGET_NAME)"; 473 | TARGETED_DEVICE_FAMILY = "1,2"; 474 | }; 475 | name = Release; 476 | }; 477 | A55D4EE1207C638D00BCB8C5 /* Debug */ = { 478 | isa = XCBuildConfiguration; 479 | buildSettings = { 480 | BUNDLE_LOADER = "$(TEST_HOST)"; 481 | CODE_SIGN_STYLE = Automatic; 482 | INFOPLIST_FILE = LLWPlusPopViewDemoTests/Info.plist; 483 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 484 | PRODUCT_BUNDLE_IDENTIFIER = com.tgf..LLWPlusPopViewDemoTests; 485 | PRODUCT_NAME = "$(TARGET_NAME)"; 486 | TARGETED_DEVICE_FAMILY = "1,2"; 487 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/LLWPlusPopViewDemo.app/LLWPlusPopViewDemo"; 488 | }; 489 | name = Debug; 490 | }; 491 | A55D4EE2207C638D00BCB8C5 /* Release */ = { 492 | isa = XCBuildConfiguration; 493 | buildSettings = { 494 | BUNDLE_LOADER = "$(TEST_HOST)"; 495 | CODE_SIGN_STYLE = Automatic; 496 | INFOPLIST_FILE = LLWPlusPopViewDemoTests/Info.plist; 497 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 498 | PRODUCT_BUNDLE_IDENTIFIER = com.tgf..LLWPlusPopViewDemoTests; 499 | PRODUCT_NAME = "$(TARGET_NAME)"; 500 | TARGETED_DEVICE_FAMILY = "1,2"; 501 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/LLWPlusPopViewDemo.app/LLWPlusPopViewDemo"; 502 | }; 503 | name = Release; 504 | }; 505 | A55D4EE4207C638D00BCB8C5 /* Debug */ = { 506 | isa = XCBuildConfiguration; 507 | buildSettings = { 508 | CODE_SIGN_STYLE = Automatic; 509 | INFOPLIST_FILE = LLWPlusPopViewDemoUITests/Info.plist; 510 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 511 | PRODUCT_BUNDLE_IDENTIFIER = com.tgf..LLWPlusPopViewDemoUITests; 512 | PRODUCT_NAME = "$(TARGET_NAME)"; 513 | TARGETED_DEVICE_FAMILY = "1,2"; 514 | TEST_TARGET_NAME = LLWPlusPopViewDemo; 515 | }; 516 | name = Debug; 517 | }; 518 | A55D4EE5207C638D00BCB8C5 /* Release */ = { 519 | isa = XCBuildConfiguration; 520 | buildSettings = { 521 | CODE_SIGN_STYLE = Automatic; 522 | INFOPLIST_FILE = LLWPlusPopViewDemoUITests/Info.plist; 523 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 524 | PRODUCT_BUNDLE_IDENTIFIER = com.tgf..LLWPlusPopViewDemoUITests; 525 | PRODUCT_NAME = "$(TARGET_NAME)"; 526 | TARGETED_DEVICE_FAMILY = "1,2"; 527 | TEST_TARGET_NAME = LLWPlusPopViewDemo; 528 | }; 529 | name = Release; 530 | }; 531 | /* End XCBuildConfiguration section */ 532 | 533 | /* Begin XCConfigurationList section */ 534 | A55D4EAC207C638C00BCB8C5 /* Build configuration list for PBXProject "LLWPlusPopViewDemo" */ = { 535 | isa = XCConfigurationList; 536 | buildConfigurations = ( 537 | A55D4EDB207C638D00BCB8C5 /* Debug */, 538 | A55D4EDC207C638D00BCB8C5 /* Release */, 539 | ); 540 | defaultConfigurationIsVisible = 0; 541 | defaultConfigurationName = Release; 542 | }; 543 | A55D4EDD207C638D00BCB8C5 /* Build configuration list for PBXNativeTarget "LLWPlusPopViewDemo" */ = { 544 | isa = XCConfigurationList; 545 | buildConfigurations = ( 546 | A55D4EDE207C638D00BCB8C5 /* Debug */, 547 | A55D4EDF207C638D00BCB8C5 /* Release */, 548 | ); 549 | defaultConfigurationIsVisible = 0; 550 | defaultConfigurationName = Release; 551 | }; 552 | A55D4EE0207C638D00BCB8C5 /* Build configuration list for PBXNativeTarget "LLWPlusPopViewDemoTests" */ = { 553 | isa = XCConfigurationList; 554 | buildConfigurations = ( 555 | A55D4EE1207C638D00BCB8C5 /* Debug */, 556 | A55D4EE2207C638D00BCB8C5 /* Release */, 557 | ); 558 | defaultConfigurationIsVisible = 0; 559 | defaultConfigurationName = Release; 560 | }; 561 | A55D4EE3207C638D00BCB8C5 /* Build configuration list for PBXNativeTarget "LLWPlusPopViewDemoUITests" */ = { 562 | isa = XCConfigurationList; 563 | buildConfigurations = ( 564 | A55D4EE4207C638D00BCB8C5 /* Debug */, 565 | A55D4EE5207C638D00BCB8C5 /* Release */, 566 | ); 567 | defaultConfigurationIsVisible = 0; 568 | defaultConfigurationName = Release; 569 | }; 570 | /* End XCConfigurationList section */ 571 | }; 572 | rootObject = A55D4EA9207C638C00BCB8C5 /* Project object */; 573 | } 574 | -------------------------------------------------------------------------------- /LLWPlusPopViewDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /LLWPlusPopViewDemo.xcodeproj/project.xcworkspace/xcuserdata/eleven.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HawkEleven/LLWPlusPopView/24c294c47dbf0a86a63863cfc349d4831322124e/LLWPlusPopViewDemo.xcodeproj/project.xcworkspace/xcuserdata/eleven.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /LLWPlusPopViewDemo.xcodeproj/xcuserdata/eleven.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 8 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /LLWPlusPopViewDemo.xcodeproj/xcuserdata/eleven.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | LLWPlusPopViewDemo.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // LLWPlusPopViewDemo 4 | // 5 | // Created by Eleven on 2018/4/10. 6 | // Copyright © 2018年 TGF. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // LLWPlusPopViewDemo 4 | // 5 | // Created by Eleven on 2018/4/10. 6 | // Copyright © 2018年 TGF. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 19 | // Override point for customization after application launch. 20 | return YES; 21 | } 22 | 23 | 24 | - (void)applicationWillResignActive:(UIApplication *)application { 25 | // 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. 26 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 27 | } 28 | 29 | 30 | - (void)applicationDidEnterBackground:(UIApplication *)application { 31 | // 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. 32 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 33 | } 34 | 35 | 36 | - (void)applicationWillEnterForeground:(UIApplication *)application { 37 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 38 | } 39 | 40 | 41 | - (void)applicationDidBecomeActive:(UIApplication *)application { 42 | // 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. 43 | } 44 | 45 | 46 | - (void)applicationWillTerminate:(UIApplication *)application { 47 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 48 | } 49 | 50 | 51 | @end 52 | -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ios-marketing", 45 | "size" : "1024x1024", 46 | "scale" : "1x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/Assets.xcassets/icon_add.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "icon_add_1_n@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "icon_add_1_n@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/Assets.xcassets/icon_add.imageset/icon_add_1_n@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HawkEleven/LLWPlusPopView/24c294c47dbf0a86a63863cfc349d4831322124e/LLWPlusPopViewDemo/Assets.xcassets/icon_add.imageset/icon_add_1_n@2x.png -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/Assets.xcassets/icon_add.imageset/icon_add_1_n@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HawkEleven/LLWPlusPopView/24c294c47dbf0a86a63863cfc349d4831322124e/LLWPlusPopViewDemo/Assets.xcassets/icon_add.imageset/icon_add_1_n@3x.png -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/Assets.xcassets/publish_0.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "publish_0@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "publish_0@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/Assets.xcassets/publish_0.imageset/publish_0@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HawkEleven/LLWPlusPopView/24c294c47dbf0a86a63863cfc349d4831322124e/LLWPlusPopViewDemo/Assets.xcassets/publish_0.imageset/publish_0@2x.png -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/Assets.xcassets/publish_0.imageset/publish_0@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HawkEleven/LLWPlusPopView/24c294c47dbf0a86a63863cfc349d4831322124e/LLWPlusPopViewDemo/Assets.xcassets/publish_0.imageset/publish_0@3x.png -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/Assets.xcassets/publish_1.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "publish_1@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "publish_1@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/Assets.xcassets/publish_1.imageset/publish_1@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HawkEleven/LLWPlusPopView/24c294c47dbf0a86a63863cfc349d4831322124e/LLWPlusPopViewDemo/Assets.xcassets/publish_1.imageset/publish_1@2x.png -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/Assets.xcassets/publish_1.imageset/publish_1@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HawkEleven/LLWPlusPopView/24c294c47dbf0a86a63863cfc349d4831322124e/LLWPlusPopViewDemo/Assets.xcassets/publish_1.imageset/publish_1@3x.png -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/Assets.xcassets/publish_2.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "publish_2@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "publish_2@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/Assets.xcassets/publish_2.imageset/publish_2@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HawkEleven/LLWPlusPopView/24c294c47dbf0a86a63863cfc349d4831322124e/LLWPlusPopViewDemo/Assets.xcassets/publish_2.imageset/publish_2@2x.png -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/Assets.xcassets/publish_2.imageset/publish_2@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HawkEleven/LLWPlusPopView/24c294c47dbf0a86a63863cfc349d4831322124e/LLWPlusPopViewDemo/Assets.xcassets/publish_2.imageset/publish_2@3x.png -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/Assets.xcassets/publish_3.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "publish_3@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "publish_3@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/Assets.xcassets/publish_3.imageset/publish_3@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HawkEleven/LLWPlusPopView/24c294c47dbf0a86a63863cfc349d4831322124e/LLWPlusPopViewDemo/Assets.xcassets/publish_3.imageset/publish_3@2x.png -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/Assets.xcassets/publish_3.imageset/publish_3@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HawkEleven/LLWPlusPopView/24c294c47dbf0a86a63863cfc349d4831322124e/LLWPlusPopViewDemo/Assets.xcassets/publish_3.imageset/publish_3@3x.png -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/Assets.xcassets/publish_4.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "publish_4@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "publish_4@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/Assets.xcassets/publish_4.imageset/publish_4@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HawkEleven/LLWPlusPopView/24c294c47dbf0a86a63863cfc349d4831322124e/LLWPlusPopViewDemo/Assets.xcassets/publish_4.imageset/publish_4@2x.png -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/Assets.xcassets/publish_4.imageset/publish_4@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HawkEleven/LLWPlusPopView/24c294c47dbf0a86a63863cfc349d4831322124e/LLWPlusPopViewDemo/Assets.xcassets/publish_4.imageset/publish_4@3x.png -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/Assets.xcassets/publish_5.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "publish_5@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "publish_5@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/Assets.xcassets/publish_5.imageset/publish_5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HawkEleven/LLWPlusPopView/24c294c47dbf0a86a63863cfc349d4831322124e/LLWPlusPopViewDemo/Assets.xcassets/publish_5.imageset/publish_5@2x.png -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/Assets.xcassets/publish_5.imageset/publish_5@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HawkEleven/LLWPlusPopView/24c294c47dbf0a86a63863cfc349d4831322124e/LLWPlusPopViewDemo/Assets.xcassets/publish_5.imageset/publish_5@3x.png -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/Assets.xcassets/publish_6.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "publish_0@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "publish_0@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/Assets.xcassets/publish_6.imageset/publish_0@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HawkEleven/LLWPlusPopView/24c294c47dbf0a86a63863cfc349d4831322124e/LLWPlusPopViewDemo/Assets.xcassets/publish_6.imageset/publish_0@2x.png -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/Assets.xcassets/publish_6.imageset/publish_0@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HawkEleven/LLWPlusPopView/24c294c47dbf0a86a63863cfc349d4831322124e/LLWPlusPopViewDemo/Assets.xcassets/publish_6.imageset/publish_0@3x.png -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/Header.h: -------------------------------------------------------------------------------- 1 | // 2 | // Header.h 3 | // LLWPlusPopViewDemo 4 | // 5 | // Created by Eleven on 2018/4/10. 6 | // Copyright © 2018年 TGF. All rights reserved. 7 | // 8 | 9 | #ifndef Header_h 10 | #define Header_h 11 | 12 | #define HexColorInt32_t(rgbValue) \ 13 | [UIColor colorWithRed:((float)((0x##rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((0x##rgbValue & 0x00FF00) >> 8))/255.0 blue:((float)(0x##rgbValue & 0x0000FF))/255.0 alpha:1] 14 | 15 | //判断是否iPhone X 16 | #define IS_iPhoneX ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125, 2436), [[UIScreen mainScreen] currentMode].size) : NO) 17 | 18 | // status bar height. 19 | #define STATUS_BAR_HEIGHT (IS_iPhoneX ? 44.f : 20.f) 20 | 21 | // Navigation bar height. 22 | #define NAVIGATION_BAR_HEIGHT 44.f 23 | 24 | // Status bar & navigation bar height. 25 | #define STATUS_AND_NAVIGATION_HEIGHT (IS_iPhoneX ? 88.f : 64.f) 26 | 27 | // Tabbar height. 28 | #define TAB_BAR_HEIGHT (IS_iPhoneX ? (49.f + 34.f) : 49.f) 29 | 30 | // Tabbar safe bottom margin. 31 | #define TAB_BAR_SAFE_BOTTOM_MARGIN (IS_iPhoneX ? 34.f : 0.f) 32 | 33 | 34 | #define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width 35 | #define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height 36 | 37 | 38 | #endif /* Header_h */ 39 | -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/LLWPlusPopView/LLWCustomButton.h: -------------------------------------------------------------------------------- 1 | // 2 | // LLWCustomButton.h 3 | // LLWPlusPopViewDemo 4 | // 5 | // Created by Eleven on 2018/4/10. 6 | // Copyright © 2018年 TGF. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface LLWCustomButton : UIButton 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/LLWPlusPopView/LLWCustomButton.m: -------------------------------------------------------------------------------- 1 | // 2 | // LLWCustomButton.m 3 | // LLWPlusPopViewDemo 4 | // 5 | // Created by Eleven on 2018/4/10. 6 | // Copyright © 2018年 TGF. All rights reserved. 7 | // 8 | 9 | #import "LLWCustomButton.h" 10 | 11 | static CGFloat const kIconHeight = 71; 12 | static CGFloat const kTitleHeight = 30; 13 | 14 | @implementation LLWCustomButton 15 | 16 | - (CGRect)imageRectForContentRect:(CGRect)contentRect { 17 | CGRect rect = CGRectMake(0, (contentRect.size.height - kIconHeight - kTitleHeight) / 2, contentRect.size.width, kIconHeight); 18 | return rect; 19 | } 20 | 21 | - (CGRect)titleRectForContentRect:(CGRect)contentRect { 22 | CGRect rect = CGRectMake(0, (contentRect.size.height - kIconHeight - kTitleHeight) / 2 + kIconHeight, contentRect.size.width, kTitleHeight); 23 | return rect; 24 | } 25 | 26 | - (void)setHighlighted:(BOOL)highlighted { 27 | 28 | } 29 | 30 | - (void)dealloc { 31 | NSLog(@"LLWCustomButton"); 32 | } 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/LLWPlusPopView/LLWPlusPopView.h: -------------------------------------------------------------------------------- 1 | // 2 | // LLWPlusPopView.h 3 | // LLWPlusPopViewDemo 4 | // 5 | // Created by Eleven on 2018/4/10. 6 | // Copyright © 2018年 TGF. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface LLWPlusPopView : UIView 12 | 13 | /** 14 | 弹出视图 15 | 16 | @param imgs 图片名字集合 17 | @param titles 文字集合 18 | @param selectBlock 点击的Item回调 19 | */ 20 | + (void)showWithImages:(NSArray *)imgs titles:(NSArray *)titles selectBlock:(void (^)(NSInteger index))selectBlock; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/LLWPlusPopView/LLWPlusPopView.m: -------------------------------------------------------------------------------- 1 | // 2 | // LLWPlusPopView.m 3 | // LLWPlusPopViewDemo 4 | // 5 | // Created by Eleven on 2018/4/10. 6 | // Copyright © 2018年 TGF. All rights reserved. 7 | // 8 | 9 | #import "LLWPlusPopView.h" 10 | #import "LLWCustomButton.h" 11 | #import "Header.h" 12 | 13 | static NSInteger const kColumnCount = 3; 14 | static NSTimeInterval kAnimationDuration = 0.3; 15 | 16 | @interface LLWPlusPopView () 17 | 18 | @property (nonatomic, copy) NSArray *imageNames; 19 | @property (nonatomic, copy) NSArray *titles; 20 | @property (nonatomic, strong) UIScrollView *scrollView; 21 | @property (nonatomic, strong) UIPageControl *pageControl; 22 | @property (nonatomic, copy) void (^selectBlock)(NSInteger index); 23 | @property (nonatomic, strong) UIImageView *shutImgView; 24 | @property (nonatomic, assign) NSInteger currentPage; 25 | 26 | @end 27 | 28 | @implementation LLWPlusPopView 29 | 30 | + (void)showWithImages:(NSArray *)imgs titles:(NSArray *)titles selectBlock:(void (^)(NSInteger))selectBlock { 31 | LLWPlusPopView *bg = [[LLWPlusPopView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT - TAB_BAR_SAFE_BOTTOM_MARGIN)]; 32 | bg.backgroundColor = [[UIColor whiteColor] colorWithAlphaComponent:0.9]; 33 | UIWindow *window = [UIApplication sharedApplication].keyWindow; 34 | [window addSubview:bg]; 35 | 36 | UIBlurEffect *effect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]; 37 | UIVisualEffectView *effectView = [[UIVisualEffectView alloc] initWithEffect:effect]; 38 | effectView.frame = bg.bounds; 39 | // effectView.alpha = 0.8; 40 | [bg addSubview:effectView]; 41 | 42 | UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:bg action:@selector(close)]; 43 | [bg addGestureRecognizer:tap]; 44 | bg.imageNames = imgs.copy; 45 | bg.titles = titles.copy; 46 | bg.selectBlock = [selectBlock copy]; 47 | 48 | [bg setupMainView]; 49 | [bg setupItem]; 50 | [bg setupBottom]; 51 | } 52 | 53 | - (void)setupMainView { 54 | UIScrollView *scrollView = [[UIScrollView alloc]initWithFrame:CGRectMake(0, self.frame.size.height * 0.37, self.frame.size.width, 300)]; 55 | scrollView.delegate = self; 56 | NSInteger pages = (self.titles.count - 1) / (kColumnCount * 2) + 1; 57 | scrollView.contentSize = CGSizeMake(scrollView.frame.size.width * pages, 0); 58 | scrollView.pagingEnabled = YES; 59 | scrollView.showsHorizontalScrollIndicator = NO; 60 | self.scrollView = scrollView; 61 | [self addSubview:scrollView]; 62 | 63 | UIPageControl *pageControl = [[UIPageControl alloc] init]; 64 | pageControl.frame = CGRectMake(self.frame.size.width / 2 - 10, self.bounds.size.height - 49 - 20 - 20, 20, 20);//指定位置大小 65 | pageControl.numberOfPages = pages; 66 | pageControl.currentPage = 0; 67 | pageControl.pageIndicatorTintColor = HexColorInt32_t(c0c0c0); 68 | pageControl.currentPageIndicatorTintColor = HexColorInt32_t(1fb497); 69 | self.pageControl = pageControl; 70 | [self addSubview:pageControl]; 71 | } 72 | 73 | - (void)setupItem { 74 | CGFloat vMargin = 15; 75 | CGFloat vSpacing = 20; 76 | CGFloat itemWidth = self.scrollView.frame.size.width / kColumnCount; 77 | CGFloat itemHeight = (265 - 2 * vMargin - vSpacing) * 0.5; 78 | NSInteger row = 0; 79 | NSInteger loc = 0; 80 | CGFloat x = 0; 81 | CGFloat y = 0; 82 | for (NSInteger i = 0; i < self.imageNames.count; i ++) { 83 | row = i / kColumnCount % 2; // % 2 为了翻页 84 | loc = i % kColumnCount ; 85 | x = itemWidth * loc + (i / (kColumnCount * 2)) * self.scrollView.frame.size.width; 86 | if (i / (kColumnCount * 2) > 0) { 87 | y = vMargin + (itemWidth + vSpacing) * row; 88 | } else { 89 | y = self.scrollView.frame.size.height + (itemHeight + vSpacing) * row; 90 | } 91 | LLWCustomButton *button = [[LLWCustomButton alloc] initWithFrame:CGRectMake(x, y, itemWidth, itemHeight)]; 92 | button.tag = 1000 + i; 93 | [button setTitle:self.titles[i] forState:UIControlStateNormal]; 94 | [button setTitleColor:HexColorInt32_t(666666) forState:UIControlStateNormal]; 95 | button.titleLabel.font = [UIFont systemFontOfSize:16]; 96 | button.titleLabel.textAlignment = NSTextAlignmentCenter; 97 | [button setImage:[UIImage imageNamed:self.imageNames[i]] forState:UIControlStateNormal]; 98 | [button.imageView setContentMode:UIViewContentModeCenter]; 99 | [button addTarget:self action:@selector(selectClick:) forControlEvents:UIControlEventTouchUpInside]; 100 | [self.scrollView addSubview:button]; 101 | 102 | if (i < kColumnCount * 2) { 103 | [UIView animateWithDuration:kAnimationDuration 104 | delay:i * 0.03 105 | usingSpringWithDamping:0.7 106 | initialSpringVelocity:0.04 107 | options:UIViewAnimationOptionAllowUserInteraction animations:^{ 108 | button.frame = CGRectMake(itemWidth * loc, vMargin + (itemHeight + vSpacing) * row, itemWidth, itemHeight); 109 | } completion:^(BOOL finished) { 110 | }]; 111 | } 112 | } 113 | } 114 | 115 | - (void)setupBottom { 116 | UIView *bottomView = [[UIView alloc] initWithFrame:CGRectMake(0, self.bounds.size.height - 49, self.bounds.size.width, 49)]; 117 | [self addSubview:bottomView]; 118 | 119 | UIView *line = [[UIView alloc] initWithFrame:CGRectMake(0, 0, bottomView.bounds.size.width, 0.5)]; 120 | line.backgroundColor = [UIColor lightGrayColor]; 121 | [bottomView addSubview:line]; 122 | 123 | UIImageView *shutImgView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 16, 16)]; 124 | self.shutImgView = shutImgView; 125 | shutImgView.image = [UIImage imageNamed:@"icon_add"]; 126 | shutImgView.center = CGPointMake(bottomView.bounds.size.width * 0.5, bottomView.bounds.size.height * 0.5); 127 | [bottomView addSubview:shutImgView]; 128 | 129 | [UIView animateWithDuration:kAnimationDuration animations:^{ 130 | self.shutImgView.transform = CGAffineTransformMakeRotation(M_PI_4); 131 | }]; 132 | } 133 | 134 | #pragma mark - event response 135 | - (void)selectClick:(LLWCustomButton *)button { 136 | [UIView animateWithDuration:0.25 animations:^{ 137 | self.alpha = 0; 138 | } completion:^(BOOL finished) { 139 | [self removeFromSuperview]; 140 | }]; 141 | if (self.selectBlock) { 142 | self.selectBlock(button.tag - 1000); 143 | } 144 | } 145 | 146 | - (void)close { 147 | [UIView animateWithDuration:kAnimationDuration animations:^{ 148 | self.shutImgView.transform = CGAffineTransformMakeRotation(0); 149 | }]; 150 | self.pageControl.hidden = YES; 151 | 152 | CGFloat dy = CGRectGetHeight(self.frame) + 70; 153 | NSInteger count = 0; 154 | if (self.imageNames.count / (kColumnCount * 2) > self.currentPage) { 155 | count = kColumnCount * 2; // 当前要具有 kColumnCount * 2个按钮; 156 | } else { 157 | count = self.imageNames.count % (kColumnCount * 2); // 最后一页 158 | } 159 | 160 | for (int i = 0; i < count; i ++) { 161 | LLWCustomButton *button = [self viewWithTag:1000 + self.currentPage * (kColumnCount * 2) + i]; 162 | CGFloat width = CGRectGetWidth(button.frame); 163 | CGFloat buttonX = button.frame.origin.x;//0.3-i*0.03 164 | [UIView animateWithDuration:kAnimationDuration 165 | delay:0.03 * count - i * 0.03 166 | usingSpringWithDamping:0.7 167 | initialSpringVelocity:0.04 168 | options:UIViewAnimationOptionCurveEaseInOut animations:^{ 169 | button.frame = CGRectMake(buttonX, dy, width, width); 170 | } completion:^(BOOL finished) { 171 | [self removeFromSuperview]; 172 | }]; 173 | } 174 | } 175 | 176 | #pragma mark - UIScrollViewDelegate 177 | - (void)scrollViewDidScroll:(UIScrollView *)scrollView { 178 | NSInteger page = scrollView.contentOffset.x / scrollView.frame.size.width; 179 | self.currentPage = page; 180 | // 设置页码 181 | self.pageControl.currentPage = page; 182 | } 183 | 184 | @end 185 | -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // LLWPlusPopViewDemo 4 | // 5 | // Created by Eleven on 2018/4/10. 6 | // Copyright © 2018年 TGF. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // LLWPlusPopViewDemo 4 | // 5 | // Created by Eleven on 2018/4/10. 6 | // Copyright © 2018年 TGF. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | #import "LLWPlusPopView.h" 11 | #import "Header.h" 12 | 13 | @interface ViewController () 14 | 15 | @end 16 | 17 | @implementation ViewController 18 | 19 | - (void)viewDidLoad { 20 | [super viewDidLoad]; 21 | // Do any additional setup after loading the view, typically from a nib. 22 | 23 | self.view.backgroundColor = HexColorInt32_t(f8f8f8); 24 | 25 | UIButton *button = [UIButton buttonWithType:UIButtonTypeContactAdd]; 26 | button.center = self.view.center; 27 | [self.view addSubview:button]; 28 | [button addTarget:self action:@selector(click) forControlEvents:UIControlEventTouchUpInside]; 29 | } 30 | 31 | 32 | - (void)click { 33 | NSMutableArray *imgs = @[].mutableCopy; 34 | for (NSInteger i = 0; i < 7; i ++) { 35 | [imgs addObject:[NSString stringWithFormat:@"publish_%zi", i]]; 36 | } 37 | NSArray *titles = @[@"文字", @"图片", @"视频", @"语言", @"投票", @"签到", @"文字",]; 38 | [LLWPlusPopView showWithImages:imgs titles:titles selectBlock:^(NSInteger index) { 39 | NSLog(@"index:%zi", index); 40 | }]; 41 | } 42 | 43 | 44 | @end 45 | -------------------------------------------------------------------------------- /LLWPlusPopViewDemo/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // LLWPlusPopViewDemo 4 | // 5 | // Created by Eleven on 2018/4/10. 6 | // Copyright © 2018年 TGF. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /LLWPlusPopViewDemoTests/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 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /LLWPlusPopViewDemoTests/LLWPlusPopViewDemoTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // LLWPlusPopViewDemoTests.m 3 | // LLWPlusPopViewDemoTests 4 | // 5 | // Created by Eleven on 2018/4/10. 6 | // Copyright © 2018年 TGF. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface LLWPlusPopViewDemoTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation LLWPlusPopViewDemoTests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | // Put setup code here. This method is called before the invocation of each test method in the class. 20 | } 21 | 22 | - (void)tearDown { 23 | // Put teardown code here. This method is called after the invocation of each test method in the class. 24 | [super tearDown]; 25 | } 26 | 27 | - (void)testExample { 28 | // This is an example of a functional test case. 29 | // Use XCTAssert and related functions to verify your tests produce the correct results. 30 | } 31 | 32 | - (void)testPerformanceExample { 33 | // This is an example of a performance test case. 34 | [self measureBlock:^{ 35 | // Put the code you want to measure the time of here. 36 | }]; 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /LLWPlusPopViewDemoUITests/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 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /LLWPlusPopViewDemoUITests/LLWPlusPopViewDemoUITests.m: -------------------------------------------------------------------------------- 1 | // 2 | // LLWPlusPopViewDemoUITests.m 3 | // LLWPlusPopViewDemoUITests 4 | // 5 | // Created by Eleven on 2018/4/10. 6 | // Copyright © 2018年 TGF. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface LLWPlusPopViewDemoUITests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation LLWPlusPopViewDemoUITests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | 22 | // In UI tests it is usually best to stop immediately when a failure occurs. 23 | self.continueAfterFailure = NO; 24 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 25 | [[[XCUIApplication alloc] init] launch]; 26 | 27 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 28 | } 29 | 30 | - (void)tearDown { 31 | // Put teardown code here. This method is called after the invocation of each test method in the class. 32 | [super tearDown]; 33 | } 34 | 35 | - (void)testExample { 36 | // Use recording to get started writing UI tests. 37 | // Use XCTAssert and related functions to verify your tests produce the correct results. 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # LLWPlusPopView 2 | 仿微博“+”号发布弹出动画视图 3 | 4 | 可多屏展示 5 | 6 | ![仿微博加号弹出动画.png](https://upload-images.jianshu.io/upload_images/1338824-9672b7f63b6f3ed4.gif?imageMogr2/auto-orient/strip) 7 | --------------------------------------------------------------------------------