├── .DS_Store ├── KDropDownMultipleSelection.podspec ├── KDropDownMultipleSelection.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ ├── xcshareddata │ │ └── KDropDownMultipleSelection.xccheckout │ └── xcuserdata │ │ └── macmini17.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── xcuserdata │ └── macmini17.xcuserdatad │ ├── xcdebugger │ └── Breakpoints_v2.xcbkptlist │ └── xcschemes │ ├── KDropDownMultipleSelection.xcscheme │ └── xcschememanagement.plist ├── KDropDownMultipleSelection ├── .DS_Store ├── AppDelegate.h ├── AppDelegate.m ├── Base.lproj │ └── Main.storyboard ├── Images.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ └── LaunchImage.launchimage │ │ └── Contents.json ├── KDropDownMultipleSelection-Info.plist ├── KDropDownMultipleSelection-Prefix.pch ├── ViewController.h ├── ViewController.m ├── en.lproj │ └── InfoPlist.strings └── main.m ├── KDropDownMultipleSelectionTests ├── KDropDownMultipleSelectionTests-Info.plist ├── KDropDownMultipleSelectionTests.m └── en.lproj │ └── InfoPlist.strings ├── LICENCE.txt ├── README.md └── kDropDown ├── DropDownListView.h ├── DropDownListView.m ├── DropDownViewCell.h ├── DropDownViewCell.m ├── check_mark@2x.png ├── done@2x.png └── drop_down@2x.png /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KiranPatelSpaceo/KDropDownMultipleSelection/ce901fea0e544e2a1d3fb7f9b228a2e5bdfb64c4/.DS_Store -------------------------------------------------------------------------------- /KDropDownMultipleSelection.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | 3 | s.name = "KDropDownMultipleSelection" 4 | s.version = "1.0.1" 5 | s.summary = "Single or multiple selection in dropdownlist" 6 | 7 | 8 | s.homepage = "https://github.com/kiran5232/KDropDownMultipleSelection" 9 | 10 | 11 | s.license = { :type =>"MIT", :file => "LICENCE" } 12 | 13 | s.author = { "kiran5232" => "kiran.spaceo@gmail.com" } 14 | 15 | s.source = { :git => "https://github.com/kiran5232/KDropDownMultipleSelection.git", :tag => "1.0.1" } 16 | 17 | s.source_files = "kDropDown/*.{h,m}" 18 | s.resources = "kDropDown/*.png" 19 | s.platform = "ios" 20 | s.platform = "ios", "6.0" 21 | s.framework = "UIKit" 22 | 23 | end 24 | -------------------------------------------------------------------------------- /KDropDownMultipleSelection.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 5E4390E91877EEE100008291 /* LICENCE.txt in Resources */ = {isa = PBXBuildFile; fileRef = 5E4390E81877EEE100008291 /* LICENCE.txt */; }; 11 | 5E4AD19118C72B920082C823 /* check_mark@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 5E4AD18A18C72B920082C823 /* check_mark@2x.png */; }; 12 | 5E4AD19218C72B920082C823 /* done@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 5E4AD18B18C72B920082C823 /* done@2x.png */; }; 13 | 5E4AD19318C72B920082C823 /* drop_down@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 5E4AD18C18C72B920082C823 /* drop_down@2x.png */; }; 14 | 5E4AD19418C72B920082C823 /* DropDownListView.m in Sources */ = {isa = PBXBuildFile; fileRef = 5E4AD18E18C72B920082C823 /* DropDownListView.m */; }; 15 | 5E4AD19518C72B920082C823 /* DropDownViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 5E4AD19018C72B920082C823 /* DropDownViewCell.m */; }; 16 | 5E917554187689D500950397 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E917553187689D500950397 /* Foundation.framework */; }; 17 | 5E917556187689D500950397 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E917555187689D500950397 /* CoreGraphics.framework */; }; 18 | 5E917558187689D500950397 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E917557187689D500950397 /* UIKit.framework */; }; 19 | 5E91755E187689D500950397 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 5E91755C187689D500950397 /* InfoPlist.strings */; }; 20 | 5E917560187689D500950397 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 5E91755F187689D500950397 /* main.m */; }; 21 | 5E917564187689D500950397 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 5E917563187689D500950397 /* AppDelegate.m */; }; 22 | 5E917567187689D500950397 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5E917565187689D500950397 /* Main.storyboard */; }; 23 | 5E91756A187689D500950397 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5E917569187689D500950397 /* ViewController.m */; }; 24 | 5E91756C187689D500950397 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5E91756B187689D500950397 /* Images.xcassets */; }; 25 | 5E917573187689D500950397 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E917572187689D500950397 /* XCTest.framework */; }; 26 | 5E917574187689D500950397 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E917553187689D500950397 /* Foundation.framework */; }; 27 | 5E917575187689D500950397 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E917557187689D500950397 /* UIKit.framework */; }; 28 | 5E91757D187689D500950397 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 5E91757B187689D500950397 /* InfoPlist.strings */; }; 29 | 5E91757F187689D500950397 /* KDropDownMultipleSelectionTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 5E91757E187689D500950397 /* KDropDownMultipleSelectionTests.m */; }; 30 | /* End PBXBuildFile section */ 31 | 32 | /* Begin PBXContainerItemProxy section */ 33 | 5E917576187689D500950397 /* PBXContainerItemProxy */ = { 34 | isa = PBXContainerItemProxy; 35 | containerPortal = 5E917548187689D400950397 /* Project object */; 36 | proxyType = 1; 37 | remoteGlobalIDString = 5E91754F187689D500950397; 38 | remoteInfo = KDropDownMultipleSelection; 39 | }; 40 | /* End PBXContainerItemProxy section */ 41 | 42 | /* Begin PBXFileReference section */ 43 | 5E4390E81877EEE100008291 /* LICENCE.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = LICENCE.txt; sourceTree = ""; }; 44 | 5E4AD18A18C72B920082C823 /* check_mark@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "check_mark@2x.png"; sourceTree = ""; }; 45 | 5E4AD18B18C72B920082C823 /* done@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "done@2x.png"; sourceTree = ""; }; 46 | 5E4AD18C18C72B920082C823 /* drop_down@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "drop_down@2x.png"; sourceTree = ""; }; 47 | 5E4AD18D18C72B920082C823 /* DropDownListView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DropDownListView.h; sourceTree = ""; }; 48 | 5E4AD18E18C72B920082C823 /* DropDownListView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DropDownListView.m; sourceTree = ""; }; 49 | 5E4AD18F18C72B920082C823 /* DropDownViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DropDownViewCell.h; sourceTree = ""; }; 50 | 5E4AD19018C72B920082C823 /* DropDownViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DropDownViewCell.m; sourceTree = ""; }; 51 | 5E917550187689D500950397 /* KDropDownMultipleSelection.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = KDropDownMultipleSelection.app; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | 5E917553187689D500950397 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 53 | 5E917555187689D500950397 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 54 | 5E917557187689D500950397 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 55 | 5E91755B187689D500950397 /* KDropDownMultipleSelection-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "KDropDownMultipleSelection-Info.plist"; sourceTree = ""; }; 56 | 5E91755D187689D500950397 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 57 | 5E91755F187689D500950397 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 58 | 5E917561187689D500950397 /* KDropDownMultipleSelection-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "KDropDownMultipleSelection-Prefix.pch"; sourceTree = ""; }; 59 | 5E917562187689D500950397 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 60 | 5E917563187689D500950397 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 61 | 5E917566187689D500950397 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 62 | 5E917568187689D500950397 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 63 | 5E917569187689D500950397 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 64 | 5E91756B187689D500950397 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 65 | 5E917571187689D500950397 /* KDropDownMultipleSelectionTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = KDropDownMultipleSelectionTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 66 | 5E917572187689D500950397 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; 67 | 5E91757A187689D500950397 /* KDropDownMultipleSelectionTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "KDropDownMultipleSelectionTests-Info.plist"; sourceTree = ""; }; 68 | 5E91757C187689D500950397 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 69 | 5E91757E187689D500950397 /* KDropDownMultipleSelectionTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KDropDownMultipleSelectionTests.m; sourceTree = ""; }; 70 | /* End PBXFileReference section */ 71 | 72 | /* Begin PBXFrameworksBuildPhase section */ 73 | 5E91754D187689D500950397 /* Frameworks */ = { 74 | isa = PBXFrameworksBuildPhase; 75 | buildActionMask = 2147483647; 76 | files = ( 77 | 5E917556187689D500950397 /* CoreGraphics.framework in Frameworks */, 78 | 5E917558187689D500950397 /* UIKit.framework in Frameworks */, 79 | 5E917554187689D500950397 /* Foundation.framework in Frameworks */, 80 | ); 81 | runOnlyForDeploymentPostprocessing = 0; 82 | }; 83 | 5E91756E187689D500950397 /* Frameworks */ = { 84 | isa = PBXFrameworksBuildPhase; 85 | buildActionMask = 2147483647; 86 | files = ( 87 | 5E917573187689D500950397 /* XCTest.framework in Frameworks */, 88 | 5E917575187689D500950397 /* UIKit.framework in Frameworks */, 89 | 5E917574187689D500950397 /* Foundation.framework in Frameworks */, 90 | ); 91 | runOnlyForDeploymentPostprocessing = 0; 92 | }; 93 | /* End PBXFrameworksBuildPhase section */ 94 | 95 | /* Begin PBXGroup section */ 96 | 5E4AD18918C72B920082C823 /* kDropDown */ = { 97 | isa = PBXGroup; 98 | children = ( 99 | 5E4AD18A18C72B920082C823 /* check_mark@2x.png */, 100 | 5E4AD18B18C72B920082C823 /* done@2x.png */, 101 | 5E4AD18C18C72B920082C823 /* drop_down@2x.png */, 102 | 5E4AD18D18C72B920082C823 /* DropDownListView.h */, 103 | 5E4AD18E18C72B920082C823 /* DropDownListView.m */, 104 | 5E4AD18F18C72B920082C823 /* DropDownViewCell.h */, 105 | 5E4AD19018C72B920082C823 /* DropDownViewCell.m */, 106 | ); 107 | path = kDropDown; 108 | sourceTree = SOURCE_ROOT; 109 | }; 110 | 5E917547187689D400950397 = { 111 | isa = PBXGroup; 112 | children = ( 113 | 5E4390E81877EEE100008291 /* LICENCE.txt */, 114 | 5E917559187689D500950397 /* KDropDownMultipleSelection */, 115 | 5E917578187689D500950397 /* KDropDownMultipleSelectionTests */, 116 | 5E917552187689D500950397 /* Frameworks */, 117 | 5E917551187689D500950397 /* Products */, 118 | ); 119 | sourceTree = ""; 120 | }; 121 | 5E917551187689D500950397 /* Products */ = { 122 | isa = PBXGroup; 123 | children = ( 124 | 5E917550187689D500950397 /* KDropDownMultipleSelection.app */, 125 | 5E917571187689D500950397 /* KDropDownMultipleSelectionTests.xctest */, 126 | ); 127 | name = Products; 128 | sourceTree = ""; 129 | }; 130 | 5E917552187689D500950397 /* Frameworks */ = { 131 | isa = PBXGroup; 132 | children = ( 133 | 5E917553187689D500950397 /* Foundation.framework */, 134 | 5E917555187689D500950397 /* CoreGraphics.framework */, 135 | 5E917557187689D500950397 /* UIKit.framework */, 136 | 5E917572187689D500950397 /* XCTest.framework */, 137 | ); 138 | name = Frameworks; 139 | sourceTree = ""; 140 | }; 141 | 5E917559187689D500950397 /* KDropDownMultipleSelection */ = { 142 | isa = PBXGroup; 143 | children = ( 144 | 5E4AD18918C72B920082C823 /* kDropDown */, 145 | 5E917562187689D500950397 /* AppDelegate.h */, 146 | 5E917563187689D500950397 /* AppDelegate.m */, 147 | 5E917565187689D500950397 /* Main.storyboard */, 148 | 5E917568187689D500950397 /* ViewController.h */, 149 | 5E917569187689D500950397 /* ViewController.m */, 150 | 5E91756B187689D500950397 /* Images.xcassets */, 151 | 5E91755A187689D500950397 /* Supporting Files */, 152 | ); 153 | path = KDropDownMultipleSelection; 154 | sourceTree = ""; 155 | }; 156 | 5E91755A187689D500950397 /* Supporting Files */ = { 157 | isa = PBXGroup; 158 | children = ( 159 | 5E91755B187689D500950397 /* KDropDownMultipleSelection-Info.plist */, 160 | 5E91755C187689D500950397 /* InfoPlist.strings */, 161 | 5E91755F187689D500950397 /* main.m */, 162 | 5E917561187689D500950397 /* KDropDownMultipleSelection-Prefix.pch */, 163 | ); 164 | name = "Supporting Files"; 165 | sourceTree = ""; 166 | }; 167 | 5E917578187689D500950397 /* KDropDownMultipleSelectionTests */ = { 168 | isa = PBXGroup; 169 | children = ( 170 | 5E91757E187689D500950397 /* KDropDownMultipleSelectionTests.m */, 171 | 5E917579187689D500950397 /* Supporting Files */, 172 | ); 173 | path = KDropDownMultipleSelectionTests; 174 | sourceTree = ""; 175 | }; 176 | 5E917579187689D500950397 /* Supporting Files */ = { 177 | isa = PBXGroup; 178 | children = ( 179 | 5E91757A187689D500950397 /* KDropDownMultipleSelectionTests-Info.plist */, 180 | 5E91757B187689D500950397 /* InfoPlist.strings */, 181 | ); 182 | name = "Supporting Files"; 183 | sourceTree = ""; 184 | }; 185 | /* End PBXGroup section */ 186 | 187 | /* Begin PBXNativeTarget section */ 188 | 5E91754F187689D500950397 /* KDropDownMultipleSelection */ = { 189 | isa = PBXNativeTarget; 190 | buildConfigurationList = 5E917582187689D500950397 /* Build configuration list for PBXNativeTarget "KDropDownMultipleSelection" */; 191 | buildPhases = ( 192 | 5E91754C187689D500950397 /* Sources */, 193 | 5E91754D187689D500950397 /* Frameworks */, 194 | 5E91754E187689D500950397 /* Resources */, 195 | ); 196 | buildRules = ( 197 | ); 198 | dependencies = ( 199 | ); 200 | name = KDropDownMultipleSelection; 201 | productName = KDropDownMultipleSelection; 202 | productReference = 5E917550187689D500950397 /* KDropDownMultipleSelection.app */; 203 | productType = "com.apple.product-type.application"; 204 | }; 205 | 5E917570187689D500950397 /* KDropDownMultipleSelectionTests */ = { 206 | isa = PBXNativeTarget; 207 | buildConfigurationList = 5E917585187689D500950397 /* Build configuration list for PBXNativeTarget "KDropDownMultipleSelectionTests" */; 208 | buildPhases = ( 209 | 5E91756D187689D500950397 /* Sources */, 210 | 5E91756E187689D500950397 /* Frameworks */, 211 | 5E91756F187689D500950397 /* Resources */, 212 | ); 213 | buildRules = ( 214 | ); 215 | dependencies = ( 216 | 5E917577187689D500950397 /* PBXTargetDependency */, 217 | ); 218 | name = KDropDownMultipleSelectionTests; 219 | productName = KDropDownMultipleSelectionTests; 220 | productReference = 5E917571187689D500950397 /* KDropDownMultipleSelectionTests.xctest */; 221 | productType = "com.apple.product-type.bundle.unit-test"; 222 | }; 223 | /* End PBXNativeTarget section */ 224 | 225 | /* Begin PBXProject section */ 226 | 5E917548187689D400950397 /* Project object */ = { 227 | isa = PBXProject; 228 | attributes = { 229 | LastUpgradeCheck = 0500; 230 | ORGANIZATIONNAME = macmini17; 231 | TargetAttributes = { 232 | 5E917570187689D500950397 = { 233 | TestTargetID = 5E91754F187689D500950397; 234 | }; 235 | }; 236 | }; 237 | buildConfigurationList = 5E91754B187689D400950397 /* Build configuration list for PBXProject "KDropDownMultipleSelection" */; 238 | compatibilityVersion = "Xcode 3.2"; 239 | developmentRegion = English; 240 | hasScannedForEncodings = 0; 241 | knownRegions = ( 242 | en, 243 | Base, 244 | ); 245 | mainGroup = 5E917547187689D400950397; 246 | productRefGroup = 5E917551187689D500950397 /* Products */; 247 | projectDirPath = ""; 248 | projectRoot = ""; 249 | targets = ( 250 | 5E91754F187689D500950397 /* KDropDownMultipleSelection */, 251 | 5E917570187689D500950397 /* KDropDownMultipleSelectionTests */, 252 | ); 253 | }; 254 | /* End PBXProject section */ 255 | 256 | /* Begin PBXResourcesBuildPhase section */ 257 | 5E91754E187689D500950397 /* Resources */ = { 258 | isa = PBXResourcesBuildPhase; 259 | buildActionMask = 2147483647; 260 | files = ( 261 | 5E91756C187689D500950397 /* Images.xcassets in Resources */, 262 | 5E4AD19318C72B920082C823 /* drop_down@2x.png in Resources */, 263 | 5E91755E187689D500950397 /* InfoPlist.strings in Resources */, 264 | 5E4390E91877EEE100008291 /* LICENCE.txt in Resources */, 265 | 5E4AD19118C72B920082C823 /* check_mark@2x.png in Resources */, 266 | 5E4AD19218C72B920082C823 /* done@2x.png in Resources */, 267 | 5E917567187689D500950397 /* Main.storyboard in Resources */, 268 | ); 269 | runOnlyForDeploymentPostprocessing = 0; 270 | }; 271 | 5E91756F187689D500950397 /* Resources */ = { 272 | isa = PBXResourcesBuildPhase; 273 | buildActionMask = 2147483647; 274 | files = ( 275 | 5E91757D187689D500950397 /* InfoPlist.strings in Resources */, 276 | ); 277 | runOnlyForDeploymentPostprocessing = 0; 278 | }; 279 | /* End PBXResourcesBuildPhase section */ 280 | 281 | /* Begin PBXSourcesBuildPhase section */ 282 | 5E91754C187689D500950397 /* Sources */ = { 283 | isa = PBXSourcesBuildPhase; 284 | buildActionMask = 2147483647; 285 | files = ( 286 | 5E91756A187689D500950397 /* ViewController.m in Sources */, 287 | 5E4AD19518C72B920082C823 /* DropDownViewCell.m in Sources */, 288 | 5E4AD19418C72B920082C823 /* DropDownListView.m in Sources */, 289 | 5E917564187689D500950397 /* AppDelegate.m in Sources */, 290 | 5E917560187689D500950397 /* main.m in Sources */, 291 | ); 292 | runOnlyForDeploymentPostprocessing = 0; 293 | }; 294 | 5E91756D187689D500950397 /* Sources */ = { 295 | isa = PBXSourcesBuildPhase; 296 | buildActionMask = 2147483647; 297 | files = ( 298 | 5E91757F187689D500950397 /* KDropDownMultipleSelectionTests.m in Sources */, 299 | ); 300 | runOnlyForDeploymentPostprocessing = 0; 301 | }; 302 | /* End PBXSourcesBuildPhase section */ 303 | 304 | /* Begin PBXTargetDependency section */ 305 | 5E917577187689D500950397 /* PBXTargetDependency */ = { 306 | isa = PBXTargetDependency; 307 | target = 5E91754F187689D500950397 /* KDropDownMultipleSelection */; 308 | targetProxy = 5E917576187689D500950397 /* PBXContainerItemProxy */; 309 | }; 310 | /* End PBXTargetDependency section */ 311 | 312 | /* Begin PBXVariantGroup section */ 313 | 5E91755C187689D500950397 /* InfoPlist.strings */ = { 314 | isa = PBXVariantGroup; 315 | children = ( 316 | 5E91755D187689D500950397 /* en */, 317 | ); 318 | name = InfoPlist.strings; 319 | sourceTree = ""; 320 | }; 321 | 5E917565187689D500950397 /* Main.storyboard */ = { 322 | isa = PBXVariantGroup; 323 | children = ( 324 | 5E917566187689D500950397 /* Base */, 325 | ); 326 | name = Main.storyboard; 327 | sourceTree = ""; 328 | }; 329 | 5E91757B187689D500950397 /* InfoPlist.strings */ = { 330 | isa = PBXVariantGroup; 331 | children = ( 332 | 5E91757C187689D500950397 /* en */, 333 | ); 334 | name = InfoPlist.strings; 335 | sourceTree = ""; 336 | }; 337 | /* End PBXVariantGroup section */ 338 | 339 | /* Begin XCBuildConfiguration section */ 340 | 5E917580187689D500950397 /* Debug */ = { 341 | isa = XCBuildConfiguration; 342 | buildSettings = { 343 | ALWAYS_SEARCH_USER_PATHS = NO; 344 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; 345 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 346 | CLANG_CXX_LIBRARY = "libc++"; 347 | CLANG_ENABLE_MODULES = YES; 348 | CLANG_ENABLE_OBJC_ARC = YES; 349 | CLANG_WARN_BOOL_CONVERSION = YES; 350 | CLANG_WARN_CONSTANT_CONVERSION = YES; 351 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 352 | CLANG_WARN_EMPTY_BODY = YES; 353 | CLANG_WARN_ENUM_CONVERSION = YES; 354 | CLANG_WARN_INT_CONVERSION = YES; 355 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 356 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 357 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 358 | COPY_PHASE_STRIP = NO; 359 | GCC_C_LANGUAGE_STANDARD = gnu99; 360 | GCC_DYNAMIC_NO_PIC = NO; 361 | GCC_OPTIMIZATION_LEVEL = 0; 362 | GCC_PREPROCESSOR_DEFINITIONS = ( 363 | "DEBUG=1", 364 | "$(inherited)", 365 | ); 366 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 367 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 368 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 369 | GCC_WARN_UNDECLARED_SELECTOR = YES; 370 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 371 | GCC_WARN_UNUSED_FUNCTION = YES; 372 | GCC_WARN_UNUSED_VARIABLE = YES; 373 | IPHONEOS_DEPLOYMENT_TARGET = 6.0; 374 | ONLY_ACTIVE_ARCH = YES; 375 | SDKROOT = iphoneos; 376 | }; 377 | name = Debug; 378 | }; 379 | 5E917581187689D500950397 /* Release */ = { 380 | isa = XCBuildConfiguration; 381 | buildSettings = { 382 | ALWAYS_SEARCH_USER_PATHS = NO; 383 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; 384 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 385 | CLANG_CXX_LIBRARY = "libc++"; 386 | CLANG_ENABLE_MODULES = YES; 387 | CLANG_ENABLE_OBJC_ARC = YES; 388 | CLANG_WARN_BOOL_CONVERSION = YES; 389 | CLANG_WARN_CONSTANT_CONVERSION = YES; 390 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 391 | CLANG_WARN_EMPTY_BODY = YES; 392 | CLANG_WARN_ENUM_CONVERSION = YES; 393 | CLANG_WARN_INT_CONVERSION = YES; 394 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 395 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 396 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 397 | COPY_PHASE_STRIP = YES; 398 | ENABLE_NS_ASSERTIONS = NO; 399 | GCC_C_LANGUAGE_STANDARD = gnu99; 400 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 401 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 402 | GCC_WARN_UNDECLARED_SELECTOR = YES; 403 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 404 | GCC_WARN_UNUSED_FUNCTION = YES; 405 | GCC_WARN_UNUSED_VARIABLE = YES; 406 | IPHONEOS_DEPLOYMENT_TARGET = 6.0; 407 | SDKROOT = iphoneos; 408 | VALIDATE_PRODUCT = YES; 409 | }; 410 | name = Release; 411 | }; 412 | 5E917583187689D500950397 /* Debug */ = { 413 | isa = XCBuildConfiguration; 414 | buildSettings = { 415 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 416 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 417 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 418 | GCC_PREFIX_HEADER = "KDropDownMultipleSelection/KDropDownMultipleSelection-Prefix.pch"; 419 | INFOPLIST_FILE = "KDropDownMultipleSelection/KDropDownMultipleSelection-Info.plist"; 420 | IPHONEOS_DEPLOYMENT_TARGET = 6.0; 421 | PRODUCT_NAME = "$(TARGET_NAME)"; 422 | WRAPPER_EXTENSION = app; 423 | }; 424 | name = Debug; 425 | }; 426 | 5E917584187689D500950397 /* Release */ = { 427 | isa = XCBuildConfiguration; 428 | buildSettings = { 429 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 430 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 431 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 432 | GCC_PREFIX_HEADER = "KDropDownMultipleSelection/KDropDownMultipleSelection-Prefix.pch"; 433 | INFOPLIST_FILE = "KDropDownMultipleSelection/KDropDownMultipleSelection-Info.plist"; 434 | IPHONEOS_DEPLOYMENT_TARGET = 6.0; 435 | PRODUCT_NAME = "$(TARGET_NAME)"; 436 | WRAPPER_EXTENSION = app; 437 | }; 438 | name = Release; 439 | }; 440 | 5E917586187689D500950397 /* Debug */ = { 441 | isa = XCBuildConfiguration; 442 | buildSettings = { 443 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; 444 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/KDropDownMultipleSelection.app/KDropDownMultipleSelection"; 445 | FRAMEWORK_SEARCH_PATHS = ( 446 | "$(SDKROOT)/Developer/Library/Frameworks", 447 | "$(inherited)", 448 | "$(DEVELOPER_FRAMEWORKS_DIR)", 449 | ); 450 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 451 | GCC_PREFIX_HEADER = "KDropDownMultipleSelection/KDropDownMultipleSelection-Prefix.pch"; 452 | GCC_PREPROCESSOR_DEFINITIONS = ( 453 | "DEBUG=1", 454 | "$(inherited)", 455 | ); 456 | INFOPLIST_FILE = "KDropDownMultipleSelectionTests/KDropDownMultipleSelectionTests-Info.plist"; 457 | PRODUCT_NAME = "$(TARGET_NAME)"; 458 | TEST_HOST = "$(BUNDLE_LOADER)"; 459 | WRAPPER_EXTENSION = xctest; 460 | }; 461 | name = Debug; 462 | }; 463 | 5E917587187689D500950397 /* Release */ = { 464 | isa = XCBuildConfiguration; 465 | buildSettings = { 466 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; 467 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/KDropDownMultipleSelection.app/KDropDownMultipleSelection"; 468 | FRAMEWORK_SEARCH_PATHS = ( 469 | "$(SDKROOT)/Developer/Library/Frameworks", 470 | "$(inherited)", 471 | "$(DEVELOPER_FRAMEWORKS_DIR)", 472 | ); 473 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 474 | GCC_PREFIX_HEADER = "KDropDownMultipleSelection/KDropDownMultipleSelection-Prefix.pch"; 475 | INFOPLIST_FILE = "KDropDownMultipleSelectionTests/KDropDownMultipleSelectionTests-Info.plist"; 476 | PRODUCT_NAME = "$(TARGET_NAME)"; 477 | TEST_HOST = "$(BUNDLE_LOADER)"; 478 | WRAPPER_EXTENSION = xctest; 479 | }; 480 | name = Release; 481 | }; 482 | /* End XCBuildConfiguration section */ 483 | 484 | /* Begin XCConfigurationList section */ 485 | 5E91754B187689D400950397 /* Build configuration list for PBXProject "KDropDownMultipleSelection" */ = { 486 | isa = XCConfigurationList; 487 | buildConfigurations = ( 488 | 5E917580187689D500950397 /* Debug */, 489 | 5E917581187689D500950397 /* Release */, 490 | ); 491 | defaultConfigurationIsVisible = 0; 492 | defaultConfigurationName = Release; 493 | }; 494 | 5E917582187689D500950397 /* Build configuration list for PBXNativeTarget "KDropDownMultipleSelection" */ = { 495 | isa = XCConfigurationList; 496 | buildConfigurations = ( 497 | 5E917583187689D500950397 /* Debug */, 498 | 5E917584187689D500950397 /* Release */, 499 | ); 500 | defaultConfigurationIsVisible = 0; 501 | defaultConfigurationName = Release; 502 | }; 503 | 5E917585187689D500950397 /* Build configuration list for PBXNativeTarget "KDropDownMultipleSelectionTests" */ = { 504 | isa = XCConfigurationList; 505 | buildConfigurations = ( 506 | 5E917586187689D500950397 /* Debug */, 507 | 5E917587187689D500950397 /* Release */, 508 | ); 509 | defaultConfigurationIsVisible = 0; 510 | defaultConfigurationName = Release; 511 | }; 512 | /* End XCConfigurationList section */ 513 | }; 514 | rootObject = 5E917548187689D400950397 /* Project object */; 515 | } 516 | -------------------------------------------------------------------------------- /KDropDownMultipleSelection.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /KDropDownMultipleSelection.xcodeproj/project.xcworkspace/xcshareddata/KDropDownMultipleSelection.xccheckout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDESourceControlProjectFavoriteDictionaryKey 6 | 7 | IDESourceControlProjectIdentifier 8 | F06308F0-666F-4082-A828-2610DFDB26BB 9 | IDESourceControlProjectName 10 | KDropDownMultipleSelection 11 | IDESourceControlProjectOriginsDictionary 12 | 13 | 7BDBA005-63D3-4388-8B7D-C6BD0D54BD48 14 | https://github.com/kiran5232/KDropDownMultipleSelection.git 15 | 16 | IDESourceControlProjectPath 17 | KDropDownMultipleSelection.xcodeproj/project.xcworkspace 18 | IDESourceControlProjectRelativeInstallPathDictionary 19 | 20 | 7BDBA005-63D3-4388-8B7D-C6BD0D54BD48 21 | ../.. 22 | 23 | IDESourceControlProjectURL 24 | https://github.com/kiran5232/KDropDownMultipleSelection.git 25 | IDESourceControlProjectVersion 26 | 110 27 | IDESourceControlProjectWCCIdentifier 28 | 7BDBA005-63D3-4388-8B7D-C6BD0D54BD48 29 | IDESourceControlProjectWCConfigurations 30 | 31 | 32 | IDESourceControlRepositoryExtensionIdentifierKey 33 | public.vcs.git 34 | IDESourceControlWCCIdentifierKey 35 | 7BDBA005-63D3-4388-8B7D-C6BD0D54BD48 36 | IDESourceControlWCCName 37 | KDropDownMultipleSelection 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /KDropDownMultipleSelection.xcodeproj/project.xcworkspace/xcuserdata/macmini17.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KiranPatelSpaceo/KDropDownMultipleSelection/ce901fea0e544e2a1d3fb7f9b228a2e5bdfb64c4/KDropDownMultipleSelection.xcodeproj/project.xcworkspace/xcuserdata/macmini17.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /KDropDownMultipleSelection.xcodeproj/xcuserdata/macmini17.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 8 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /KDropDownMultipleSelection.xcodeproj/xcuserdata/macmini17.xcuserdatad/xcschemes/KDropDownMultipleSelection.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 | -------------------------------------------------------------------------------- /KDropDownMultipleSelection.xcodeproj/xcuserdata/macmini17.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | KDropDownMultipleSelection.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 5E91754F187689D500950397 16 | 17 | primary 18 | 19 | 20 | 5E917570187689D500950397 21 | 22 | primary 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /KDropDownMultipleSelection/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KiranPatelSpaceo/KDropDownMultipleSelection/ce901fea0e544e2a1d3fb7f9b228a2e5bdfb64c4/KDropDownMultipleSelection/.DS_Store -------------------------------------------------------------------------------- /KDropDownMultipleSelection/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // KDropDownMultipleSelection 4 | // 5 | // Created by macmini17 on 03/01/14. 6 | // Copyright (c) 2014 macmini17. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /KDropDownMultipleSelection/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // KDropDownMultipleSelection 4 | // 5 | // Created by macmini17 on 03/01/14. 6 | // Copyright (c) 2014 macmini17. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @implementation AppDelegate 12 | 13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 14 | { 15 | 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 | -------------------------------------------------------------------------------- /KDropDownMultipleSelection/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 27 | 39 | 46 | 53 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | -------------------------------------------------------------------------------- /KDropDownMultipleSelection/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 | } -------------------------------------------------------------------------------- /KDropDownMultipleSelection/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 | } -------------------------------------------------------------------------------- /KDropDownMultipleSelection/KDropDownMultipleSelection-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | com.-.${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 | -------------------------------------------------------------------------------- /KDropDownMultipleSelection/KDropDownMultipleSelection-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 | -------------------------------------------------------------------------------- /KDropDownMultipleSelection/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // KDropDownMultipleSelection 4 | // 5 | // Created by macmini17 on 03/01/14. 6 | // Copyright (c) 2014 macmini17. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "DropDownListView.h" 11 | @interface ViewController : UIViewController{ 12 | NSArray *arryList; 13 | DropDownListView * Dropobj; 14 | } 15 | 16 | - (IBAction)DropDownPressed:(id)sender; 17 | - (IBAction)DropDownSingle:(id)sender; 18 | @property (strong, nonatomic) IBOutlet UILabel *lblSelectedCountryNames; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /KDropDownMultipleSelection/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // KDropDownMultipleSelection 4 | // 5 | // Created by macmini17 on 03/01/14. 6 | // Copyright (c) 2014 macmini17. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | #import "DropDownListView.h" 11 | @interface ViewController () 12 | 13 | @end 14 | 15 | @implementation ViewController 16 | 17 | - (void)viewDidLoad 18 | { 19 | [super viewDidLoad]; 20 | arryList=@[@"India",@"Swaziland",@"Africa",@"Australlia",@"Pakistan",@"Srilanka",@"Mexico",@"United Kingdom",@"United States",@"Portugal"]; 21 | // Do any additional setup after loading the view, typically from a nib. 22 | } 23 | -(void)showPopUpWithTitle:(NSString*)popupTitle withOption:(NSArray*)arrOptions xy:(CGPoint)point size:(CGSize)size isMultiple:(BOOL)isMultiple{ 24 | 25 | 26 | Dropobj = [[DropDownListView alloc] initWithTitle:popupTitle options:arrOptions xy:point size:size isMultiple:isMultiple]; 27 | Dropobj.delegate = self; 28 | [Dropobj showInView:self.view animated:YES]; 29 | 30 | /*----------------Set DropDown backGroundColor-----------------*/ 31 | [Dropobj SetBackGroundDropDown_R:0.0 G:108.0 B:194.0 alpha:0.70]; 32 | 33 | } 34 | - (void)DropDownListView:(DropDownListView *)dropdownListView didSelectedIndex:(NSInteger)anIndex{ 35 | /*----------------Get Selected Value[Single selection]-----------------*/ 36 | _lblSelectedCountryNames.text=[arryList objectAtIndex:anIndex]; 37 | } 38 | - (void)DropDownListView:(DropDownListView *)dropdownListView Datalist:(NSMutableArray*)ArryData{ 39 | 40 | /*----------------Get Selected Value[Multiple selection]-----------------*/ 41 | if (ArryData.count>0) { 42 | _lblSelectedCountryNames.text=[ArryData componentsJoinedByString:@"\n"]; 43 | CGSize size=[self GetHeightDyanamic:_lblSelectedCountryNames]; 44 | _lblSelectedCountryNames.frame=CGRectMake(16, 240, 287, size.height); 45 | } 46 | else{ 47 | _lblSelectedCountryNames.text=@""; 48 | } 49 | 50 | } 51 | - (void)DropDownListViewDidCancel{ 52 | 53 | } 54 | - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { 55 | UITouch *touch = [touches anyObject]; 56 | 57 | if ([touch.view isKindOfClass:[UIView class]]) { 58 | [Dropobj fadeOut]; 59 | } 60 | } 61 | 62 | - (void)didReceiveMemoryWarning 63 | { 64 | [super didReceiveMemoryWarning]; 65 | // Dispose of any resources that can be recreated. 66 | } 67 | -(CGSize)GetHeightDyanamic:(UILabel*)lbl 68 | { 69 | NSRange range = NSMakeRange(0, [lbl.text length]); 70 | CGSize constraint; 71 | constraint= CGSizeMake(288 ,MAXFLOAT); 72 | CGSize size; 73 | 74 | if (([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0)) { 75 | NSDictionary *attributes = [lbl.attributedText attributesAtIndex:0 effectiveRange:&range]; 76 | CGSize boundingBox = [lbl.text boundingRectWithSize:constraint options: NSStringDrawingUsesLineFragmentOrigin attributes:attributes context:nil].size; 77 | 78 | size = CGSizeMake(ceil(boundingBox.width), ceil(boundingBox.height)); 79 | } 80 | else{ 81 | 82 | 83 | size = [lbl.text sizeWithFont:[UIFont fontWithName:@"Helvetica" size:14] constrainedToSize:constraint lineBreakMode:NSLineBreakByWordWrapping]; 84 | } 85 | return size; 86 | } 87 | - (IBAction)DropDownPressed:(id)sender { 88 | 89 | 90 | [Dropobj fadeOut]; 91 | [self showPopUpWithTitle:@"Select Country" withOption:arryList xy:CGPointMake(16, 58) size:CGSizeMake(287, 330) isMultiple:YES]; 92 | } 93 | 94 | - (IBAction)DropDownSingle:(id)sender { 95 | [Dropobj fadeOut]; 96 | [self showPopUpWithTitle:@"Select Country" withOption:arryList xy:CGPointMake(16, 150) size:CGSizeMake(287, 280) isMultiple:NO]; 97 | } 98 | @end 99 | -------------------------------------------------------------------------------- /KDropDownMultipleSelection/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /KDropDownMultipleSelection/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // KDropDownMultipleSelection 4 | // 5 | // Created by macmini17 on 03/01/14. 6 | // Copyright (c) 2014 macmini17. 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 | -------------------------------------------------------------------------------- /KDropDownMultipleSelectionTests/KDropDownMultipleSelectionTests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.-.${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 | -------------------------------------------------------------------------------- /KDropDownMultipleSelectionTests/KDropDownMultipleSelectionTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // KDropDownMultipleSelectionTests.m 3 | // KDropDownMultipleSelectionTests 4 | // 5 | // Created by macmini17 on 03/01/14. 6 | // Copyright (c) 2014 macmini17. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface KDropDownMultipleSelectionTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation KDropDownMultipleSelectionTests 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 | -------------------------------------------------------------------------------- /KDropDownMultipleSelectionTests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /LICENCE.txt: -------------------------------------------------------------------------------- 1 | Created by kiran patel. 2 | Copyright (c) 2013 kiran patel. All rights reserved. 3 | 4 | https://github.com/kiran5232/KDropDownMultipleSelection 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | KDropDownMultipleSelection 2 | ========================== 3 | 4 | Single or multiple selection in dropdownlist 5 | 6 | /*-------------------- Selection-----------------------*/ 7 | 8 | Use: 9 | [self showPopUpWithTitle:@"Select Country" withOption:arryList xy:CGPointMake(16, 150) size:CGSizeMake(287, 280) isMultiple:NO]; 10 | 11 | isMultiple =yes means Multiple Selection 12 | isMultiple =No Means Single Selection 13 | 14 | 15 | /*------------------Change BackGroung Color of DropDownlist----------------*/ 16 | 17 | [Dropobj SetBackGroundDropDwon_R:0.0 G:108.0 B:194.0 alpha:0.70]; 18 | 19 | /*------------Delegate Methods-----------------*/ 20 | 21 | For Single Selection 22 | Get Value 23 | - (void)DropDownListView:(DropDownListView *)dropdownListView didSelectedIndex:(NSInteger)anIndex{ 24 | 25 | } 26 | 27 | For Mutiple Selection 28 | Get Values 29 | - (void)DropDownListView:(DropDownListView *)dropdownListView Datalist:(NSMutableArray*)ArryData{ 30 | } 31 | -------------------------------------------------------------------------------- /kDropDown/DropDownListView.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropDownListView.h 3 | // KDropDownMultipleSelection 4 | // 5 | // Created by macmini17 on 03/01/14. 6 | // Copyright (c) 2014 macmini17. All rights reserved. 7 | // 8 | 9 | 10 | @protocol kDropDownListViewDelegate; 11 | @interface DropDownListView : UIView{ 12 | 13 | UITableView *_kTableView; 14 | NSString *_kTitleText; 15 | NSArray *_kDropDownOption; 16 | CGFloat R,G,B,A; 17 | BOOL isMultipleSelection; 18 | } 19 | @property(nonatomic,strong)NSMutableArray *arryData; 20 | @property (nonatomic, assign) id delegate; 21 | - (void)fadeOut; 22 | // The options is a NSArray, contain some NSDictionaries, the NSDictionary contain 2 keys, one is "img", another is "text". 23 | - (id)initWithTitle:(NSString *)aTitle options:(NSArray *)aOptions xy:(CGPoint)point size:(CGSize)size isMultiple:(BOOL)isMultiple; 24 | // If animated is YES, PopListView will be appeared with FadeIn effect. 25 | - (void)showInView:(UIView *)aView animated:(BOOL)animated; 26 | -(void)SetBackGroundDropDown_R:(CGFloat)r G:(CGFloat)g B:(CGFloat)b alpha:(CGFloat)alph; 27 | @end 28 | 29 | @protocol kDropDownListViewDelegate 30 | - (void)DropDownListView:(DropDownListView *)dropdownListView didSelectedIndex:(NSInteger)anIndex; 31 | - (void)DropDownListView:(DropDownListView *)dropdownListView Datalist:(NSMutableArray*)ArryData; 32 | - (void)DropDownListViewDidCancel; 33 | @end 34 | -------------------------------------------------------------------------------- /kDropDown/DropDownListView.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropDownListView.m 3 | // KDropDownMultipleSelection 4 | // 5 | // Created by macmini17 on 03/01/14. 6 | // Copyright (c) 2014 macmini17. All rights reserved. 7 | // 8 | 9 | #import "DropDownListView.h" 10 | #import "DropDownViewCell.h" 11 | 12 | #define DROPDOWNVIEW_SCREENINSET 0 13 | #define DROPDOWNVIEW_HEADER_HEIGHT 50. 14 | #define RADIUS 5.0f 15 | 16 | 17 | @interface DropDownListView (private) 18 | - (void)fadeIn; 19 | - (void)fadeOut; 20 | @end 21 | @implementation DropDownListView 22 | 23 | - (id)initWithFrame:(CGRect)frame 24 | { 25 | self = [super initWithFrame:frame]; 26 | if (self) { 27 | // Initialization code 28 | } 29 | return self; 30 | } 31 | - (id)initWithTitle:(NSString *)aTitle options:(NSArray *)aOptions xy:(CGPoint)point size:(CGSize)size isMultiple:(BOOL)isMultiple 32 | { 33 | isMultipleSelection=isMultiple; 34 | float height = MIN(size.height, DROPDOWNVIEW_HEADER_HEIGHT+[aOptions count]*44); 35 | CGRect rect = CGRectMake(point.x, point.y, size.width, height); 36 | if (self = [super initWithFrame:rect]) 37 | { 38 | self.backgroundColor = [UIColor clearColor]; 39 | self.layer.shadowColor = [UIColor blackColor].CGColor; 40 | self.layer.shadowOffset = CGSizeMake(2.5, 2.5); 41 | self.layer.shadowRadius = 2.0f; 42 | self.layer.shadowOpacity = 0.5f; 43 | 44 | _kTitleText = [aTitle copy]; 45 | _kDropDownOption = [aOptions copy]; 46 | self.arryData=[[NSMutableArray alloc]init]; 47 | _kTableView = [[UITableView alloc] initWithFrame:CGRectMake(DROPDOWNVIEW_SCREENINSET, 48 | DROPDOWNVIEW_SCREENINSET + DROPDOWNVIEW_HEADER_HEIGHT, 49 | rect.size.width - 2 * DROPDOWNVIEW_SCREENINSET, 50 | rect.size.height - 2 * DROPDOWNVIEW_SCREENINSET - DROPDOWNVIEW_HEADER_HEIGHT - RADIUS)]; 51 | _kTableView.separatorColor = [UIColor colorWithWhite:1 alpha:.2]; 52 | _kTableView.separatorInset = UIEdgeInsetsZero; 53 | _kTableView.backgroundColor = [UIColor clearColor]; 54 | _kTableView.dataSource = self; 55 | _kTableView.delegate = self; 56 | [self addSubview:_kTableView]; 57 | 58 | if (isMultipleSelection) { 59 | UIButton *btnDone=[UIButton buttonWithType:UIButtonTypeCustom]; 60 | [btnDone setFrame:CGRectMake(rect.origin.x+182,rect.origin.y-45, 82, 31)]; 61 | [btnDone setImage:[UIImage imageNamed:@"done@2x.png"] forState:UIControlStateNormal]; 62 | [btnDone addTarget:self action:@selector(Click_Done) forControlEvents: UIControlEventTouchUpInside]; 63 | [self addSubview:btnDone]; 64 | } 65 | 66 | 67 | } 68 | return self; 69 | } 70 | -(void)Click_Done{ 71 | 72 | if (self.delegate && [self.delegate respondsToSelector:@selector(DropDownListView:Datalist:)]) { 73 | NSMutableArray *arryResponceData=[[NSMutableArray alloc]init]; 74 | NSLog(@"%@",self.arryData); 75 | for (int k=0; k= 7.0)) { 205 | UIFont *font = [UIFont fontWithName:@"HelveticaNeue" size:16.0]; 206 | UIColor *cl=[UIColor whiteColor]; 207 | 208 | NSDictionary *attributes = @{ NSFontAttributeName: font,NSForegroundColorAttributeName:cl}; 209 | [_kTitleText drawInRect:titleRect withAttributes:attributes]; 210 | } 211 | else 212 | [_kTitleText drawInRect:titleRect withFont:[UIFont systemFontOfSize:16.]]; 213 | 214 | CGContextFillRect(ctx, separatorRect); 215 | } 216 | 217 | -(void)SetBackGroundDropDown_R:(CGFloat)r G:(CGFloat)g B:(CGFloat)b alpha:(CGFloat)alph { 218 | R=r; 219 | G=g; 220 | B=b; 221 | A=alph; 222 | } 223 | 224 | @end 225 | -------------------------------------------------------------------------------- /kDropDown/DropDownViewCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropDownViewCell.h 3 | // KDropDownMultipleSelection 4 | // 5 | // Created by macmini17 on 03/01/14. 6 | // Copyright (c) 2014 macmini17. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface DropDownViewCell : UITableViewCell 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /kDropDown/DropDownViewCell.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropDownViewCell.m 3 | // KDropDownMultipleSelection 4 | // 5 | // Created by macmini17 on 03/01/14. 6 | // Copyright (c) 2014 macmini17. All rights reserved. 7 | // 8 | 9 | #import "DropDownViewCell.h" 10 | 11 | @implementation DropDownViewCell 12 | 13 | - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier 14 | { 15 | self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]; 16 | if (self) { 17 | self.backgroundColor = [UIColor clearColor]; 18 | self.textLabel.textColor = [UIColor whiteColor]; 19 | self.textLabel.font = [UIFont fontWithName:@"HelveticaNeue" size:15.]; 20 | } 21 | return self; 22 | } 23 | 24 | - (void)layoutSubviews 25 | { 26 | [super layoutSubviews]; 27 | self.imageView.frame = CGRectOffset(self.imageView.frame, 6, 0); 28 | self.textLabel.frame = CGRectOffset(self.textLabel.frame, 6, 0); 29 | } 30 | 31 | - (void)setSelected:(BOOL)selected animated:(BOOL)animated 32 | { 33 | [super setSelected:selected animated:animated]; 34 | } 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /kDropDown/check_mark@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KiranPatelSpaceo/KDropDownMultipleSelection/ce901fea0e544e2a1d3fb7f9b228a2e5bdfb64c4/kDropDown/check_mark@2x.png -------------------------------------------------------------------------------- /kDropDown/done@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KiranPatelSpaceo/KDropDownMultipleSelection/ce901fea0e544e2a1d3fb7f9b228a2e5bdfb64c4/kDropDown/done@2x.png -------------------------------------------------------------------------------- /kDropDown/drop_down@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KiranPatelSpaceo/KDropDownMultipleSelection/ce901fea0e544e2a1d3fb7f9b228a2e5bdfb64c4/kDropDown/drop_down@2x.png --------------------------------------------------------------------------------