├── DropDownMenu.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ ├── xcshareddata │ │ └── DropDownMenu.xccheckout │ └── xcuserdata │ │ ├── Dew.xcuserdatad │ │ └── UserInterfaceState.xcuserstate │ │ ├── andrewmurdoch.xcuserdatad │ │ └── UserInterfaceState.xcuserstate │ │ └── rmurdoch4.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── xcuserdata │ ├── Dew.xcuserdatad │ ├── xcdebugger │ │ └── Breakpoints_v2.xcbkptlist │ └── xcschemes │ │ ├── DropDownMenu.xcscheme │ │ └── xcschememanagement.plist │ ├── andrewmurdoch.xcuserdatad │ ├── xcdebugger │ │ └── Breakpoints_v2.xcbkptlist │ └── xcschemes │ │ ├── DropDownMenu.xcscheme │ │ └── xcschememanagement.plist │ └── rmurdoch4.xcuserdatad │ └── xcschemes │ ├── DropDownMenu.xcscheme │ └── xcschememanagement.plist ├── DropDownMenu ├── AppDelegate.h ├── AppDelegate.m ├── Base.lproj │ └── Main.storyboard ├── CollectionViewController.h ├── CollectionViewController.m ├── DropDownMenu-Info.plist ├── DropDownMenu-Prefix.pch ├── Images.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ └── LaunchImage.launchimage │ │ └── Contents.json ├── MenuDelegate.h ├── MenuTableViewController.h ├── MenuTableViewController.m ├── UIView+Helper.h ├── UIView+Helper.m ├── ViewController.h ├── ViewController.m ├── ViewController2.h ├── ViewController2.m ├── collection.png ├── en.lproj │ └── InfoPlist.strings ├── main.m ├── table.png └── triangle.png ├── DropDownMenuTests ├── DropDownMenuTests-Info.plist ├── DropDownMenuTests.m └── en.lproj │ └── InfoPlist.strings ├── README.md └── Screenshots └── demo.gif /DropDownMenu.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | D25C552318E078FC00B8D82A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D25C552218E078FC00B8D82A /* Foundation.framework */; }; 11 | D25C552518E078FC00B8D82A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D25C552418E078FC00B8D82A /* CoreGraphics.framework */; }; 12 | D25C552718E078FC00B8D82A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D25C552618E078FC00B8D82A /* UIKit.framework */; }; 13 | D25C552D18E078FC00B8D82A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = D25C552B18E078FC00B8D82A /* InfoPlist.strings */; }; 14 | D25C552F18E078FC00B8D82A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = D25C552E18E078FC00B8D82A /* main.m */; }; 15 | D25C553318E078FC00B8D82A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = D25C553218E078FC00B8D82A /* AppDelegate.m */; }; 16 | D25C553618E078FC00B8D82A /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D25C553418E078FC00B8D82A /* Main.storyboard */; }; 17 | D25C553918E078FC00B8D82A /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = D25C553818E078FC00B8D82A /* ViewController.m */; }; 18 | D25C553B18E078FC00B8D82A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D25C553A18E078FC00B8D82A /* Images.xcassets */; }; 19 | D25C554218E078FC00B8D82A /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D25C554118E078FC00B8D82A /* XCTest.framework */; }; 20 | D25C554318E078FC00B8D82A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D25C552218E078FC00B8D82A /* Foundation.framework */; }; 21 | D25C554418E078FC00B8D82A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D25C552618E078FC00B8D82A /* UIKit.framework */; }; 22 | D25C554C18E078FC00B8D82A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = D25C554A18E078FC00B8D82A /* InfoPlist.strings */; }; 23 | D25C554E18E078FC00B8D82A /* DropDownMenuTests.m in Sources */ = {isa = PBXBuildFile; fileRef = D25C554D18E078FC00B8D82A /* DropDownMenuTests.m */; }; 24 | D25C559C18E07AAC00B8D82A /* triangle.png in Resources */ = {isa = PBXBuildFile; fileRef = D25C559B18E07AAC00B8D82A /* triangle.png */; }; 25 | D25C559F18E07B1A00B8D82A /* MenuTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = D25C559E18E07B1A00B8D82A /* MenuTableViewController.m */; }; 26 | D2AAC66918E0A65300A8D205 /* ViewController2.m in Sources */ = {isa = PBXBuildFile; fileRef = D2AAC66818E0A65300A8D205 /* ViewController2.m */; }; 27 | D2AAC66C18E0A67000A8D205 /* CollectionViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = D2AAC66B18E0A67000A8D205 /* CollectionViewController.m */; }; 28 | D2D342B118E0B08A00FAA65D /* collection.png in Resources */ = {isa = PBXBuildFile; fileRef = D2D342AF18E0B08A00FAA65D /* collection.png */; }; 29 | D2D342B218E0B08A00FAA65D /* table.png in Resources */ = {isa = PBXBuildFile; fileRef = D2D342B018E0B08A00FAA65D /* table.png */; }; 30 | DB7706E61A6AC6E50086C5DA /* UIView+Helper.m in Sources */ = {isa = PBXBuildFile; fileRef = DB7706E51A6AC6E50086C5DA /* UIView+Helper.m */; }; 31 | /* End PBXBuildFile section */ 32 | 33 | /* Begin PBXContainerItemProxy section */ 34 | D25C554518E078FC00B8D82A /* PBXContainerItemProxy */ = { 35 | isa = PBXContainerItemProxy; 36 | containerPortal = D25C551718E078FC00B8D82A /* Project object */; 37 | proxyType = 1; 38 | remoteGlobalIDString = D25C551E18E078FC00B8D82A; 39 | remoteInfo = DropDownMenu; 40 | }; 41 | /* End PBXContainerItemProxy section */ 42 | 43 | /* Begin PBXFileReference section */ 44 | D25C551F18E078FC00B8D82A /* DropDownMenu.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DropDownMenu.app; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | D25C552218E078FC00B8D82A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 46 | D25C552418E078FC00B8D82A /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 47 | D25C552618E078FC00B8D82A /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 48 | D25C552A18E078FC00B8D82A /* DropDownMenu-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "DropDownMenu-Info.plist"; sourceTree = ""; }; 49 | D25C552C18E078FC00B8D82A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 50 | D25C552E18E078FC00B8D82A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 51 | D25C553018E078FC00B8D82A /* DropDownMenu-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "DropDownMenu-Prefix.pch"; sourceTree = ""; }; 52 | D25C553118E078FC00B8D82A /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 53 | D25C553218E078FC00B8D82A /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 54 | D25C553518E078FC00B8D82A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 55 | D25C553718E078FC00B8D82A /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 56 | D25C553818E078FC00B8D82A /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 57 | D25C553A18E078FC00B8D82A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 58 | D25C554018E078FC00B8D82A /* DropDownMenuTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = DropDownMenuTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 59 | D25C554118E078FC00B8D82A /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; 60 | D25C554918E078FC00B8D82A /* DropDownMenuTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "DropDownMenuTests-Info.plist"; sourceTree = ""; }; 61 | D25C554B18E078FC00B8D82A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 62 | D25C554D18E078FC00B8D82A /* DropDownMenuTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DropDownMenuTests.m; sourceTree = ""; }; 63 | D25C559B18E07AAC00B8D82A /* triangle.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = triangle.png; sourceTree = ""; }; 64 | D25C559D18E07B1A00B8D82A /* MenuTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MenuTableViewController.h; sourceTree = ""; }; 65 | D25C559E18E07B1A00B8D82A /* MenuTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MenuTableViewController.m; sourceTree = ""; }; 66 | D2AAC66718E0A65300A8D205 /* ViewController2.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ViewController2.h; sourceTree = ""; }; 67 | D2AAC66818E0A65300A8D205 /* ViewController2.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ViewController2.m; sourceTree = ""; }; 68 | D2AAC66A18E0A67000A8D205 /* CollectionViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CollectionViewController.h; sourceTree = ""; }; 69 | D2AAC66B18E0A67000A8D205 /* CollectionViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CollectionViewController.m; sourceTree = ""; }; 70 | D2AAC67018E0A76D00A8D205 /* MenuDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MenuDelegate.h; sourceTree = ""; }; 71 | D2D342AF18E0B08A00FAA65D /* collection.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = collection.png; sourceTree = ""; }; 72 | D2D342B018E0B08A00FAA65D /* table.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = table.png; sourceTree = ""; }; 73 | DB7706E41A6AC6E50086C5DA /* UIView+Helper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIView+Helper.h"; sourceTree = ""; }; 74 | DB7706E51A6AC6E50086C5DA /* UIView+Helper.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIView+Helper.m"; sourceTree = ""; }; 75 | /* End PBXFileReference section */ 76 | 77 | /* Begin PBXFrameworksBuildPhase section */ 78 | D25C551C18E078FC00B8D82A /* Frameworks */ = { 79 | isa = PBXFrameworksBuildPhase; 80 | buildActionMask = 2147483647; 81 | files = ( 82 | D25C552518E078FC00B8D82A /* CoreGraphics.framework in Frameworks */, 83 | D25C552718E078FC00B8D82A /* UIKit.framework in Frameworks */, 84 | D25C552318E078FC00B8D82A /* Foundation.framework in Frameworks */, 85 | ); 86 | runOnlyForDeploymentPostprocessing = 0; 87 | }; 88 | D25C553D18E078FC00B8D82A /* Frameworks */ = { 89 | isa = PBXFrameworksBuildPhase; 90 | buildActionMask = 2147483647; 91 | files = ( 92 | D25C554218E078FC00B8D82A /* XCTest.framework in Frameworks */, 93 | D25C554418E078FC00B8D82A /* UIKit.framework in Frameworks */, 94 | D25C554318E078FC00B8D82A /* Foundation.framework in Frameworks */, 95 | ); 96 | runOnlyForDeploymentPostprocessing = 0; 97 | }; 98 | /* End PBXFrameworksBuildPhase section */ 99 | 100 | /* Begin PBXGroup section */ 101 | D25C551618E078FC00B8D82A = { 102 | isa = PBXGroup; 103 | children = ( 104 | D25C552818E078FC00B8D82A /* DropDownMenu */, 105 | D25C554718E078FC00B8D82A /* DropDownMenuTests */, 106 | D25C552118E078FC00B8D82A /* Frameworks */, 107 | D25C552018E078FC00B8D82A /* Products */, 108 | ); 109 | sourceTree = ""; 110 | }; 111 | D25C552018E078FC00B8D82A /* Products */ = { 112 | isa = PBXGroup; 113 | children = ( 114 | D25C551F18E078FC00B8D82A /* DropDownMenu.app */, 115 | D25C554018E078FC00B8D82A /* DropDownMenuTests.xctest */, 116 | ); 117 | name = Products; 118 | sourceTree = ""; 119 | }; 120 | D25C552118E078FC00B8D82A /* Frameworks */ = { 121 | isa = PBXGroup; 122 | children = ( 123 | D25C552218E078FC00B8D82A /* Foundation.framework */, 124 | D25C552418E078FC00B8D82A /* CoreGraphics.framework */, 125 | D25C552618E078FC00B8D82A /* UIKit.framework */, 126 | D25C554118E078FC00B8D82A /* XCTest.framework */, 127 | ); 128 | name = Frameworks; 129 | sourceTree = ""; 130 | }; 131 | D25C552818E078FC00B8D82A /* DropDownMenu */ = { 132 | isa = PBXGroup; 133 | children = ( 134 | D25C553118E078FC00B8D82A /* AppDelegate.h */, 135 | D25C553218E078FC00B8D82A /* AppDelegate.m */, 136 | D25C553418E078FC00B8D82A /* Main.storyboard */, 137 | D2AAC66518E0A62A00A8D205 /* First Tab */, 138 | D2AAC66618E0A63700A8D205 /* Second Tab */, 139 | D2AAC67018E0A76D00A8D205 /* MenuDelegate.h */, 140 | DB7706E41A6AC6E50086C5DA /* UIView+Helper.h */, 141 | DB7706E51A6AC6E50086C5DA /* UIView+Helper.m */, 142 | D25C553A18E078FC00B8D82A /* Images.xcassets */, 143 | D25C559B18E07AAC00B8D82A /* triangle.png */, 144 | D2D342AF18E0B08A00FAA65D /* collection.png */, 145 | D2D342B018E0B08A00FAA65D /* table.png */, 146 | D25C552918E078FC00B8D82A /* Supporting Files */, 147 | ); 148 | path = DropDownMenu; 149 | sourceTree = ""; 150 | }; 151 | D25C552918E078FC00B8D82A /* Supporting Files */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | D25C552A18E078FC00B8D82A /* DropDownMenu-Info.plist */, 155 | D25C552B18E078FC00B8D82A /* InfoPlist.strings */, 156 | D25C552E18E078FC00B8D82A /* main.m */, 157 | D25C553018E078FC00B8D82A /* DropDownMenu-Prefix.pch */, 158 | ); 159 | name = "Supporting Files"; 160 | sourceTree = ""; 161 | }; 162 | D25C554718E078FC00B8D82A /* DropDownMenuTests */ = { 163 | isa = PBXGroup; 164 | children = ( 165 | D25C554D18E078FC00B8D82A /* DropDownMenuTests.m */, 166 | D25C554818E078FC00B8D82A /* Supporting Files */, 167 | ); 168 | path = DropDownMenuTests; 169 | sourceTree = ""; 170 | }; 171 | D25C554818E078FC00B8D82A /* Supporting Files */ = { 172 | isa = PBXGroup; 173 | children = ( 174 | D25C554918E078FC00B8D82A /* DropDownMenuTests-Info.plist */, 175 | D25C554A18E078FC00B8D82A /* InfoPlist.strings */, 176 | ); 177 | name = "Supporting Files"; 178 | sourceTree = ""; 179 | }; 180 | D2AAC66518E0A62A00A8D205 /* First Tab */ = { 181 | isa = PBXGroup; 182 | children = ( 183 | D25C553718E078FC00B8D82A /* ViewController.h */, 184 | D25C553818E078FC00B8D82A /* ViewController.m */, 185 | D25C559D18E07B1A00B8D82A /* MenuTableViewController.h */, 186 | D25C559E18E07B1A00B8D82A /* MenuTableViewController.m */, 187 | ); 188 | name = "First Tab"; 189 | sourceTree = ""; 190 | }; 191 | D2AAC66618E0A63700A8D205 /* Second Tab */ = { 192 | isa = PBXGroup; 193 | children = ( 194 | D2AAC66718E0A65300A8D205 /* ViewController2.h */, 195 | D2AAC66818E0A65300A8D205 /* ViewController2.m */, 196 | D2AAC66A18E0A67000A8D205 /* CollectionViewController.h */, 197 | D2AAC66B18E0A67000A8D205 /* CollectionViewController.m */, 198 | ); 199 | name = "Second Tab"; 200 | sourceTree = ""; 201 | }; 202 | /* End PBXGroup section */ 203 | 204 | /* Begin PBXNativeTarget section */ 205 | D25C551E18E078FC00B8D82A /* DropDownMenu */ = { 206 | isa = PBXNativeTarget; 207 | buildConfigurationList = D25C555118E078FC00B8D82A /* Build configuration list for PBXNativeTarget "DropDownMenu" */; 208 | buildPhases = ( 209 | D25C551B18E078FC00B8D82A /* Sources */, 210 | D25C551C18E078FC00B8D82A /* Frameworks */, 211 | D25C551D18E078FC00B8D82A /* Resources */, 212 | ); 213 | buildRules = ( 214 | ); 215 | dependencies = ( 216 | ); 217 | name = DropDownMenu; 218 | productName = DropDownMenu; 219 | productReference = D25C551F18E078FC00B8D82A /* DropDownMenu.app */; 220 | productType = "com.apple.product-type.application"; 221 | }; 222 | D25C553F18E078FC00B8D82A /* DropDownMenuTests */ = { 223 | isa = PBXNativeTarget; 224 | buildConfigurationList = D25C555418E078FC00B8D82A /* Build configuration list for PBXNativeTarget "DropDownMenuTests" */; 225 | buildPhases = ( 226 | D25C553C18E078FC00B8D82A /* Sources */, 227 | D25C553D18E078FC00B8D82A /* Frameworks */, 228 | D25C553E18E078FC00B8D82A /* Resources */, 229 | ); 230 | buildRules = ( 231 | ); 232 | dependencies = ( 233 | D25C554618E078FC00B8D82A /* PBXTargetDependency */, 234 | ); 235 | name = DropDownMenuTests; 236 | productName = DropDownMenuTests; 237 | productReference = D25C554018E078FC00B8D82A /* DropDownMenuTests.xctest */; 238 | productType = "com.apple.product-type.bundle.unit-test"; 239 | }; 240 | /* End PBXNativeTarget section */ 241 | 242 | /* Begin PBXProject section */ 243 | D25C551718E078FC00B8D82A /* Project object */ = { 244 | isa = PBXProject; 245 | attributes = { 246 | LastUpgradeCheck = 0510; 247 | ORGANIZATIONNAME = RAM4LLC; 248 | TargetAttributes = { 249 | D25C553F18E078FC00B8D82A = { 250 | TestTargetID = D25C551E18E078FC00B8D82A; 251 | }; 252 | }; 253 | }; 254 | buildConfigurationList = D25C551A18E078FC00B8D82A /* Build configuration list for PBXProject "DropDownMenu" */; 255 | compatibilityVersion = "Xcode 3.2"; 256 | developmentRegion = English; 257 | hasScannedForEncodings = 0; 258 | knownRegions = ( 259 | en, 260 | Base, 261 | ); 262 | mainGroup = D25C551618E078FC00B8D82A; 263 | productRefGroup = D25C552018E078FC00B8D82A /* Products */; 264 | projectDirPath = ""; 265 | projectRoot = ""; 266 | targets = ( 267 | D25C551E18E078FC00B8D82A /* DropDownMenu */, 268 | D25C553F18E078FC00B8D82A /* DropDownMenuTests */, 269 | ); 270 | }; 271 | /* End PBXProject section */ 272 | 273 | /* Begin PBXResourcesBuildPhase section */ 274 | D25C551D18E078FC00B8D82A /* Resources */ = { 275 | isa = PBXResourcesBuildPhase; 276 | buildActionMask = 2147483647; 277 | files = ( 278 | D2D342B118E0B08A00FAA65D /* collection.png in Resources */, 279 | D25C553B18E078FC00B8D82A /* Images.xcassets in Resources */, 280 | D2D342B218E0B08A00FAA65D /* table.png in Resources */, 281 | D25C559C18E07AAC00B8D82A /* triangle.png in Resources */, 282 | D25C552D18E078FC00B8D82A /* InfoPlist.strings in Resources */, 283 | D25C553618E078FC00B8D82A /* Main.storyboard in Resources */, 284 | ); 285 | runOnlyForDeploymentPostprocessing = 0; 286 | }; 287 | D25C553E18E078FC00B8D82A /* Resources */ = { 288 | isa = PBXResourcesBuildPhase; 289 | buildActionMask = 2147483647; 290 | files = ( 291 | D25C554C18E078FC00B8D82A /* InfoPlist.strings in Resources */, 292 | ); 293 | runOnlyForDeploymentPostprocessing = 0; 294 | }; 295 | /* End PBXResourcesBuildPhase section */ 296 | 297 | /* Begin PBXSourcesBuildPhase section */ 298 | D25C551B18E078FC00B8D82A /* Sources */ = { 299 | isa = PBXSourcesBuildPhase; 300 | buildActionMask = 2147483647; 301 | files = ( 302 | D25C559F18E07B1A00B8D82A /* MenuTableViewController.m in Sources */, 303 | D25C553918E078FC00B8D82A /* ViewController.m in Sources */, 304 | D2AAC66C18E0A67000A8D205 /* CollectionViewController.m in Sources */, 305 | D2AAC66918E0A65300A8D205 /* ViewController2.m in Sources */, 306 | D25C553318E078FC00B8D82A /* AppDelegate.m in Sources */, 307 | D25C552F18E078FC00B8D82A /* main.m in Sources */, 308 | DB7706E61A6AC6E50086C5DA /* UIView+Helper.m in Sources */, 309 | ); 310 | runOnlyForDeploymentPostprocessing = 0; 311 | }; 312 | D25C553C18E078FC00B8D82A /* Sources */ = { 313 | isa = PBXSourcesBuildPhase; 314 | buildActionMask = 2147483647; 315 | files = ( 316 | D25C554E18E078FC00B8D82A /* DropDownMenuTests.m in Sources */, 317 | ); 318 | runOnlyForDeploymentPostprocessing = 0; 319 | }; 320 | /* End PBXSourcesBuildPhase section */ 321 | 322 | /* Begin PBXTargetDependency section */ 323 | D25C554618E078FC00B8D82A /* PBXTargetDependency */ = { 324 | isa = PBXTargetDependency; 325 | target = D25C551E18E078FC00B8D82A /* DropDownMenu */; 326 | targetProxy = D25C554518E078FC00B8D82A /* PBXContainerItemProxy */; 327 | }; 328 | /* End PBXTargetDependency section */ 329 | 330 | /* Begin PBXVariantGroup section */ 331 | D25C552B18E078FC00B8D82A /* InfoPlist.strings */ = { 332 | isa = PBXVariantGroup; 333 | children = ( 334 | D25C552C18E078FC00B8D82A /* en */, 335 | ); 336 | name = InfoPlist.strings; 337 | sourceTree = ""; 338 | }; 339 | D25C553418E078FC00B8D82A /* Main.storyboard */ = { 340 | isa = PBXVariantGroup; 341 | children = ( 342 | D25C553518E078FC00B8D82A /* Base */, 343 | ); 344 | name = Main.storyboard; 345 | sourceTree = ""; 346 | }; 347 | D25C554A18E078FC00B8D82A /* InfoPlist.strings */ = { 348 | isa = PBXVariantGroup; 349 | children = ( 350 | D25C554B18E078FC00B8D82A /* en */, 351 | ); 352 | name = InfoPlist.strings; 353 | sourceTree = ""; 354 | }; 355 | /* End PBXVariantGroup section */ 356 | 357 | /* Begin XCBuildConfiguration section */ 358 | D25C554F18E078FC00B8D82A /* Debug */ = { 359 | isa = XCBuildConfiguration; 360 | buildSettings = { 361 | ALWAYS_SEARCH_USER_PATHS = NO; 362 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 363 | CLANG_CXX_LIBRARY = "libc++"; 364 | CLANG_ENABLE_MODULES = YES; 365 | CLANG_ENABLE_OBJC_ARC = YES; 366 | CLANG_WARN_BOOL_CONVERSION = YES; 367 | CLANG_WARN_CONSTANT_CONVERSION = YES; 368 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 369 | CLANG_WARN_EMPTY_BODY = YES; 370 | CLANG_WARN_ENUM_CONVERSION = YES; 371 | CLANG_WARN_INT_CONVERSION = YES; 372 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 373 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 374 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 375 | COPY_PHASE_STRIP = NO; 376 | GCC_C_LANGUAGE_STANDARD = gnu99; 377 | GCC_DYNAMIC_NO_PIC = NO; 378 | GCC_OPTIMIZATION_LEVEL = 0; 379 | GCC_PREPROCESSOR_DEFINITIONS = ( 380 | "DEBUG=1", 381 | "$(inherited)", 382 | ); 383 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 384 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 385 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 386 | GCC_WARN_UNDECLARED_SELECTOR = YES; 387 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 388 | GCC_WARN_UNUSED_FUNCTION = YES; 389 | GCC_WARN_UNUSED_VARIABLE = YES; 390 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 391 | ONLY_ACTIVE_ARCH = YES; 392 | SDKROOT = iphoneos; 393 | }; 394 | name = Debug; 395 | }; 396 | D25C555018E078FC00B8D82A /* Release */ = { 397 | isa = XCBuildConfiguration; 398 | buildSettings = { 399 | ALWAYS_SEARCH_USER_PATHS = NO; 400 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 401 | CLANG_CXX_LIBRARY = "libc++"; 402 | CLANG_ENABLE_MODULES = YES; 403 | CLANG_ENABLE_OBJC_ARC = YES; 404 | CLANG_WARN_BOOL_CONVERSION = YES; 405 | CLANG_WARN_CONSTANT_CONVERSION = YES; 406 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 407 | CLANG_WARN_EMPTY_BODY = YES; 408 | CLANG_WARN_ENUM_CONVERSION = YES; 409 | CLANG_WARN_INT_CONVERSION = YES; 410 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 411 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 412 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 413 | COPY_PHASE_STRIP = YES; 414 | ENABLE_NS_ASSERTIONS = NO; 415 | GCC_C_LANGUAGE_STANDARD = gnu99; 416 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 417 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 418 | GCC_WARN_UNDECLARED_SELECTOR = YES; 419 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 420 | GCC_WARN_UNUSED_FUNCTION = YES; 421 | GCC_WARN_UNUSED_VARIABLE = YES; 422 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 423 | SDKROOT = iphoneos; 424 | VALIDATE_PRODUCT = YES; 425 | }; 426 | name = Release; 427 | }; 428 | D25C555218E078FC00B8D82A /* Debug */ = { 429 | isa = XCBuildConfiguration; 430 | buildSettings = { 431 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 432 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 433 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 434 | GCC_PREFIX_HEADER = "DropDownMenu/DropDownMenu-Prefix.pch"; 435 | INFOPLIST_FILE = "DropDownMenu/DropDownMenu-Info.plist"; 436 | PRODUCT_NAME = "$(TARGET_NAME)"; 437 | WRAPPER_EXTENSION = app; 438 | }; 439 | name = Debug; 440 | }; 441 | D25C555318E078FC00B8D82A /* Release */ = { 442 | isa = XCBuildConfiguration; 443 | buildSettings = { 444 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 445 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 446 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 447 | GCC_PREFIX_HEADER = "DropDownMenu/DropDownMenu-Prefix.pch"; 448 | INFOPLIST_FILE = "DropDownMenu/DropDownMenu-Info.plist"; 449 | PRODUCT_NAME = "$(TARGET_NAME)"; 450 | WRAPPER_EXTENSION = app; 451 | }; 452 | name = Release; 453 | }; 454 | D25C555518E078FC00B8D82A /* Debug */ = { 455 | isa = XCBuildConfiguration; 456 | buildSettings = { 457 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/DropDownMenu.app/DropDownMenu"; 458 | FRAMEWORK_SEARCH_PATHS = ( 459 | "$(SDKROOT)/Developer/Library/Frameworks", 460 | "$(inherited)", 461 | "$(DEVELOPER_FRAMEWORKS_DIR)", 462 | ); 463 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 464 | GCC_PREFIX_HEADER = "DropDownMenu/DropDownMenu-Prefix.pch"; 465 | GCC_PREPROCESSOR_DEFINITIONS = ( 466 | "DEBUG=1", 467 | "$(inherited)", 468 | ); 469 | INFOPLIST_FILE = "DropDownMenuTests/DropDownMenuTests-Info.plist"; 470 | PRODUCT_NAME = "$(TARGET_NAME)"; 471 | TEST_HOST = "$(BUNDLE_LOADER)"; 472 | WRAPPER_EXTENSION = xctest; 473 | }; 474 | name = Debug; 475 | }; 476 | D25C555618E078FC00B8D82A /* Release */ = { 477 | isa = XCBuildConfiguration; 478 | buildSettings = { 479 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/DropDownMenu.app/DropDownMenu"; 480 | FRAMEWORK_SEARCH_PATHS = ( 481 | "$(SDKROOT)/Developer/Library/Frameworks", 482 | "$(inherited)", 483 | "$(DEVELOPER_FRAMEWORKS_DIR)", 484 | ); 485 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 486 | GCC_PREFIX_HEADER = "DropDownMenu/DropDownMenu-Prefix.pch"; 487 | INFOPLIST_FILE = "DropDownMenuTests/DropDownMenuTests-Info.plist"; 488 | PRODUCT_NAME = "$(TARGET_NAME)"; 489 | TEST_HOST = "$(BUNDLE_LOADER)"; 490 | WRAPPER_EXTENSION = xctest; 491 | }; 492 | name = Release; 493 | }; 494 | /* End XCBuildConfiguration section */ 495 | 496 | /* Begin XCConfigurationList section */ 497 | D25C551A18E078FC00B8D82A /* Build configuration list for PBXProject "DropDownMenu" */ = { 498 | isa = XCConfigurationList; 499 | buildConfigurations = ( 500 | D25C554F18E078FC00B8D82A /* Debug */, 501 | D25C555018E078FC00B8D82A /* Release */, 502 | ); 503 | defaultConfigurationIsVisible = 0; 504 | defaultConfigurationName = Release; 505 | }; 506 | D25C555118E078FC00B8D82A /* Build configuration list for PBXNativeTarget "DropDownMenu" */ = { 507 | isa = XCConfigurationList; 508 | buildConfigurations = ( 509 | D25C555218E078FC00B8D82A /* Debug */, 510 | D25C555318E078FC00B8D82A /* Release */, 511 | ); 512 | defaultConfigurationIsVisible = 0; 513 | defaultConfigurationName = Release; 514 | }; 515 | D25C555418E078FC00B8D82A /* Build configuration list for PBXNativeTarget "DropDownMenuTests" */ = { 516 | isa = XCConfigurationList; 517 | buildConfigurations = ( 518 | D25C555518E078FC00B8D82A /* Debug */, 519 | D25C555618E078FC00B8D82A /* Release */, 520 | ); 521 | defaultConfigurationIsVisible = 0; 522 | defaultConfigurationName = Release; 523 | }; 524 | /* End XCConfigurationList section */ 525 | }; 526 | rootObject = D25C551718E078FC00B8D82A /* Project object */; 527 | } 528 | -------------------------------------------------------------------------------- /DropDownMenu.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /DropDownMenu.xcodeproj/project.xcworkspace/xcshareddata/DropDownMenu.xccheckout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDESourceControlProjectFavoriteDictionaryKey 6 | 7 | IDESourceControlProjectIdentifier 8 | 27151BFE-1082-4629-A124-FA4F12702C92 9 | IDESourceControlProjectName 10 | DropDownMenu 11 | IDESourceControlProjectOriginsDictionary 12 | 13 | 70E5F69607890BED5E4DD7AC377275599AE41ED9 14 | https://github.com/rmurdoch/DropDownMenu.git 15 | 16 | IDESourceControlProjectPath 17 | DropDownMenu.xcodeproj 18 | IDESourceControlProjectRelativeInstallPathDictionary 19 | 20 | 70E5F69607890BED5E4DD7AC377275599AE41ED9 21 | ../.. 22 | 23 | IDESourceControlProjectURL 24 | https://github.com/rmurdoch/DropDownMenu.git 25 | IDESourceControlProjectVersion 26 | 111 27 | IDESourceControlProjectWCCIdentifier 28 | 70E5F69607890BED5E4DD7AC377275599AE41ED9 29 | IDESourceControlProjectWCConfigurations 30 | 31 | 32 | IDESourceControlRepositoryExtensionIdentifierKey 33 | public.vcs.git 34 | IDESourceControlWCCIdentifierKey 35 | 70E5F69607890BED5E4DD7AC377275599AE41ED9 36 | IDESourceControlWCCName 37 | DropDownMenu 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /DropDownMenu.xcodeproj/project.xcworkspace/xcuserdata/Dew.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmurdoch/DropDownMenu/f8888decbc0c92bdc582a9dcab08f9f87a3eaa95/DropDownMenu.xcodeproj/project.xcworkspace/xcuserdata/Dew.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /DropDownMenu.xcodeproj/project.xcworkspace/xcuserdata/andrewmurdoch.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmurdoch/DropDownMenu/f8888decbc0c92bdc582a9dcab08f9f87a3eaa95/DropDownMenu.xcodeproj/project.xcworkspace/xcuserdata/andrewmurdoch.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /DropDownMenu.xcodeproj/project.xcworkspace/xcuserdata/rmurdoch4.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmurdoch/DropDownMenu/f8888decbc0c92bdc582a9dcab08f9f87a3eaa95/DropDownMenu.xcodeproj/project.xcworkspace/xcuserdata/rmurdoch4.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /DropDownMenu.xcodeproj/xcuserdata/Dew.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 8 | 14 | 15 | 16 | 18 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /DropDownMenu.xcodeproj/xcuserdata/Dew.xcuserdatad/xcschemes/DropDownMenu.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 75 | 76 | 82 | 83 | 84 | 85 | 86 | 87 | 93 | 94 | 100 | 101 | 102 | 103 | 105 | 106 | 109 | 110 | 111 | -------------------------------------------------------------------------------- /DropDownMenu.xcodeproj/xcuserdata/Dew.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | DropDownMenu.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | D25C551E18E078FC00B8D82A 16 | 17 | primary 18 | 19 | 20 | D25C553F18E078FC00B8D82A 21 | 22 | primary 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /DropDownMenu.xcodeproj/xcuserdata/andrewmurdoch.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /DropDownMenu.xcodeproj/xcuserdata/andrewmurdoch.xcuserdatad/xcschemes/DropDownMenu.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 61 | 62 | 68 | 69 | 70 | 71 | 72 | 73 | 79 | 80 | 86 | 87 | 88 | 89 | 91 | 92 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /DropDownMenu.xcodeproj/xcuserdata/andrewmurdoch.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | DropDownMenu.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | D25C551E18E078FC00B8D82A 16 | 17 | primary 18 | 19 | 20 | D25C553F18E078FC00B8D82A 21 | 22 | primary 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /DropDownMenu.xcodeproj/xcuserdata/rmurdoch4.xcuserdatad/xcschemes/DropDownMenu.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 61 | 62 | 68 | 69 | 70 | 71 | 72 | 73 | 79 | 80 | 86 | 87 | 88 | 89 | 91 | 92 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /DropDownMenu.xcodeproj/xcuserdata/rmurdoch4.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | DropDownMenu.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | D25C551E18E078FC00B8D82A 16 | 17 | primary 18 | 19 | 20 | D25C553F18E078FC00B8D82A 21 | 22 | primary 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /DropDownMenu/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // DropDownMenu 4 | // 5 | // Created by Andrew Murdoch on 3/24/14. 6 | // Copyright (c) 2014 RAM4LLC. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /DropDownMenu/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // DropDownMenu 4 | // 5 | // Created by Andrew Murdoch on 3/24/14. 6 | // Copyright (c) 2014 RAM4LLC. 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 | -------------------------------------------------------------------------------- /DropDownMenu/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 23 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 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 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 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 | -------------------------------------------------------------------------------- /DropDownMenu/CollectionViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CollectionViewController.h 3 | // DropDownMenu 4 | // 5 | // Created by Andrew Murdoch on 3/24/14. 6 | // Copyright (c) 2014 RAM4LLC. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "MenuDelegate.h" 11 | 12 | @interface CollectionViewController : UICollectionViewController 13 | 14 | @property (nonatomic, weak) id menuDelegate; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /DropDownMenu/CollectionViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // CollectionViewController.m 3 | // DropDownMenu 4 | // 5 | // Created by Andrew Murdoch on 3/24/14. 6 | // Copyright (c) 2014 RAM4LLC. All rights reserved. 7 | // 8 | 9 | #import "CollectionViewController.h" 10 | 11 | @implementation CollectionViewController 12 | 13 | - (void)viewDidLoad 14 | { 15 | [super viewDidLoad]; 16 | } 17 | 18 | - (void)didReceiveMemoryWarning 19 | { 20 | [super didReceiveMemoryWarning]; 21 | } 22 | 23 | - (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section 24 | { 25 | return 15; 26 | } 27 | 28 | - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath 29 | { 30 | UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"Cell" forIndexPath:indexPath]; 31 | 32 | UILabel *label = (UILabel *)[cell viewWithTag:100]; 33 | label.text = [NSString stringWithFormat:@"Cell: %li", (long)indexPath.row]; 34 | 35 | return cell; 36 | } 37 | 38 | - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath 39 | { 40 | UICollectionViewCell *cell = [collectionView cellForItemAtIndexPath:indexPath]; 41 | 42 | UILabel *label = (UILabel *)[cell viewWithTag:100]; 43 | [self.menuDelegate didSelectMenuItem:label.text]; 44 | } 45 | 46 | 47 | @end 48 | -------------------------------------------------------------------------------- /DropDownMenu/DropDownMenu-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | RAM4LLC.${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 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /DropDownMenu/DropDownMenu-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 | -------------------------------------------------------------------------------- /DropDownMenu/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 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /DropDownMenu/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 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /DropDownMenu/MenuDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // MenuDelegate.h 3 | // DropDownMenu 4 | // 5 | // Created by Andrew Murdoch on 3/24/14. 6 | // Copyright (c) 2014 RAM4LLC. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @protocol MenuDelegate 12 | 13 | - (void)didSelectMenuItem:(NSString *)string; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /DropDownMenu/MenuTableViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // MenuTableViewController.h 3 | // DropDownMenu 4 | // 5 | // Created by Andrew Murdoch on 3/24/14. 6 | // Copyright (c) 2014 RAM4LLC. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "MenuDelegate.h" 11 | 12 | @interface MenuTableViewController : UITableViewController 13 | 14 | @property (nonatomic, weak) id menuDelegate; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /DropDownMenu/MenuTableViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // MenuTableViewController.m 3 | // DropDownMenu 4 | // 5 | // Created by Andrew Murdoch on 3/24/14. 6 | // Copyright (c) 2014 RAM4LLC. All rights reserved. 7 | // 8 | 9 | #import "MenuTableViewController.h" 10 | 11 | @interface MenuTableViewController () 12 | 13 | @end 14 | 15 | @implementation MenuTableViewController 16 | 17 | - (id)initWithStyle:(UITableViewStyle)style 18 | { 19 | self = [super initWithStyle:style]; 20 | if (self) { 21 | // Custom initialization 22 | } 23 | return self; 24 | } 25 | 26 | - (void)viewDidLoad 27 | { 28 | [super viewDidLoad]; 29 | } 30 | 31 | - (void)didReceiveMemoryWarning 32 | { 33 | [super didReceiveMemoryWarning]; 34 | } 35 | 36 | #pragma mark - Table view data source 37 | 38 | - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView 39 | { 40 | return 1; 41 | } 42 | 43 | - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section 44 | { 45 | return 35; 46 | } 47 | 48 | 49 | - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath 50 | { 51 | UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Cell" forIndexPath:indexPath]; 52 | cell.textLabel.text = [NSString stringWithFormat:@"Cell: %i", indexPath.row]; 53 | cell.textLabel.textColor = [UIColor whiteColor]; 54 | 55 | return cell; 56 | } 57 | 58 | - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath 59 | { 60 | UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath]; 61 | [self.menuDelegate didSelectMenuItem:cell.textLabel.text]; 62 | } 63 | 64 | @end 65 | -------------------------------------------------------------------------------- /DropDownMenu/UIView+Helper.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIView+Helper.h 3 | // DropDownMenu 4 | // 5 | // Created by Andrew Murdoch on 1/17/15. 6 | // Copyright (c) 2015 RAM4LLC. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface UIView (Helper) 12 | 13 | - (void)addBlurBackground:(UIBlurEffectStyle)style; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /DropDownMenu/UIView+Helper.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIView+Helper.m 3 | // DropDownMenu 4 | // 5 | // Created by Andrew Murdoch on 1/17/15. 6 | // Copyright (c) 2015 RAM4LLC. All rights reserved. 7 | // 8 | 9 | #import "UIView+Helper.h" 10 | 11 | @implementation UIView (Helper) 12 | 13 | - (void)addBlurBackground:(UIBlurEffectStyle)style 14 | { 15 | if([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0) 16 | { 17 | UIVisualEffect *blurEffect; 18 | blurEffect = [UIBlurEffect effectWithStyle:style]; 19 | 20 | UIVisualEffectView *visualEffectView; 21 | visualEffectView = [[UIVisualEffectView alloc] initWithEffect:blurEffect]; 22 | 23 | visualEffectView.frame = self.bounds; 24 | visualEffectView.autoresizingMask = UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin | UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; 25 | 26 | [self addSubview:visualEffectView]; 27 | [self sendSubviewToBack:visualEffectView]; 28 | // [self insertSubview:visualEffectView atIndex:0]; 29 | 30 | self.backgroundColor = [UIColor clearColor]; 31 | } 32 | else 33 | { 34 | UIToolbar *fakeToolbar = [[UIToolbar alloc] initWithFrame:self.bounds]; 35 | fakeToolbar.barStyle = UIBarStyleBlackTranslucent; 36 | [self insertSubview:fakeToolbar atIndex:0]; 37 | } 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /DropDownMenu/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // DropDownMenu 4 | // 5 | // Created by Andrew Murdoch on 3/24/14. 6 | // Copyright (c) 2014 RAM4LLC. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "MenuTableViewController.h" 11 | 12 | @interface ViewController : UIViewController 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /DropDownMenu/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // DropDownMenu 4 | // 5 | // Created by Andrew Murdoch on 3/24/14. 6 | // Copyright (c) 2014 RAM4LLC. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | #import "UIView+Helper.h" 11 | 12 | @interface ViewController () 13 | 14 | @end 15 | 16 | @implementation ViewController 17 | { 18 | IBOutlet UIView *containerView; 19 | IBOutlet UIImageView *menuImage; 20 | IBOutlet UILabel *label; 21 | BOOL menuShowing; 22 | } 23 | 24 | - (void)viewDidLoad 25 | { 26 | [super viewDidLoad]; 27 | for (UIViewController *controller in self.childViewControllers) 28 | { 29 | if ([controller isKindOfClass:[MenuTableViewController class]]) 30 | { 31 | ((MenuTableViewController *)controller).menuDelegate = self; 32 | break; 33 | } 34 | } 35 | 36 | [containerView addBlurBackground:UIBlurEffectStyleDark]; 37 | } 38 | 39 | 40 | - (void)didReceiveMemoryWarning 41 | { 42 | [super didReceiveMemoryWarning]; 43 | } 44 | 45 | // Action taken to show menu 46 | - (IBAction)moreSelected:(id)sender 47 | { 48 | if (menuShowing) 49 | { 50 | [UIView animateWithDuration:0.3 animations:^ 51 | { 52 | CGRect frame = containerView.frame; 53 | frame.origin.y = -frame.size.height; 54 | [containerView setFrame:frame]; 55 | 56 | menuImage.transform = CGAffineTransformMakeRotation(M_PI*2); 57 | }completion:^(BOOL finished) 58 | { 59 | containerView.hidden = YES; 60 | menuShowing = NO; 61 | }]; 62 | } 63 | 64 | else 65 | { 66 | containerView.hidden = NO; 67 | 68 | [UIView animateWithDuration:0.3 animations:^ 69 | { 70 | CGRect frame = containerView.frame; 71 | frame.origin.y = 64; 72 | [containerView setFrame:frame]; 73 | 74 | menuImage.transform = CGAffineTransformMakeRotation(-3.141593); 75 | } completion:^(BOOL finished) 76 | { 77 | menuShowing = YES; 78 | }]; 79 | } 80 | } 81 | 82 | //Deleagte action when a row is selected 83 | - (void)didSelectMenuItem:(NSString *)string 84 | { 85 | [label setText:string]; 86 | [self moreSelected:nil]; 87 | } 88 | 89 | - (void)viewWillDisappear:(BOOL)animated 90 | { 91 | [super viewWillDisappear:animated]; 92 | 93 | if (menuShowing) 94 | [self moreSelected:nil]; 95 | } 96 | 97 | 98 | @end 99 | -------------------------------------------------------------------------------- /DropDownMenu/ViewController2.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController2.h 3 | // DropDownMenu 4 | // 5 | // Created by Andrew Murdoch on 3/24/14. 6 | // Copyright (c) 2014 RAM4LLC. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "MenuDelegate.h" 11 | 12 | @interface ViewController2 : UIViewController 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /DropDownMenu/ViewController2.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController2.m 3 | // DropDownMenu 4 | // 5 | // Created by Andrew Murdoch on 3/24/14. 6 | // Copyright (c) 2014 RAM4LLC. All rights reserved. 7 | // 8 | 9 | #import "ViewController2.h" 10 | #import "CollectionViewController.h" 11 | 12 | @implementation ViewController2 13 | { 14 | IBOutlet UIView *containerView; 15 | IBOutlet UIImageView *menuImage; 16 | IBOutlet UILabel *label; 17 | BOOL menuShowing; 18 | } 19 | 20 | - (void)viewDidLoad 21 | { 22 | [super viewDidLoad]; 23 | 24 | for (UIViewController *controller in self.childViewControllers) 25 | { 26 | if ([controller isKindOfClass:[CollectionViewController class]]) 27 | { 28 | ((CollectionViewController *)controller).menuDelegate = self; 29 | break; 30 | } 31 | } 32 | 33 | [self setBlurredView]; 34 | } 35 | 36 | - (void)setBlurredView 37 | { 38 | UIToolbar *fakeToolbar = [[UIToolbar alloc] initWithFrame:CGRectMake(0, 0, containerView.frame.size.width, containerView.frame.size.height)]; 39 | fakeToolbar.barStyle = UIBarStyleDefault; 40 | [containerView insertSubview:fakeToolbar atIndex:0]; 41 | } 42 | 43 | - (void)didReceiveMemoryWarning 44 | { 45 | [super didReceiveMemoryWarning]; 46 | } 47 | 48 | // Action taken to show menu 49 | - (IBAction)moreSelected:(id)sender 50 | { 51 | if (menuShowing) 52 | { 53 | [UIView animateWithDuration:0.3 animations:^ 54 | { 55 | CGRect frame = containerView.frame; 56 | frame.origin.y = -frame.size.height; 57 | [containerView setFrame:frame]; 58 | 59 | menuImage.transform = CGAffineTransformMakeRotation(M_PI*2); 60 | }completion:^(BOOL finished) 61 | { 62 | containerView.hidden = YES; 63 | menuShowing = NO; 64 | }]; 65 | } 66 | 67 | else 68 | { 69 | containerView.hidden = NO; 70 | 71 | [UIView animateWithDuration:0.3 animations:^ 72 | { 73 | CGRect frame = containerView.frame; 74 | frame.origin.y = 64; 75 | [containerView setFrame:frame]; 76 | 77 | menuImage.transform = CGAffineTransformMakeRotation(-3.141593); 78 | } completion:^(BOOL finished) 79 | { 80 | menuShowing = YES; 81 | }]; 82 | } 83 | } 84 | 85 | //Deleagte action when a row is selected 86 | - (void)didSelectMenuItem:(NSString *)string 87 | { 88 | [label setText:string]; 89 | [self moreSelected:nil]; 90 | } 91 | 92 | - (void)viewWillDisappear:(BOOL)animated 93 | { 94 | [super viewWillDisappear:animated]; 95 | 96 | if (menuShowing) 97 | [self moreSelected:nil]; 98 | } 99 | 100 | 101 | @end 102 | -------------------------------------------------------------------------------- /DropDownMenu/collection.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmurdoch/DropDownMenu/f8888decbc0c92bdc582a9dcab08f9f87a3eaa95/DropDownMenu/collection.png -------------------------------------------------------------------------------- /DropDownMenu/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /DropDownMenu/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // DropDownMenu 4 | // 5 | // Created by Andrew Murdoch on 3/24/14. 6 | // Copyright (c) 2014 RAM4LLC. 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 | -------------------------------------------------------------------------------- /DropDownMenu/table.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmurdoch/DropDownMenu/f8888decbc0c92bdc582a9dcab08f9f87a3eaa95/DropDownMenu/table.png -------------------------------------------------------------------------------- /DropDownMenu/triangle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmurdoch/DropDownMenu/f8888decbc0c92bdc582a9dcab08f9f87a3eaa95/DropDownMenu/triangle.png -------------------------------------------------------------------------------- /DropDownMenuTests/DropDownMenuTests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | RAM4LLC.${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 | -------------------------------------------------------------------------------- /DropDownMenuTests/DropDownMenuTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropDownMenuTests.m 3 | // DropDownMenuTests 4 | // 5 | // Created by Andrew Murdoch on 3/24/14. 6 | // Copyright (c) 2014 RAM4LLC. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface DropDownMenuTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation DropDownMenuTests 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 | -------------------------------------------------------------------------------- /DropDownMenuTests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # DropDownMenu 2 | 3 | Drop down menu of a UITableView and a UICollectionView to display a menu for any view. 4 | 5 | ![demo](Screenshots/demo.gif) -------------------------------------------------------------------------------- /Screenshots/demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmurdoch/DropDownMenu/f8888decbc0c92bdc582a9dcab08f9f87a3eaa95/Screenshots/demo.gif --------------------------------------------------------------------------------