├── DropDownPicker.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ │ └── Ajith.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── xcuserdata │ └── Ajith.xcuserdatad │ ├── xcdebugger │ └── Breakpoints.xcbkptlist │ └── xcschemes │ ├── DropDownPicker.xcscheme │ └── xcschememanagement.plist ├── DropDownPicker ├── AJAppDelegate.h ├── AJAppDelegate.m ├── Classes │ ├── AJViewController.h │ ├── AJViewController.m │ ├── Data │ │ ├── AJData.h │ │ └── AJData.m │ └── DropDownPicker │ │ ├── AJDropDownPicker.h │ │ └── AJDropDownPicker.m ├── Default-568h@2x.png ├── Default.png ├── Default@2x.png ├── DropDownPicker-Info.plist ├── DropDownPicker-Prefix.pch ├── Resource files │ └── Images │ │ ├── bg_blue.png │ │ ├── bg_blue@2x.png │ │ ├── drop_down_btn_background.png │ │ └── drop_down_btn_background@2x.png ├── en.lproj │ ├── InfoPlist.strings │ └── MainStoryboard.storyboard └── main.m ├── LICENSE ├── README.md └── README ├── Dropdown.png └── drop.png /DropDownPicker.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | F83426B8179D2EE8008D28E3 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F83426B7179D2EE8008D28E3 /* UIKit.framework */; }; 11 | F83426BA179D2EE8008D28E3 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F83426B9179D2EE8008D28E3 /* Foundation.framework */; }; 12 | F83426BC179D2EE8008D28E3 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F83426BB179D2EE8008D28E3 /* CoreGraphics.framework */; }; 13 | F83426C2179D2EE8008D28E3 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = F83426C0179D2EE8008D28E3 /* InfoPlist.strings */; }; 14 | F83426C4179D2EE8008D28E3 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = F83426C3179D2EE8008D28E3 /* main.m */; }; 15 | F83426C8179D2EE8008D28E3 /* AJAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = F83426C7179D2EE8008D28E3 /* AJAppDelegate.m */; }; 16 | F83426CA179D2EE8008D28E3 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = F83426C9179D2EE8008D28E3 /* Default.png */; }; 17 | F83426CC179D2EE8008D28E3 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = F83426CB179D2EE8008D28E3 /* Default@2x.png */; }; 18 | F83426CE179D2EE8008D28E3 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = F83426CD179D2EE8008D28E3 /* Default-568h@2x.png */; }; 19 | F83426D1179D2EE8008D28E3 /* MainStoryboard.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F83426CF179D2EE8008D28E3 /* MainStoryboard.storyboard */; }; 20 | F83426E1179D308D008D28E3 /* bg_blue.png in Resources */ = {isa = PBXBuildFile; fileRef = F83426DD179D308D008D28E3 /* bg_blue.png */; }; 21 | F83426E2179D308D008D28E3 /* bg_blue@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = F83426DE179D308D008D28E3 /* bg_blue@2x.png */; }; 22 | F83426E3179D308D008D28E3 /* drop_down_btn_background.png in Resources */ = {isa = PBXBuildFile; fileRef = F83426DF179D308D008D28E3 /* drop_down_btn_background.png */; }; 23 | F83426E4179D308D008D28E3 /* drop_down_btn_background@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = F83426E0179D308D008D28E3 /* drop_down_btn_background@2x.png */; }; 24 | F83426E8179D32A3008D28E3 /* AJViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = F83426E7179D32A3008D28E3 /* AJViewController.m */; }; 25 | F83426EF179D3526008D28E3 /* AJDropDownPicker.m in Sources */ = {isa = PBXBuildFile; fileRef = F83426EE179D3526008D28E3 /* AJDropDownPicker.m */; }; 26 | F83426F3179D38FE008D28E3 /* AJData.m in Sources */ = {isa = PBXBuildFile; fileRef = F83426F2179D38FE008D28E3 /* AJData.m */; }; 27 | /* End PBXBuildFile section */ 28 | 29 | /* Begin PBXFileReference section */ 30 | F83426B4179D2EE8008D28E3 /* DropDownPicker.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DropDownPicker.app; sourceTree = BUILT_PRODUCTS_DIR; }; 31 | F83426B7179D2EE8008D28E3 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 32 | F83426B9179D2EE8008D28E3 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 33 | F83426BB179D2EE8008D28E3 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 34 | F83426BF179D2EE8008D28E3 /* DropDownPicker-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "DropDownPicker-Info.plist"; sourceTree = ""; }; 35 | F83426C1179D2EE8008D28E3 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 36 | F83426C3179D2EE8008D28E3 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 37 | F83426C5179D2EE8008D28E3 /* DropDownPicker-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "DropDownPicker-Prefix.pch"; sourceTree = ""; }; 38 | F83426C6179D2EE8008D28E3 /* AJAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AJAppDelegate.h; sourceTree = ""; }; 39 | F83426C7179D2EE8008D28E3 /* AJAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AJAppDelegate.m; sourceTree = ""; }; 40 | F83426C9179D2EE8008D28E3 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = ""; }; 41 | F83426CB179D2EE8008D28E3 /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = ""; }; 42 | F83426CD179D2EE8008D28E3 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = ""; }; 43 | F83426D0179D2EE8008D28E3 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = en; path = en.lproj/MainStoryboard.storyboard; sourceTree = ""; }; 44 | F83426DD179D308D008D28E3 /* bg_blue.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = bg_blue.png; sourceTree = ""; }; 45 | F83426DE179D308D008D28E3 /* bg_blue@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "bg_blue@2x.png"; sourceTree = ""; }; 46 | F83426DF179D308D008D28E3 /* drop_down_btn_background.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = drop_down_btn_background.png; sourceTree = ""; }; 47 | F83426E0179D308D008D28E3 /* drop_down_btn_background@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "drop_down_btn_background@2x.png"; sourceTree = ""; }; 48 | F83426E6179D32A3008D28E3 /* AJViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AJViewController.h; sourceTree = ""; }; 49 | F83426E7179D32A3008D28E3 /* AJViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AJViewController.m; sourceTree = ""; }; 50 | F83426ED179D3526008D28E3 /* AJDropDownPicker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AJDropDownPicker.h; sourceTree = ""; }; 51 | F83426EE179D3526008D28E3 /* AJDropDownPicker.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AJDropDownPicker.m; sourceTree = ""; }; 52 | F83426F1179D38FE008D28E3 /* AJData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AJData.h; path = Data/AJData.h; sourceTree = ""; }; 53 | F83426F2179D38FE008D28E3 /* AJData.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AJData.m; path = Data/AJData.m; sourceTree = ""; }; 54 | /* End PBXFileReference section */ 55 | 56 | /* Begin PBXFrameworksBuildPhase section */ 57 | F83426B1179D2EE8008D28E3 /* Frameworks */ = { 58 | isa = PBXFrameworksBuildPhase; 59 | buildActionMask = 2147483647; 60 | files = ( 61 | F83426B8179D2EE8008D28E3 /* UIKit.framework in Frameworks */, 62 | F83426BA179D2EE8008D28E3 /* Foundation.framework in Frameworks */, 63 | F83426BC179D2EE8008D28E3 /* CoreGraphics.framework in Frameworks */, 64 | ); 65 | runOnlyForDeploymentPostprocessing = 0; 66 | }; 67 | /* End PBXFrameworksBuildPhase section */ 68 | 69 | /* Begin PBXGroup section */ 70 | F83426AB179D2EE8008D28E3 = { 71 | isa = PBXGroup; 72 | children = ( 73 | F83426BD179D2EE8008D28E3 /* DropDownPicker */, 74 | F83426B6179D2EE8008D28E3 /* Frameworks */, 75 | F83426B5179D2EE8008D28E3 /* Products */, 76 | ); 77 | sourceTree = ""; 78 | }; 79 | F83426B5179D2EE8008D28E3 /* Products */ = { 80 | isa = PBXGroup; 81 | children = ( 82 | F83426B4179D2EE8008D28E3 /* DropDownPicker.app */, 83 | ); 84 | name = Products; 85 | sourceTree = ""; 86 | }; 87 | F83426B6179D2EE8008D28E3 /* Frameworks */ = { 88 | isa = PBXGroup; 89 | children = ( 90 | F83426B7179D2EE8008D28E3 /* UIKit.framework */, 91 | F83426B9179D2EE8008D28E3 /* Foundation.framework */, 92 | F83426BB179D2EE8008D28E3 /* CoreGraphics.framework */, 93 | ); 94 | name = Frameworks; 95 | sourceTree = ""; 96 | }; 97 | F83426BD179D2EE8008D28E3 /* DropDownPicker */ = { 98 | isa = PBXGroup; 99 | children = ( 100 | F83426C6179D2EE8008D28E3 /* AJAppDelegate.h */, 101 | F83426C7179D2EE8008D28E3 /* AJAppDelegate.m */, 102 | F83426CF179D2EE8008D28E3 /* MainStoryboard.storyboard */, 103 | F83426E5179D32A3008D28E3 /* Classes */, 104 | F83426DB179D3048008D28E3 /* Resource files */, 105 | F83426BE179D2EE8008D28E3 /* Supporting Files */, 106 | ); 107 | path = DropDownPicker; 108 | sourceTree = ""; 109 | }; 110 | F83426BE179D2EE8008D28E3 /* Supporting Files */ = { 111 | isa = PBXGroup; 112 | children = ( 113 | F83426BF179D2EE8008D28E3 /* DropDownPicker-Info.plist */, 114 | F83426C0179D2EE8008D28E3 /* InfoPlist.strings */, 115 | F83426C3179D2EE8008D28E3 /* main.m */, 116 | F83426C5179D2EE8008D28E3 /* DropDownPicker-Prefix.pch */, 117 | F83426C9179D2EE8008D28E3 /* Default.png */, 118 | F83426CB179D2EE8008D28E3 /* Default@2x.png */, 119 | F83426CD179D2EE8008D28E3 /* Default-568h@2x.png */, 120 | ); 121 | name = "Supporting Files"; 122 | sourceTree = ""; 123 | }; 124 | F83426DB179D3048008D28E3 /* Resource files */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | F83426DC179D3048008D28E3 /* Images */, 128 | ); 129 | path = "Resource files "; 130 | sourceTree = ""; 131 | }; 132 | F83426DC179D3048008D28E3 /* Images */ = { 133 | isa = PBXGroup; 134 | children = ( 135 | F83426DD179D308D008D28E3 /* bg_blue.png */, 136 | F83426DE179D308D008D28E3 /* bg_blue@2x.png */, 137 | F83426DF179D308D008D28E3 /* drop_down_btn_background.png */, 138 | F83426E0179D308D008D28E3 /* drop_down_btn_background@2x.png */, 139 | ); 140 | path = Images; 141 | sourceTree = ""; 142 | }; 143 | F83426E5179D32A3008D28E3 /* Classes */ = { 144 | isa = PBXGroup; 145 | children = ( 146 | F83426F0179D38C8008D28E3 /* Data */, 147 | F83426E9179D330A008D28E3 /* DropDownPicker */, 148 | F83426E6179D32A3008D28E3 /* AJViewController.h */, 149 | F83426E7179D32A3008D28E3 /* AJViewController.m */, 150 | ); 151 | path = Classes; 152 | sourceTree = ""; 153 | }; 154 | F83426E9179D330A008D28E3 /* DropDownPicker */ = { 155 | isa = PBXGroup; 156 | children = ( 157 | F83426ED179D3526008D28E3 /* AJDropDownPicker.h */, 158 | F83426EE179D3526008D28E3 /* AJDropDownPicker.m */, 159 | ); 160 | path = DropDownPicker; 161 | sourceTree = ""; 162 | }; 163 | F83426F0179D38C8008D28E3 /* Data */ = { 164 | isa = PBXGroup; 165 | children = ( 166 | F83426F1179D38FE008D28E3 /* AJData.h */, 167 | F83426F2179D38FE008D28E3 /* AJData.m */, 168 | ); 169 | name = Data; 170 | sourceTree = ""; 171 | }; 172 | /* End PBXGroup section */ 173 | 174 | /* Begin PBXNativeTarget section */ 175 | F83426B3179D2EE8008D28E3 /* DropDownPicker */ = { 176 | isa = PBXNativeTarget; 177 | buildConfigurationList = F83426D7179D2EE8008D28E3 /* Build configuration list for PBXNativeTarget "DropDownPicker" */; 178 | buildPhases = ( 179 | F83426B0179D2EE8008D28E3 /* Sources */, 180 | F83426B1179D2EE8008D28E3 /* Frameworks */, 181 | F83426B2179D2EE8008D28E3 /* Resources */, 182 | ); 183 | buildRules = ( 184 | ); 185 | dependencies = ( 186 | ); 187 | name = DropDownPicker; 188 | productName = DropDownPicker; 189 | productReference = F83426B4179D2EE8008D28E3 /* DropDownPicker.app */; 190 | productType = "com.apple.product-type.application"; 191 | }; 192 | /* End PBXNativeTarget section */ 193 | 194 | /* Begin PBXProject section */ 195 | F83426AC179D2EE8008D28E3 /* Project object */ = { 196 | isa = PBXProject; 197 | attributes = { 198 | CLASSPREFIX = AJ; 199 | LastUpgradeCheck = 0460; 200 | ORGANIZATIONNAME = "Ajith R Nayak"; 201 | }; 202 | buildConfigurationList = F83426AF179D2EE8008D28E3 /* Build configuration list for PBXProject "DropDownPicker" */; 203 | compatibilityVersion = "Xcode 3.2"; 204 | developmentRegion = English; 205 | hasScannedForEncodings = 0; 206 | knownRegions = ( 207 | en, 208 | ); 209 | mainGroup = F83426AB179D2EE8008D28E3; 210 | productRefGroup = F83426B5179D2EE8008D28E3 /* Products */; 211 | projectDirPath = ""; 212 | projectRoot = ""; 213 | targets = ( 214 | F83426B3179D2EE8008D28E3 /* DropDownPicker */, 215 | ); 216 | }; 217 | /* End PBXProject section */ 218 | 219 | /* Begin PBXResourcesBuildPhase section */ 220 | F83426B2179D2EE8008D28E3 /* Resources */ = { 221 | isa = PBXResourcesBuildPhase; 222 | buildActionMask = 2147483647; 223 | files = ( 224 | F83426C2179D2EE8008D28E3 /* InfoPlist.strings in Resources */, 225 | F83426CA179D2EE8008D28E3 /* Default.png in Resources */, 226 | F83426CC179D2EE8008D28E3 /* Default@2x.png in Resources */, 227 | F83426CE179D2EE8008D28E3 /* Default-568h@2x.png in Resources */, 228 | F83426D1179D2EE8008D28E3 /* MainStoryboard.storyboard in Resources */, 229 | F83426E1179D308D008D28E3 /* bg_blue.png in Resources */, 230 | F83426E2179D308D008D28E3 /* bg_blue@2x.png in Resources */, 231 | F83426E3179D308D008D28E3 /* drop_down_btn_background.png in Resources */, 232 | F83426E4179D308D008D28E3 /* drop_down_btn_background@2x.png in Resources */, 233 | ); 234 | runOnlyForDeploymentPostprocessing = 0; 235 | }; 236 | /* End PBXResourcesBuildPhase section */ 237 | 238 | /* Begin PBXSourcesBuildPhase section */ 239 | F83426B0179D2EE8008D28E3 /* Sources */ = { 240 | isa = PBXSourcesBuildPhase; 241 | buildActionMask = 2147483647; 242 | files = ( 243 | F83426C4179D2EE8008D28E3 /* main.m in Sources */, 244 | F83426C8179D2EE8008D28E3 /* AJAppDelegate.m in Sources */, 245 | F83426E8179D32A3008D28E3 /* AJViewController.m in Sources */, 246 | F83426EF179D3526008D28E3 /* AJDropDownPicker.m in Sources */, 247 | F83426F3179D38FE008D28E3 /* AJData.m in Sources */, 248 | ); 249 | runOnlyForDeploymentPostprocessing = 0; 250 | }; 251 | /* End PBXSourcesBuildPhase section */ 252 | 253 | /* Begin PBXVariantGroup section */ 254 | F83426C0179D2EE8008D28E3 /* InfoPlist.strings */ = { 255 | isa = PBXVariantGroup; 256 | children = ( 257 | F83426C1179D2EE8008D28E3 /* en */, 258 | ); 259 | name = InfoPlist.strings; 260 | sourceTree = ""; 261 | }; 262 | F83426CF179D2EE8008D28E3 /* MainStoryboard.storyboard */ = { 263 | isa = PBXVariantGroup; 264 | children = ( 265 | F83426D0179D2EE8008D28E3 /* en */, 266 | ); 267 | name = MainStoryboard.storyboard; 268 | sourceTree = ""; 269 | }; 270 | /* End PBXVariantGroup section */ 271 | 272 | /* Begin XCBuildConfiguration section */ 273 | F83426D5179D2EE8008D28E3 /* Debug */ = { 274 | isa = XCBuildConfiguration; 275 | buildSettings = { 276 | ALWAYS_SEARCH_USER_PATHS = NO; 277 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 278 | CLANG_CXX_LIBRARY = "libc++"; 279 | CLANG_ENABLE_OBJC_ARC = YES; 280 | CLANG_WARN_CONSTANT_CONVERSION = YES; 281 | CLANG_WARN_EMPTY_BODY = YES; 282 | CLANG_WARN_ENUM_CONVERSION = YES; 283 | CLANG_WARN_INT_CONVERSION = YES; 284 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 285 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 286 | COPY_PHASE_STRIP = NO; 287 | GCC_C_LANGUAGE_STANDARD = gnu99; 288 | GCC_DYNAMIC_NO_PIC = NO; 289 | GCC_OPTIMIZATION_LEVEL = 0; 290 | GCC_PREPROCESSOR_DEFINITIONS = ( 291 | "DEBUG=1", 292 | "$(inherited)", 293 | ); 294 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 295 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 296 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 297 | GCC_WARN_UNUSED_VARIABLE = YES; 298 | IPHONEOS_DEPLOYMENT_TARGET = 6.1; 299 | ONLY_ACTIVE_ARCH = YES; 300 | SDKROOT = iphoneos; 301 | }; 302 | name = Debug; 303 | }; 304 | F83426D6179D2EE8008D28E3 /* Release */ = { 305 | isa = XCBuildConfiguration; 306 | buildSettings = { 307 | ALWAYS_SEARCH_USER_PATHS = NO; 308 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 309 | CLANG_CXX_LIBRARY = "libc++"; 310 | CLANG_ENABLE_OBJC_ARC = YES; 311 | CLANG_WARN_CONSTANT_CONVERSION = YES; 312 | CLANG_WARN_EMPTY_BODY = YES; 313 | CLANG_WARN_ENUM_CONVERSION = YES; 314 | CLANG_WARN_INT_CONVERSION = YES; 315 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 316 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 317 | COPY_PHASE_STRIP = YES; 318 | GCC_C_LANGUAGE_STANDARD = gnu99; 319 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 320 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 321 | GCC_WARN_UNUSED_VARIABLE = YES; 322 | IPHONEOS_DEPLOYMENT_TARGET = 6.1; 323 | OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; 324 | SDKROOT = iphoneos; 325 | VALIDATE_PRODUCT = YES; 326 | }; 327 | name = Release; 328 | }; 329 | F83426D8179D2EE8008D28E3 /* Debug */ = { 330 | isa = XCBuildConfiguration; 331 | buildSettings = { 332 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 333 | GCC_PREFIX_HEADER = "DropDownPicker/DropDownPicker-Prefix.pch"; 334 | INFOPLIST_FILE = "DropDownPicker/DropDownPicker-Info.plist"; 335 | PRODUCT_NAME = "$(TARGET_NAME)"; 336 | WRAPPER_EXTENSION = app; 337 | }; 338 | name = Debug; 339 | }; 340 | F83426D9179D2EE8008D28E3 /* Release */ = { 341 | isa = XCBuildConfiguration; 342 | buildSettings = { 343 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 344 | GCC_PREFIX_HEADER = "DropDownPicker/DropDownPicker-Prefix.pch"; 345 | INFOPLIST_FILE = "DropDownPicker/DropDownPicker-Info.plist"; 346 | PRODUCT_NAME = "$(TARGET_NAME)"; 347 | WRAPPER_EXTENSION = app; 348 | }; 349 | name = Release; 350 | }; 351 | /* End XCBuildConfiguration section */ 352 | 353 | /* Begin XCConfigurationList section */ 354 | F83426AF179D2EE8008D28E3 /* Build configuration list for PBXProject "DropDownPicker" */ = { 355 | isa = XCConfigurationList; 356 | buildConfigurations = ( 357 | F83426D5179D2EE8008D28E3 /* Debug */, 358 | F83426D6179D2EE8008D28E3 /* Release */, 359 | ); 360 | defaultConfigurationIsVisible = 0; 361 | defaultConfigurationName = Release; 362 | }; 363 | F83426D7179D2EE8008D28E3 /* Build configuration list for PBXNativeTarget "DropDownPicker" */ = { 364 | isa = XCConfigurationList; 365 | buildConfigurations = ( 366 | F83426D8179D2EE8008D28E3 /* Debug */, 367 | F83426D9179D2EE8008D28E3 /* Release */, 368 | ); 369 | defaultConfigurationIsVisible = 0; 370 | }; 371 | /* End XCConfigurationList section */ 372 | }; 373 | rootObject = F83426AC179D2EE8008D28E3 /* Project object */; 374 | } 375 | -------------------------------------------------------------------------------- /DropDownPicker.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /DropDownPicker.xcodeproj/project.xcworkspace/xcuserdata/Ajith.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajithrnayak/DropDownPicker/404752db73b78924c5fc39d1eb1b74aba2241c34/DropDownPicker.xcodeproj/project.xcworkspace/xcuserdata/Ajith.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /DropDownPicker.xcodeproj/xcuserdata/Ajith.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /DropDownPicker.xcodeproj/xcuserdata/Ajith.xcuserdatad/xcschemes/DropDownPicker.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 51 | 52 | 58 | 59 | 60 | 61 | 62 | 63 | 69 | 70 | 76 | 77 | 78 | 79 | 81 | 82 | 85 | 86 | 87 | -------------------------------------------------------------------------------- /DropDownPicker.xcodeproj/xcuserdata/Ajith.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | DropDownPicker.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | F83426B3179D2EE8008D28E3 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /DropDownPicker/AJAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AJAppDelegate.h 3 | // DropDownPicker 4 | // 5 | // Created by Ajith R Nayak on 22/07/13. 6 | // Copyright (c) 2013 Ajith R Nayak. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AJAppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /DropDownPicker/AJAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AJAppDelegate.m 3 | // DropDownPicker 4 | // 5 | // Created by Ajith R Nayak on 22/07/13. 6 | // Copyright (c) 2013 Ajith R Nayak. All rights reserved. 7 | // 8 | 9 | #import "AJAppDelegate.h" 10 | 11 | @implementation AJAppDelegate 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 | -------------------------------------------------------------------------------- /DropDownPicker/Classes/AJViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // AJViewController.h 3 | // DropDownPicker 4 | // 5 | // Created by Ajith R Nayak on 22/07/13. 6 | // Copyright (c) 2013 Ajith R Nayak. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AJDropDownPicker.h" 11 | 12 | @interface AJViewController : UIViewController 13 | 14 | @property (strong, nonatomic) IBOutlet UIButton *dropDownBtn; 15 | - (IBAction)didTapDropDownBtn:(id)sender; 16 | @property (strong, nonatomic) IBOutlet UITextView *urlLabel; 17 | @end 18 | -------------------------------------------------------------------------------- /DropDownPicker/Classes/AJViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // AJViewController.m 3 | // DropDownPicker 4 | // 5 | // Created by Ajith R Nayak on 22/07/13. 6 | // Copyright (c) 2013 Ajith R Nayak. All rights reserved. 7 | // 8 | 9 | #import "AJViewController.h" 10 | #import "AJData.h" 11 | 12 | 13 | @interface AJViewController () 14 | 15 | @end 16 | 17 | @implementation AJViewController 18 | 19 | - (void)viewDidLoad 20 | { 21 | [super viewDidLoad]; 22 | // Do any additional setup after loading the view, typically from a nib. 23 | } 24 | 25 | - (void)didReceiveMemoryWarning 26 | { 27 | [super didReceiveMemoryWarning]; 28 | // Dispose of any resources that can be recreated. 29 | } 30 | 31 | - (IBAction)didTapDropDownBtn:(id)sender { 32 | 33 | AJDropDownPicker *picker=[[AJDropDownPicker alloc]initWithDelegate:self dataSourceArray:[AJData optionsArray]]; 34 | [picker showFromView:sender]; 35 | } 36 | 37 | -(void)dropDownPicker:(AJDropDownPicker *)dropDownPicker didPickObject:(id)pickedObject 38 | { 39 | NSString *outputStatus= [NSString stringWithFormat:@"Find me on %@ at-",pickedObject]; 40 | 41 | [self.dropDownBtn setTitle:(NSString*)pickedObject forState:UIControlStateNormal]; 42 | 43 | if([pickedObject isEqualToString:@"Twitter"]) 44 | self.urlLabel.text = [outputStatus stringByAppendingString:[NSString stringWithFormat:@"%@",[NSURL URLWithString:@"https://twitter.com/ajithrnayak"]]]; 45 | else if ([pickedObject isEqualToString:@"Facebook"]) 46 | self.urlLabel.text = [outputStatus stringByAppendingString:[NSString stringWithFormat:@"%@",[NSURL URLWithString:@"https://www.facebook.com/ajith.r.nayak"]]]; 47 | else if ([pickedObject isEqualToString:@"Github"]) 48 | self.urlLabel.text = [outputStatus stringByAppendingString:[NSString stringWithFormat:@"%@",[NSURL URLWithString:@"https://github.com/ajithrnayak"]]]; 49 | else if ([pickedObject isEqualToString:@"Tumblr"]) 50 | self.urlLabel.text = [outputStatus stringByAppendingString:[NSString stringWithFormat:@"%@",[NSURL URLWithString:@"http://ajithrnayak.tumblr.com"]]]; 51 | else if ([pickedObject isEqualToString:@"LinkedIn"]) 52 | self.urlLabel.text = [outputStatus stringByAppendingString:[NSString stringWithFormat:@"%@",[NSURL URLWithString:@"in.linkedin.com/pub/ajith-r-nayak/b/257/294/"]]]; 53 | else if ([pickedObject isEqualToString:@"Email"]) 54 | self.urlLabel.text = [outputStatus stringByAppendingString:[NSString stringWithFormat:@"%@",[NSURL URLWithString:@"ajithrnayak@icloud.com"]]]; 55 | else if ([pickedObject isEqualToString:@"Wordpress"]) 56 | self.urlLabel.text = [outputStatus stringByAppendingString:[NSString stringWithFormat:@"%@",[NSURL URLWithString:@"http://ajithrnayak.wordpress.com"]]]; 57 | 58 | } 59 | 60 | @end 61 | -------------------------------------------------------------------------------- /DropDownPicker/Classes/Data/AJData.h: -------------------------------------------------------------------------------- 1 | // 2 | // AJData.h 3 | // DropDownPicker 4 | // 5 | // Created by Ajith R Nayak on 22/07/13. 6 | // Copyright (c) 2013 Ajith R Nayak. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AJData : NSObject 12 | 13 | +(NSArray*)optionsArray; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /DropDownPicker/Classes/Data/AJData.m: -------------------------------------------------------------------------------- 1 | // 2 | // AJData.m 3 | // DropDownPicker 4 | // 5 | // Created by Ajith R Nayak on 22/07/13. 6 | // Copyright (c) 2013 Ajith R Nayak. All rights reserved. 7 | // 8 | 9 | #import "AJData.h" 10 | 11 | @implementation AJData 12 | 13 | +(NSArray*)optionsArray 14 | { 15 | static dispatch_once_t pred; 16 | static NSArray * dataSourceArray = nil; 17 | 18 | dispatch_once(&pred, ^{ 19 | dataSourceArray = @[@"Twitter",@"Facebook",@"Tumblr",@"Github",@"LinkedIn",@"Wordpress",@"Email",]; 20 | }); 21 | return dataSourceArray; 22 | } 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /DropDownPicker/Classes/DropDownPicker/AJDropDownPicker.h: -------------------------------------------------------------------------------- 1 | // 2 | // AJDropDownPicker.h 3 | // DropDownPicker 4 | // 5 | // Created by Ajith R Nayak on 22/07/13. 6 | // Copyright (c) 2013 Ajith R Nayak. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @protocol AJDropDownPickerDelegte; 12 | 13 | @interface AJDropDownPicker : UIControl 14 | { 15 | id __weak _delegate; 16 | UIView * __weak _shownFromView; 17 | 18 | NSArray * _dataSourceArray; 19 | } 20 | 21 | @property (nonatomic, weak) id delegate; 22 | @property (nonatomic, weak) UIView * shownFromView; 23 | @property (nonatomic, strong ) NSArray * dataSourceArray; 24 | 25 | - (id)initWithDelegate:(id)delegate dataSourceArray:(NSArray *)dataSourceArray; 26 | - (void)showFromView:(UIView *)view; 27 | 28 | @end 29 | 30 | @protocol AJDropDownPickerDelegte 31 | 32 | - (void)dropDownPicker:(AJDropDownPicker *)dropDownPicker didPickObject:(id)pickedObject; 33 | 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /DropDownPicker/Classes/DropDownPicker/AJDropDownPicker.m: -------------------------------------------------------------------------------- 1 | // 2 | // AJDropDownPicker.m 3 | // DropDownPicker 4 | // 5 | // Created by Ajith R Nayak on 22/07/13. 6 | // Copyright (c) 2013 Ajith R Nayak. All rights reserved. 7 | // 8 | 9 | #import "AJDropDownPicker.h" 10 | #import 11 | 12 | #define kRowHeight 22 13 | #define kMaxVisibleRows 5 14 | 15 | #define kDefaultHeightRow 24 16 | #define kDefaultWeightRow 20 17 | #define kTransitionDuration 0.6 18 | #define backColor [UIColor colorWithRed:180.0/255.0 green:29.0/255.0 blue:30.0/255.0 alpha:1] 19 | @interface AJDropDownPickerCell : UITableViewCell 20 | 21 | @end 22 | 23 | @implementation AJDropDownPickerCell 24 | 25 | - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier 26 | { 27 | self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]; 28 | if (self) { 29 | UIView * background = [[UIView alloc] init]; 30 | background.backgroundColor =backColor; 31 | self.selectedBackgroundView = background; 32 | self.textLabel.font = [UIFont fontWithName:@"HelveticaNeue" size:15]; 33 | } 34 | return self; 35 | } 36 | 37 | - (void)layoutSubviews 38 | { 39 | [super layoutSubviews]; 40 | 41 | CGRect titleFrame = CGRectInset(self.bounds, 5, 0); 42 | self.textLabel.frame = titleFrame; 43 | } 44 | @end 45 | 46 | @interface AJDropDownPicker () 47 | { 48 | UITableView * pickerTableView; 49 | } 50 | 51 | @end 52 | 53 | 54 | @implementation AJDropDownPicker 55 | 56 | 57 | @synthesize shownFromView = _shownFromView; 58 | @synthesize delegate = _delegate; 59 | @synthesize dataSourceArray = _dataSourceArray; 60 | 61 | 62 | - (id)initWithDelegate:(id)delegate dataSourceArray:(NSArray *)dataSourceArray 63 | { 64 | self = [super initWithFrame:CGRectZero]; 65 | if (self) { 66 | pickerTableView = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStylePlain]; 67 | pickerTableView.rowHeight = kRowHeight; 68 | pickerTableView.dataSource = self; 69 | pickerTableView.delegate = self; 70 | pickerTableView.layer.borderColor = [UIColor redColor].CGColor; 71 | pickerTableView.layer.borderWidth = 1.0; 72 | 73 | pickerTableView.backgroundColor = [UIColor whiteColor]; 74 | pickerTableView.separatorColor = [UIColor redColor]; 75 | self.backgroundColor = [UIColor clearColor]; 76 | 77 | [self addSubview:pickerTableView]; 78 | [self addTarget:self action:@selector(didTappedOnBackground) forControlEvents:UIControlEventTouchUpInside]; 79 | 80 | self.dataSourceArray = dataSourceArray; 81 | self.delegate = delegate; 82 | } 83 | return self; 84 | } 85 | 86 | #pragma mark- Show/Hide - 87 | 88 | - (void)showFromView:(UIView *)view 89 | { 90 | if (!view.superview) { 91 | return; 92 | } 93 | 94 | self.shownFromView = view; 95 | 96 | NSUInteger rowCount = [_dataSourceArray count]; 97 | pickerTableView.scrollEnabled = (rowCount > kMaxVisibleRows); 98 | 99 | CGRect frame = view.superview.bounds; 100 | 101 | CGRect tableViewFrame = view.frame; 102 | tableViewFrame.origin.y = (tableViewFrame.origin.y + tableViewFrame.size.height) - 1; 103 | tableViewFrame.size.height = 0.0; 104 | pickerTableView.frame = tableViewFrame; 105 | self.frame = frame; 106 | 107 | [view.superview addSubview:self]; 108 | //[self customisePresentaionForView:view]; 109 | 110 | tableViewFrame.size.height = MIN((rowCount * kRowHeight), (kMaxVisibleRows * kRowHeight)); 111 | NSTimeInterval duration = ((MIN(rowCount, kMaxVisibleRows))/(float)kMaxVisibleRows)*kTransitionDuration; 112 | 113 | [UIView animateWithDuration:duration animations:^{pickerTableView.frame = tableViewFrame;}]; 114 | 115 | } 116 | 117 | - (void)hidePicker 118 | { 119 | CGRect tableViewFrame = pickerTableView.frame; 120 | tableViewFrame.size.height = 0.0; 121 | 122 | NSTimeInterval duration = ((MIN([_dataSourceArray count], kMaxVisibleRows))/(float)kMaxVisibleRows)*kTransitionDuration; 123 | 124 | [UIView animateWithDuration:duration 125 | animations:^{ 126 | pickerTableView.frame = tableViewFrame; 127 | } 128 | completion:^(BOOL isFinish){ 129 | if (isFinish) { 130 | [self removeFromSuperview]; 131 | } 132 | }]; 133 | 134 | } 135 | 136 | - (void)didTappedOnBackground 137 | { 138 | [self hidePicker]; 139 | } 140 | 141 | #pragma mark- TableView DataSource and Delegate - 142 | 143 | - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section 144 | { 145 | return [_dataSourceArray count]; 146 | } 147 | 148 | - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath 149 | { 150 | static NSString *CellIdentifier = @"Cell"; 151 | UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; 152 | if (cell == nil) { 153 | cell = [[AJDropDownPickerCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier]; 154 | 155 | } 156 | 157 | cell.textLabel.text = [_dataSourceArray objectAtIndex:indexPath.row]; 158 | 159 | return cell; 160 | } 161 | 162 | - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath 163 | { 164 | if ([_delegate respondsToSelector:@selector(dropDownPicker:didPickObject:)]) 165 | { 166 | [_delegate dropDownPicker:self didPickObject:[_dataSourceArray objectAtIndex:indexPath.row]]; 167 | } 168 | [self hidePicker]; 169 | } 170 | 171 | @end 172 | -------------------------------------------------------------------------------- /DropDownPicker/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajithrnayak/DropDownPicker/404752db73b78924c5fc39d1eb1b74aba2241c34/DropDownPicker/Default-568h@2x.png -------------------------------------------------------------------------------- /DropDownPicker/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajithrnayak/DropDownPicker/404752db73b78924c5fc39d1eb1b74aba2241c34/DropDownPicker/Default.png -------------------------------------------------------------------------------- /DropDownPicker/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajithrnayak/DropDownPicker/404752db73b78924c5fc39d1eb1b74aba2241c34/DropDownPicker/Default@2x.png -------------------------------------------------------------------------------- /DropDownPicker/DropDownPicker-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | com.Responder.${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 | MainStoryboard 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /DropDownPicker/DropDownPicker-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'DropDownPicker' target in the 'DropDownPicker' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_5_0 8 | #warning "This project uses features only available in iOS SDK 5.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /DropDownPicker/Resource files /Images/bg_blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajithrnayak/DropDownPicker/404752db73b78924c5fc39d1eb1b74aba2241c34/DropDownPicker/Resource files /Images/bg_blue.png -------------------------------------------------------------------------------- /DropDownPicker/Resource files /Images/bg_blue@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajithrnayak/DropDownPicker/404752db73b78924c5fc39d1eb1b74aba2241c34/DropDownPicker/Resource files /Images/bg_blue@2x.png -------------------------------------------------------------------------------- /DropDownPicker/Resource files /Images/drop_down_btn_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajithrnayak/DropDownPicker/404752db73b78924c5fc39d1eb1b74aba2241c34/DropDownPicker/Resource files /Images/drop_down_btn_background.png -------------------------------------------------------------------------------- /DropDownPicker/Resource files /Images/drop_down_btn_background@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajithrnayak/DropDownPicker/404752db73b78924c5fc39d1eb1b74aba2241c34/DropDownPicker/Resource files /Images/drop_down_btn_background@2x.png -------------------------------------------------------------------------------- /DropDownPicker/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /DropDownPicker/en.lproj/MainStoryboard.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 34 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | -------------------------------------------------------------------------------- /DropDownPicker/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // DropDownPicker 4 | // 5 | // Created by Ajith R Nayak on 22/07/13. 6 | // Copyright (c) 2013 Ajith R Nayak. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "AJAppDelegate.h" 12 | 13 | int main(int argc, char *argv[]) 14 | { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AJAppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, and 10 | distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by the copyright 13 | owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all other entities 16 | that control, are controlled by, or are under common control with that entity. 17 | For the purposes of this definition, "control" means (i) the power, direct or 18 | indirect, to cause the direction or management of such entity, whether by 19 | contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the 20 | outstanding shares, or (iii) beneficial ownership of such entity. 21 | 22 | "You" (or "Your") shall mean an individual or Legal Entity exercising 23 | permissions granted by this License. 24 | 25 | "Source" form shall mean the preferred form for making modifications, including 26 | but not limited to software source code, documentation source, and configuration 27 | files. 28 | 29 | "Object" form shall mean any form resulting from mechanical transformation or 30 | translation of a Source form, including but not limited to compiled object code, 31 | generated documentation, and conversions to other media types. 32 | 33 | "Work" shall mean the work of authorship, whether in Source or Object form, made 34 | available under the License, as indicated by a copyright notice that is included 35 | in or attached to the work (an example is provided in the Appendix below). 36 | 37 | "Derivative Works" shall mean any work, whether in Source or Object form, that 38 | is based on (or derived from) the Work and for which the editorial revisions, 39 | annotations, elaborations, or other modifications represent, as a whole, an 40 | original work of authorship. For the purposes of this License, Derivative Works 41 | shall not include works that remain separable from, or merely link (or bind by 42 | name) to the interfaces of, the Work and Derivative Works thereof. 43 | 44 | "Contribution" shall mean any work of authorship, including the original version 45 | of the Work and any modifications or additions to that Work or Derivative Works 46 | thereof, that is intentionally submitted to Licensor for inclusion in the Work 47 | by the copyright owner or by an individual or Legal Entity authorized to submit 48 | on behalf of the copyright owner. For the purposes of this definition, 49 | "submitted" means any form of electronic, verbal, or written communication sent 50 | to the Licensor or its representatives, including but not limited to 51 | communication on electronic mailing lists, source code control systems, and 52 | issue tracking systems that are managed by, or on behalf of, the Licensor for 53 | the purpose of discussing and improving the Work, but excluding communication 54 | that is conspicuously marked or otherwise designated in writing by the copyright 55 | owner as "Not a Contribution." 56 | 57 | "Contributor" shall mean Licensor and any individual or Legal Entity on behalf 58 | of whom a Contribution has been received by Licensor and subsequently 59 | incorporated within the Work. 60 | 61 | 2. Grant of Copyright License. 62 | 63 | Subject to the terms and conditions of this License, each Contributor hereby 64 | grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, 65 | irrevocable copyright license to reproduce, prepare Derivative Works of, 66 | publicly display, publicly perform, sublicense, and distribute the Work and such 67 | Derivative Works in Source or Object form. 68 | 69 | 3. Grant of Patent License. 70 | 71 | Subject to the terms and conditions of this License, each Contributor hereby 72 | grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, 73 | irrevocable (except as stated in this section) patent license to make, have 74 | made, use, offer to sell, sell, import, and otherwise transfer the Work, where 75 | such license applies only to those patent claims licensable by such Contributor 76 | that are necessarily infringed by their Contribution(s) alone or by combination 77 | of their Contribution(s) with the Work to which such Contribution(s) was 78 | submitted. If You institute patent litigation against any entity (including a 79 | cross-claim or counterclaim in a lawsuit) alleging that the Work or a 80 | Contribution incorporated within the Work constitutes direct or contributory 81 | patent infringement, then any patent licenses granted to You under this License 82 | for that Work shall terminate as of the date such litigation is filed. 83 | 84 | 4. Redistribution. 85 | 86 | You may reproduce and distribute copies of the Work or Derivative Works thereof 87 | in any medium, with or without modifications, and in Source or Object form, 88 | provided that You meet the following conditions: 89 | 90 | You must give any other recipients of the Work or Derivative Works a copy of 91 | this License; and 92 | You must cause any modified files to carry prominent notices stating that You 93 | changed the files; and 94 | You must retain, in the Source form of any Derivative Works that You distribute, 95 | all copyright, patent, trademark, and attribution notices from the Source form 96 | of the Work, excluding those notices that do not pertain to any part of the 97 | Derivative Works; and 98 | If the Work includes a "NOTICE" text file as part of its distribution, then any 99 | Derivative Works that You distribute must include a readable copy of the 100 | attribution notices contained within such NOTICE file, excluding those notices 101 | that do not pertain to any part of the Derivative Works, in at least one of the 102 | following places: within a NOTICE text file distributed as part of the 103 | Derivative Works; within the Source form or documentation, if provided along 104 | with the Derivative Works; or, within a display generated by the Derivative 105 | Works, if and wherever such third-party notices normally appear. The contents of 106 | the NOTICE file are for informational purposes only and do not modify the 107 | License. You may add Your own attribution notices within Derivative Works that 108 | You distribute, alongside or as an addendum to the NOTICE text from the Work, 109 | provided that such additional attribution notices cannot be construed as 110 | modifying the License. 111 | You may add Your own copyright statement to Your modifications and may provide 112 | additional or different license terms and conditions for use, reproduction, or 113 | distribution of Your modifications, or for any such Derivative Works as a whole, 114 | provided Your use, reproduction, and distribution of the Work otherwise complies 115 | with the conditions stated in this License. 116 | 117 | 5. Submission of Contributions. 118 | 119 | Unless You explicitly state otherwise, any Contribution intentionally submitted 120 | for inclusion in the Work by You to the Licensor shall be under the terms and 121 | conditions of this License, without any additional terms or conditions. 122 | Notwithstanding the above, nothing herein shall supersede or modify the terms of 123 | any separate license agreement you may have executed with Licensor regarding 124 | such Contributions. 125 | 126 | 6. Trademarks. 127 | 128 | This License does not grant permission to use the trade names, trademarks, 129 | service marks, or product names of the Licensor, except as required for 130 | reasonable and customary use in describing the origin of the Work and 131 | reproducing the content of the NOTICE file. 132 | 133 | 7. Disclaimer of Warranty. 134 | 135 | Unless required by applicable law or agreed to in writing, Licensor provides the 136 | Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, 137 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, 138 | including, without limitation, any warranties or conditions of TITLE, 139 | NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are 140 | solely responsible for determining the appropriateness of using or 141 | redistributing the Work and assume any risks associated with Your exercise of 142 | permissions under this License. 143 | 144 | 8. Limitation of Liability. 145 | 146 | In no event and under no legal theory, whether in tort (including negligence), 147 | contract, or otherwise, unless required by applicable law (such as deliberate 148 | and grossly negligent acts) or agreed to in writing, shall any Contributor be 149 | liable to You for damages, including any direct, indirect, special, incidental, 150 | or consequential damages of any character arising as a result of this License or 151 | out of the use or inability to use the Work (including but not limited to 152 | damages for loss of goodwill, work stoppage, computer failure or malfunction, or 153 | any and all other commercial damages or losses), even if such Contributor has 154 | been advised of the possibility of such damages. 155 | 156 | 9. Accepting Warranty or Additional Liability. 157 | 158 | While redistributing the Work or Derivative Works thereof, You may choose to 159 | offer, and charge a fee for, acceptance of support, warranty, indemnity, or 160 | other liability obligations and/or rights consistent with this License. However, 161 | in accepting such obligations, You may act only on Your own behalf and on Your 162 | sole responsibility, not on behalf of any other Contributor, and only if You 163 | agree to indemnify, defend, and hold each Contributor harmless for any liability 164 | incurred by, or claims asserted against, such Contributor by reason of your 165 | accepting any such warranty or additional liability. 166 | 167 | END OF TERMS AND CONDITIONS 168 | 169 | APPENDIX: How to apply the Apache License to your work 170 | 171 | To apply the Apache License to your work, attach the following boilerplate 172 | notice, with the fields enclosed by brackets "[]" replaced with your own 173 | identifying information. (Don't include the brackets!) The text should be 174 | enclosed in the appropriate comment syntax for the file format. We also 175 | recommend that a file or class name and description of purpose be included on 176 | the same "printed page" as the copyright notice for easier identification within 177 | third-party archives. 178 | 179 | Copyright [2013] [Ajith R Nayak] 180 | 181 | Licensed under the Apache License, Version 2.0 (the "License"); 182 | you may not use this file except in compliance with the License. 183 | You may obtain a copy of the License at 184 | 185 | http://www.apache.org/licenses/LICENSE-2.0 186 | 187 | Unless required by applicable law or agreed to in writing, software 188 | distributed under the License is distributed on an "AS IS" BASIS, 189 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 190 | See the License for the specific language governing permissions and 191 | limitations under the License. 192 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | DropDownPicker 2 | ============== 3 | 4 | A Drop down picker view for iOS. 5 | 6 | Screen shots: 7 | 8 | 9 | 10 | 11 | on tapping, 12 | 13 | 14 | 15 | 16 | Now, drop it !! 17 | -------------------------------------------------------------------------------- /README/Dropdown.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajithrnayak/DropDownPicker/404752db73b78924c5fc39d1eb1b74aba2241c34/README/Dropdown.png -------------------------------------------------------------------------------- /README/drop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajithrnayak/DropDownPicker/404752db73b78924c5fc39d1eb1b74aba2241c34/README/drop.png --------------------------------------------------------------------------------