├── ANTagsView.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ ├── xcshareddata │ │ └── ANTagsView.xccheckout │ └── xcuserdata │ │ └── adnannasir.xcuserdatad │ │ └── WorkspaceSettings.xcsettings └── xcuserdata │ └── adnannasir.xcuserdatad │ ├── xcdebugger │ └── Breakpoints_v2.xcbkptlist │ └── xcschemes │ ├── ANTagsView.xcscheme │ └── xcschememanagement.plist ├── ANTagsView ├── AppDelegate.h ├── AppDelegate.m ├── Base.lproj │ ├── LaunchScreen.xib │ └── Main.storyboard ├── CustomTagView │ ├── ANTagsView.h │ └── ANTagsView.m ├── Images.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Info.plist ├── ViewController.h ├── ViewController.m ├── main.m └── test │ └── readme ├── ANTagsViewTests ├── ANTagsViewTests.m └── Info.plist ├── LICENSE ├── README.md ├── example1.png └── example2.png /ANTagsView.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 249828471B8EFA90007536A7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 249828461B8EFA90007536A7 /* main.m */; }; 11 | 2498284A1B8EFA90007536A7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 249828491B8EFA90007536A7 /* AppDelegate.m */; }; 12 | 2498284D1B8EFA90007536A7 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2498284C1B8EFA90007536A7 /* ViewController.m */; }; 13 | 249828501B8EFA90007536A7 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 2498284E1B8EFA90007536A7 /* Main.storyboard */; }; 14 | 249828521B8EFA90007536A7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 249828511B8EFA90007536A7 /* Images.xcassets */; }; 15 | 249828551B8EFA90007536A7 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 249828531B8EFA90007536A7 /* LaunchScreen.xib */; }; 16 | 249828611B8EFA90007536A7 /* ANTagsViewTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 249828601B8EFA90007536A7 /* ANTagsViewTests.m */; }; 17 | 2498286C1B8EFACD007536A7 /* ANTagsView.m in Sources */ = {isa = PBXBuildFile; fileRef = 2498286B1B8EFACD007536A7 /* ANTagsView.m */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 2498285B1B8EFA90007536A7 /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = 249828391B8EFA90007536A7 /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = 249828401B8EFA90007536A7; 26 | remoteInfo = ANTagsView; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 249828411B8EFA90007536A7 /* ANTagsView.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ANTagsView.app; sourceTree = BUILT_PRODUCTS_DIR; }; 32 | 249828451B8EFA90007536A7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 33 | 249828461B8EFA90007536A7 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 34 | 249828481B8EFA90007536A7 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 35 | 249828491B8EFA90007536A7 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 36 | 2498284B1B8EFA90007536A7 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 37 | 2498284C1B8EFA90007536A7 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 38 | 2498284F1B8EFA90007536A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 39 | 249828511B8EFA90007536A7 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 40 | 249828541B8EFA90007536A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 41 | 2498285A1B8EFA90007536A7 /* ANTagsViewTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ANTagsViewTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 42 | 2498285F1B8EFA90007536A7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 43 | 249828601B8EFA90007536A7 /* ANTagsViewTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ANTagsViewTests.m; sourceTree = ""; }; 44 | 2498286A1B8EFACD007536A7 /* ANTagsView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ANTagsView.h; path = CustomTagView/ANTagsView.h; sourceTree = ""; }; 45 | 2498286B1B8EFACD007536A7 /* ANTagsView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ANTagsView.m; path = CustomTagView/ANTagsView.m; sourceTree = ""; }; 46 | /* End PBXFileReference section */ 47 | 48 | /* Begin PBXFrameworksBuildPhase section */ 49 | 2498283E1B8EFA90007536A7 /* Frameworks */ = { 50 | isa = PBXFrameworksBuildPhase; 51 | buildActionMask = 2147483647; 52 | files = ( 53 | ); 54 | runOnlyForDeploymentPostprocessing = 0; 55 | }; 56 | 249828571B8EFA90007536A7 /* Frameworks */ = { 57 | isa = PBXFrameworksBuildPhase; 58 | buildActionMask = 2147483647; 59 | files = ( 60 | ); 61 | runOnlyForDeploymentPostprocessing = 0; 62 | }; 63 | /* End PBXFrameworksBuildPhase section */ 64 | 65 | /* Begin PBXGroup section */ 66 | 249828381B8EFA90007536A7 = { 67 | isa = PBXGroup; 68 | children = ( 69 | 249828431B8EFA90007536A7 /* ANTagsView */, 70 | 2498285D1B8EFA90007536A7 /* ANTagsViewTests */, 71 | 249828421B8EFA90007536A7 /* Products */, 72 | ); 73 | sourceTree = ""; 74 | }; 75 | 249828421B8EFA90007536A7 /* Products */ = { 76 | isa = PBXGroup; 77 | children = ( 78 | 249828411B8EFA90007536A7 /* ANTagsView.app */, 79 | 2498285A1B8EFA90007536A7 /* ANTagsViewTests.xctest */, 80 | ); 81 | name = Products; 82 | sourceTree = ""; 83 | }; 84 | 249828431B8EFA90007536A7 /* ANTagsView */ = { 85 | isa = PBXGroup; 86 | children = ( 87 | 249828481B8EFA90007536A7 /* AppDelegate.h */, 88 | 249828491B8EFA90007536A7 /* AppDelegate.m */, 89 | 2498284B1B8EFA90007536A7 /* ViewController.h */, 90 | 2498284C1B8EFA90007536A7 /* ViewController.m */, 91 | 2498284E1B8EFA90007536A7 /* Main.storyboard */, 92 | 249828511B8EFA90007536A7 /* Images.xcassets */, 93 | 249828531B8EFA90007536A7 /* LaunchScreen.xib */, 94 | 249828441B8EFA90007536A7 /* Supporting Files */, 95 | 2498286A1B8EFACD007536A7 /* ANTagsView.h */, 96 | 2498286B1B8EFACD007536A7 /* ANTagsView.m */, 97 | ); 98 | path = ANTagsView; 99 | sourceTree = ""; 100 | }; 101 | 249828441B8EFA90007536A7 /* Supporting Files */ = { 102 | isa = PBXGroup; 103 | children = ( 104 | 249828451B8EFA90007536A7 /* Info.plist */, 105 | 249828461B8EFA90007536A7 /* main.m */, 106 | ); 107 | name = "Supporting Files"; 108 | sourceTree = ""; 109 | }; 110 | 2498285D1B8EFA90007536A7 /* ANTagsViewTests */ = { 111 | isa = PBXGroup; 112 | children = ( 113 | 249828601B8EFA90007536A7 /* ANTagsViewTests.m */, 114 | 2498285E1B8EFA90007536A7 /* Supporting Files */, 115 | ); 116 | path = ANTagsViewTests; 117 | sourceTree = ""; 118 | }; 119 | 2498285E1B8EFA90007536A7 /* Supporting Files */ = { 120 | isa = PBXGroup; 121 | children = ( 122 | 2498285F1B8EFA90007536A7 /* Info.plist */, 123 | ); 124 | name = "Supporting Files"; 125 | sourceTree = ""; 126 | }; 127 | /* End PBXGroup section */ 128 | 129 | /* Begin PBXNativeTarget section */ 130 | 249828401B8EFA90007536A7 /* ANTagsView */ = { 131 | isa = PBXNativeTarget; 132 | buildConfigurationList = 249828641B8EFA90007536A7 /* Build configuration list for PBXNativeTarget "ANTagsView" */; 133 | buildPhases = ( 134 | 2498283D1B8EFA90007536A7 /* Sources */, 135 | 2498283E1B8EFA90007536A7 /* Frameworks */, 136 | 2498283F1B8EFA90007536A7 /* Resources */, 137 | ); 138 | buildRules = ( 139 | ); 140 | dependencies = ( 141 | ); 142 | name = ANTagsView; 143 | productName = ANTagsView; 144 | productReference = 249828411B8EFA90007536A7 /* ANTagsView.app */; 145 | productType = "com.apple.product-type.application"; 146 | }; 147 | 249828591B8EFA90007536A7 /* ANTagsViewTests */ = { 148 | isa = PBXNativeTarget; 149 | buildConfigurationList = 249828671B8EFA90007536A7 /* Build configuration list for PBXNativeTarget "ANTagsViewTests" */; 150 | buildPhases = ( 151 | 249828561B8EFA90007536A7 /* Sources */, 152 | 249828571B8EFA90007536A7 /* Frameworks */, 153 | 249828581B8EFA90007536A7 /* Resources */, 154 | ); 155 | buildRules = ( 156 | ); 157 | dependencies = ( 158 | 2498285C1B8EFA90007536A7 /* PBXTargetDependency */, 159 | ); 160 | name = ANTagsViewTests; 161 | productName = ANTagsViewTests; 162 | productReference = 2498285A1B8EFA90007536A7 /* ANTagsViewTests.xctest */; 163 | productType = "com.apple.product-type.bundle.unit-test"; 164 | }; 165 | /* End PBXNativeTarget section */ 166 | 167 | /* Begin PBXProject section */ 168 | 249828391B8EFA90007536A7 /* Project object */ = { 169 | isa = PBXProject; 170 | attributes = { 171 | LastUpgradeCheck = 0640; 172 | ORGANIZATIONNAME = Inasa; 173 | TargetAttributes = { 174 | 249828401B8EFA90007536A7 = { 175 | CreatedOnToolsVersion = 6.4; 176 | }; 177 | 249828591B8EFA90007536A7 = { 178 | CreatedOnToolsVersion = 6.4; 179 | TestTargetID = 249828401B8EFA90007536A7; 180 | }; 181 | }; 182 | }; 183 | buildConfigurationList = 2498283C1B8EFA90007536A7 /* Build configuration list for PBXProject "ANTagsView" */; 184 | compatibilityVersion = "Xcode 3.2"; 185 | developmentRegion = English; 186 | hasScannedForEncodings = 0; 187 | knownRegions = ( 188 | en, 189 | Base, 190 | ); 191 | mainGroup = 249828381B8EFA90007536A7; 192 | productRefGroup = 249828421B8EFA90007536A7 /* Products */; 193 | projectDirPath = ""; 194 | projectRoot = ""; 195 | targets = ( 196 | 249828401B8EFA90007536A7 /* ANTagsView */, 197 | 249828591B8EFA90007536A7 /* ANTagsViewTests */, 198 | ); 199 | }; 200 | /* End PBXProject section */ 201 | 202 | /* Begin PBXResourcesBuildPhase section */ 203 | 2498283F1B8EFA90007536A7 /* Resources */ = { 204 | isa = PBXResourcesBuildPhase; 205 | buildActionMask = 2147483647; 206 | files = ( 207 | 249828501B8EFA90007536A7 /* Main.storyboard in Resources */, 208 | 249828551B8EFA90007536A7 /* LaunchScreen.xib in Resources */, 209 | 249828521B8EFA90007536A7 /* Images.xcassets in Resources */, 210 | ); 211 | runOnlyForDeploymentPostprocessing = 0; 212 | }; 213 | 249828581B8EFA90007536A7 /* Resources */ = { 214 | isa = PBXResourcesBuildPhase; 215 | buildActionMask = 2147483647; 216 | files = ( 217 | ); 218 | runOnlyForDeploymentPostprocessing = 0; 219 | }; 220 | /* End PBXResourcesBuildPhase section */ 221 | 222 | /* Begin PBXSourcesBuildPhase section */ 223 | 2498283D1B8EFA90007536A7 /* Sources */ = { 224 | isa = PBXSourcesBuildPhase; 225 | buildActionMask = 2147483647; 226 | files = ( 227 | 2498284D1B8EFA90007536A7 /* ViewController.m in Sources */, 228 | 2498284A1B8EFA90007536A7 /* AppDelegate.m in Sources */, 229 | 2498286C1B8EFACD007536A7 /* ANTagsView.m in Sources */, 230 | 249828471B8EFA90007536A7 /* main.m in Sources */, 231 | ); 232 | runOnlyForDeploymentPostprocessing = 0; 233 | }; 234 | 249828561B8EFA90007536A7 /* Sources */ = { 235 | isa = PBXSourcesBuildPhase; 236 | buildActionMask = 2147483647; 237 | files = ( 238 | 249828611B8EFA90007536A7 /* ANTagsViewTests.m in Sources */, 239 | ); 240 | runOnlyForDeploymentPostprocessing = 0; 241 | }; 242 | /* End PBXSourcesBuildPhase section */ 243 | 244 | /* Begin PBXTargetDependency section */ 245 | 2498285C1B8EFA90007536A7 /* PBXTargetDependency */ = { 246 | isa = PBXTargetDependency; 247 | target = 249828401B8EFA90007536A7 /* ANTagsView */; 248 | targetProxy = 2498285B1B8EFA90007536A7 /* PBXContainerItemProxy */; 249 | }; 250 | /* End PBXTargetDependency section */ 251 | 252 | /* Begin PBXVariantGroup section */ 253 | 2498284E1B8EFA90007536A7 /* Main.storyboard */ = { 254 | isa = PBXVariantGroup; 255 | children = ( 256 | 2498284F1B8EFA90007536A7 /* Base */, 257 | ); 258 | name = Main.storyboard; 259 | sourceTree = ""; 260 | }; 261 | 249828531B8EFA90007536A7 /* LaunchScreen.xib */ = { 262 | isa = PBXVariantGroup; 263 | children = ( 264 | 249828541B8EFA90007536A7 /* Base */, 265 | ); 266 | name = LaunchScreen.xib; 267 | sourceTree = ""; 268 | }; 269 | /* End PBXVariantGroup section */ 270 | 271 | /* Begin XCBuildConfiguration section */ 272 | 249828621B8EFA90007536A7 /* Debug */ = { 273 | isa = XCBuildConfiguration; 274 | buildSettings = { 275 | ALWAYS_SEARCH_USER_PATHS = NO; 276 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 277 | CLANG_CXX_LIBRARY = "libc++"; 278 | CLANG_ENABLE_MODULES = YES; 279 | CLANG_ENABLE_OBJC_ARC = YES; 280 | CLANG_WARN_BOOL_CONVERSION = YES; 281 | CLANG_WARN_CONSTANT_CONVERSION = YES; 282 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 283 | CLANG_WARN_EMPTY_BODY = YES; 284 | CLANG_WARN_ENUM_CONVERSION = YES; 285 | CLANG_WARN_INT_CONVERSION = YES; 286 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 287 | CLANG_WARN_UNREACHABLE_CODE = YES; 288 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 289 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 290 | COPY_PHASE_STRIP = NO; 291 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 292 | ENABLE_STRICT_OBJC_MSGSEND = YES; 293 | GCC_C_LANGUAGE_STANDARD = gnu99; 294 | GCC_DYNAMIC_NO_PIC = NO; 295 | GCC_NO_COMMON_BLOCKS = YES; 296 | GCC_OPTIMIZATION_LEVEL = 0; 297 | GCC_PREPROCESSOR_DEFINITIONS = ( 298 | "DEBUG=1", 299 | "$(inherited)", 300 | ); 301 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 302 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 303 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 304 | GCC_WARN_UNDECLARED_SELECTOR = YES; 305 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 306 | GCC_WARN_UNUSED_FUNCTION = YES; 307 | GCC_WARN_UNUSED_VARIABLE = YES; 308 | IPHONEOS_DEPLOYMENT_TARGET = 8.4; 309 | MTL_ENABLE_DEBUG_INFO = YES; 310 | ONLY_ACTIVE_ARCH = YES; 311 | SDKROOT = iphoneos; 312 | }; 313 | name = Debug; 314 | }; 315 | 249828631B8EFA90007536A7 /* Release */ = { 316 | isa = XCBuildConfiguration; 317 | buildSettings = { 318 | ALWAYS_SEARCH_USER_PATHS = NO; 319 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 320 | CLANG_CXX_LIBRARY = "libc++"; 321 | CLANG_ENABLE_MODULES = YES; 322 | CLANG_ENABLE_OBJC_ARC = YES; 323 | CLANG_WARN_BOOL_CONVERSION = YES; 324 | CLANG_WARN_CONSTANT_CONVERSION = YES; 325 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 326 | CLANG_WARN_EMPTY_BODY = YES; 327 | CLANG_WARN_ENUM_CONVERSION = YES; 328 | CLANG_WARN_INT_CONVERSION = YES; 329 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 330 | CLANG_WARN_UNREACHABLE_CODE = YES; 331 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 332 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 333 | COPY_PHASE_STRIP = NO; 334 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 335 | ENABLE_NS_ASSERTIONS = NO; 336 | ENABLE_STRICT_OBJC_MSGSEND = YES; 337 | GCC_C_LANGUAGE_STANDARD = gnu99; 338 | GCC_NO_COMMON_BLOCKS = YES; 339 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 340 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 341 | GCC_WARN_UNDECLARED_SELECTOR = YES; 342 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 343 | GCC_WARN_UNUSED_FUNCTION = YES; 344 | GCC_WARN_UNUSED_VARIABLE = YES; 345 | IPHONEOS_DEPLOYMENT_TARGET = 8.4; 346 | MTL_ENABLE_DEBUG_INFO = NO; 347 | SDKROOT = iphoneos; 348 | VALIDATE_PRODUCT = YES; 349 | }; 350 | name = Release; 351 | }; 352 | 249828651B8EFA90007536A7 /* Debug */ = { 353 | isa = XCBuildConfiguration; 354 | buildSettings = { 355 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 356 | INFOPLIST_FILE = ANTagsView/Info.plist; 357 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 358 | PRODUCT_NAME = "$(TARGET_NAME)"; 359 | }; 360 | name = Debug; 361 | }; 362 | 249828661B8EFA90007536A7 /* Release */ = { 363 | isa = XCBuildConfiguration; 364 | buildSettings = { 365 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 366 | INFOPLIST_FILE = ANTagsView/Info.plist; 367 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 368 | PRODUCT_NAME = "$(TARGET_NAME)"; 369 | }; 370 | name = Release; 371 | }; 372 | 249828681B8EFA90007536A7 /* Debug */ = { 373 | isa = XCBuildConfiguration; 374 | buildSettings = { 375 | BUNDLE_LOADER = "$(TEST_HOST)"; 376 | FRAMEWORK_SEARCH_PATHS = ( 377 | "$(SDKROOT)/Developer/Library/Frameworks", 378 | "$(inherited)", 379 | ); 380 | GCC_PREPROCESSOR_DEFINITIONS = ( 381 | "DEBUG=1", 382 | "$(inherited)", 383 | ); 384 | INFOPLIST_FILE = ANTagsViewTests/Info.plist; 385 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 386 | PRODUCT_NAME = "$(TARGET_NAME)"; 387 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ANTagsView.app/ANTagsView"; 388 | }; 389 | name = Debug; 390 | }; 391 | 249828691B8EFA90007536A7 /* Release */ = { 392 | isa = XCBuildConfiguration; 393 | buildSettings = { 394 | BUNDLE_LOADER = "$(TEST_HOST)"; 395 | FRAMEWORK_SEARCH_PATHS = ( 396 | "$(SDKROOT)/Developer/Library/Frameworks", 397 | "$(inherited)", 398 | ); 399 | INFOPLIST_FILE = ANTagsViewTests/Info.plist; 400 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 401 | PRODUCT_NAME = "$(TARGET_NAME)"; 402 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ANTagsView.app/ANTagsView"; 403 | }; 404 | name = Release; 405 | }; 406 | /* End XCBuildConfiguration section */ 407 | 408 | /* Begin XCConfigurationList section */ 409 | 2498283C1B8EFA90007536A7 /* Build configuration list for PBXProject "ANTagsView" */ = { 410 | isa = XCConfigurationList; 411 | buildConfigurations = ( 412 | 249828621B8EFA90007536A7 /* Debug */, 413 | 249828631B8EFA90007536A7 /* Release */, 414 | ); 415 | defaultConfigurationIsVisible = 0; 416 | defaultConfigurationName = Release; 417 | }; 418 | 249828641B8EFA90007536A7 /* Build configuration list for PBXNativeTarget "ANTagsView" */ = { 419 | isa = XCConfigurationList; 420 | buildConfigurations = ( 421 | 249828651B8EFA90007536A7 /* Debug */, 422 | 249828661B8EFA90007536A7 /* Release */, 423 | ); 424 | defaultConfigurationIsVisible = 0; 425 | }; 426 | 249828671B8EFA90007536A7 /* Build configuration list for PBXNativeTarget "ANTagsViewTests" */ = { 427 | isa = XCConfigurationList; 428 | buildConfigurations = ( 429 | 249828681B8EFA90007536A7 /* Debug */, 430 | 249828691B8EFA90007536A7 /* Release */, 431 | ); 432 | defaultConfigurationIsVisible = 0; 433 | }; 434 | /* End XCConfigurationList section */ 435 | }; 436 | rootObject = 249828391B8EFA90007536A7 /* Project object */; 437 | } 438 | -------------------------------------------------------------------------------- /ANTagsView.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ANTagsView.xcodeproj/project.xcworkspace/xcshareddata/ANTagsView.xccheckout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDESourceControlProjectFavoriteDictionaryKey 6 | 7 | IDESourceControlProjectIdentifier 8 | 2B9925E7-BDC0-4EFB-82E6-6F28D727AA36 9 | IDESourceControlProjectName 10 | ANTagsView 11 | IDESourceControlProjectOriginsDictionary 12 | 13 | 9685D54263B395257625A3D549FFCE576C53C024 14 | https://github.com/adnan-careaxiom/ANTagsView.git 15 | 16 | IDESourceControlProjectPath 17 | ANTagsView.xcodeproj 18 | IDESourceControlProjectRelativeInstallPathDictionary 19 | 20 | 9685D54263B395257625A3D549FFCE576C53C024 21 | ../.. 22 | 23 | IDESourceControlProjectURL 24 | https://github.com/adnan-careaxiom/ANTagsView.git 25 | IDESourceControlProjectVersion 26 | 111 27 | IDESourceControlProjectWCCIdentifier 28 | 9685D54263B395257625A3D549FFCE576C53C024 29 | IDESourceControlProjectWCConfigurations 30 | 31 | 32 | IDESourceControlRepositoryExtensionIdentifierKey 33 | public.vcs.git 34 | IDESourceControlWCCIdentifierKey 35 | 9685D54263B395257625A3D549FFCE576C53C024 36 | IDESourceControlWCCName 37 | ANTagsView 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /ANTagsView.xcodeproj/project.xcworkspace/xcuserdata/adnannasir.xcuserdatad/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | HasAskedToTakeAutomaticSnapshotBeforeSignificantChanges 6 | 7 | SnapshotAutomaticallyBeforeSignificantChanges 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ANTagsView.xcodeproj/xcuserdata/adnannasir.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /ANTagsView.xcodeproj/xcuserdata/adnannasir.xcuserdatad/xcschemes/ANTagsView.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 75 | 77 | 83 | 84 | 85 | 86 | 87 | 88 | 94 | 96 | 102 | 103 | 104 | 105 | 107 | 108 | 111 | 112 | 113 | -------------------------------------------------------------------------------- /ANTagsView.xcodeproj/xcuserdata/adnannasir.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | ANTagsView.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 249828401B8EFA90007536A7 16 | 17 | primary 18 | 19 | 20 | 249828591B8EFA90007536A7 21 | 22 | primary 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /ANTagsView/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // ANTagsView 4 | // 5 | // Created by Adnan Nasir on 27/08/2015. 6 | // Copyright (c) 2015 Inasa. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /ANTagsView/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // ANTagsView 4 | // 5 | // Created by Adnan Nasir on 27/08/2015. 6 | // Copyright (c) 2015 Inasa. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 19 | // Override point for customization after application launch. 20 | return YES; 21 | } 22 | 23 | - (void)applicationWillResignActive:(UIApplication *)application { 24 | // 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. 25 | // 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. 26 | } 27 | 28 | - (void)applicationDidEnterBackground:(UIApplication *)application { 29 | // 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. 30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 31 | } 32 | 33 | - (void)applicationWillEnterForeground:(UIApplication *)application { 34 | // 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. 35 | } 36 | 37 | - (void)applicationDidBecomeActive:(UIApplication *)application { 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 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /ANTagsView/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /ANTagsView/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /ANTagsView/CustomTagView/ANTagsView.h: -------------------------------------------------------------------------------- 1 | // 2 | // ANTagsView.h 3 | // ANTagsView 4 | // 5 | // Created by Adnan Nasir on 27/08/2015. 6 | 7 | // This code is distributed under the terms and conditions of the MIT license. 8 | 9 | // Copyright (c) 2015-2020 Adnan Nasir. All rights reserved. 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a copy 12 | // of this software and associated documentation files (the "Software"), to deal 13 | // in the Software without restriction, including without limitation the rights 14 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 15 | // copies of the Software, and to permit persons to whom the Software is 16 | // furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 26 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 27 | // THE SOFTWARE. 28 | 29 | #import 30 | 31 | @interface ANTagsView : UIView 32 | { 33 | int tagXPos; 34 | int tagYPos; 35 | int viewHeight; 36 | int viewWidth; 37 | int tagRadius; 38 | int maxTagSize; 39 | NSArray *tagsToDisplay; 40 | UIColor *tagBGColor; 41 | UIColor *tagTextColor; 42 | } 43 | 44 | -(instancetype) initWithTags:(NSArray *)tagsArray; 45 | -(instancetype) initWithTags:(NSArray *)tagsArray frame:(CGRect)frame; 46 | -(void) setTagCornerRadius:(int)radius; 47 | -(void) setTagBackgroundColor:(UIColor *)color; 48 | -(void) setTagTextColor:(UIColor *)color; 49 | -(void) setFrameWidth:(int)width; 50 | @end 51 | -------------------------------------------------------------------------------- /ANTagsView/CustomTagView/ANTagsView.m: -------------------------------------------------------------------------------- 1 | // 2 | // ANTagsView.m 3 | // ANTagsView 4 | // 5 | // Created by Adnan Nasir on 27/08/2015. 6 | // Copyright (c) 2015 Adnan Nasir. All rights reserved. 7 | // 8 | 9 | #import "ANTagsView.h" 10 | #define TAG_SPACE_HORIZONTAL 10 11 | #define TAG_SPACE_VERTICAL 5 12 | #define DEFAULT_VIEW_HEIGHT 44 13 | #define MAX_TAG_SIZE 300 14 | #define MIN_TAG_SIZE 40 15 | #define DEFAULT_VIEW_WIDTH 320 16 | #define DEFAULT_TAG_CORNER_RADIUS 10 17 | @implementation ANTagsView 18 | 19 | /* 20 | // Only override drawRect: if you perform custom drawing. 21 | // An empty implementation adversely affects performance during animation. 22 | - (void)drawRect:(CGRect)rect { 23 | // Drawing code 24 | } 25 | */ 26 | -(instancetype) initWithTags:(NSArray *)tagsArray 27 | { 28 | self = [super init]; 29 | if(self) 30 | { 31 | 32 | viewWidth = DEFAULT_VIEW_WIDTH; 33 | tagsToDisplay = tagsArray; 34 | maxTagSize = DEFAULT_VIEW_WIDTH - TAG_SPACE_HORIZONTAL; 35 | tagRadius = DEFAULT_TAG_CORNER_RADIUS; 36 | tagTextColor = [UIColor blueColor]; 37 | tagBGColor = [UIColor grayColor]; 38 | [self renderTagsOnView]; 39 | 40 | } 41 | return self; 42 | 43 | } 44 | -(instancetype) initWithTags:(NSArray *)tagsArray frame:(CGRect)frame 45 | { 46 | self = [super initWithFrame:frame]; 47 | if(self) 48 | { 49 | 50 | viewWidth = frame.size.width; 51 | tagsToDisplay = tagsArray; 52 | maxTagSize = DEFAULT_VIEW_WIDTH - TAG_SPACE_HORIZONTAL; 53 | tagRadius = DEFAULT_TAG_CORNER_RADIUS; 54 | tagTextColor = [UIColor blueColor]; 55 | tagBGColor = [UIColor grayColor]; 56 | [self renderTagsOnView]; 57 | 58 | } 59 | return self; 60 | } 61 | 62 | -(void) renderTagsOnView 63 | { 64 | [self removeAllTags]; 65 | 66 | tagXPos = TAG_SPACE_HORIZONTAL; 67 | tagYPos = TAG_SPACE_VERTICAL; 68 | viewHeight = DEFAULT_VIEW_HEIGHT; 69 | 70 | self.frame = CGRectMake(self.frame.origin.x, self.frame.origin.y, viewWidth, viewHeight); 71 | for (NSString *tag in tagsToDisplay) 72 | { 73 | [self addTagInView:tag]; 74 | } 75 | self.frame = CGRectMake(self.frame.origin.x, self.frame.origin.y+10, viewWidth, viewHeight+10); 76 | } 77 | -(void) setTagBackgroundColor:(UIColor *)color 78 | { 79 | tagBGColor = color; 80 | for (UIView *view in self.subviews) 81 | { 82 | if([view isKindOfClass:[UILabel class]]) 83 | { 84 | UILabel *tag = (UILabel *)view; 85 | tag.backgroundColor = tagBGColor; 86 | } 87 | } 88 | } 89 | 90 | -(void) removeAllTags 91 | { 92 | 93 | for (UIView *view in self.subviews) 94 | { 95 | [view removeFromSuperview]; 96 | } 97 | 98 | } 99 | -(void) setFrameWidth:(int)width; 100 | { 101 | viewWidth = width; 102 | maxTagSize = viewWidth - TAG_SPACE_HORIZONTAL; 103 | [self renderTagsOnView]; 104 | 105 | } 106 | 107 | -(void) setTagTextColor:(UIColor *)color 108 | { 109 | tagTextColor = color; 110 | for (UIView *view in self.subviews) 111 | { 112 | if([view isKindOfClass:[UILabel class]]) 113 | { 114 | UILabel *tag = (UILabel *)view; 115 | tag.textColor = tagTextColor; 116 | } 117 | } 118 | } 119 | 120 | -(void) setTagCornerRadius:(int)radius 121 | { 122 | tagRadius = radius; 123 | for (UIView *view in self.subviews) 124 | { 125 | if([view isKindOfClass:[UILabel class]]) 126 | { 127 | UILabel *tag = (UILabel *)view; 128 | tag.layer.masksToBounds = YES; 129 | tag.layer.cornerRadius = tagRadius; 130 | } 131 | } 132 | } 133 | -(void) addTagInView:(NSString *)tag 134 | { 135 | UILabel *tagLabel = [[UILabel alloc]init]; 136 | UIFont *tagFont = [UIFont fontWithName:@"Arial" size:26]; 137 | CGSize maximumLabelSize = CGSizeMake( maxTagSize, CGRectGetWidth(self.bounds) ); 138 | 139 | CGSize expectedLabelSize = [tag sizeWithFont:tagFont 140 | constrainedToSize:maximumLabelSize 141 | lineBreakMode:[tagLabel lineBreakMode]]; 142 | if(expectedLabelSize.width < MIN_TAG_SIZE) 143 | expectedLabelSize.width = MIN_TAG_SIZE; 144 | NSLog(@"%f",expectedLabelSize.width); 145 | 146 | if((tagXPos + expectedLabelSize.width) > self.frame.size.width) 147 | { 148 | tagXPos = TAG_SPACE_HORIZONTAL; 149 | tagYPos += expectedLabelSize.height + TAG_SPACE_VERTICAL; 150 | viewHeight += expectedLabelSize.height + TAG_SPACE_HORIZONTAL; 151 | } 152 | 153 | tagLabel.frame = CGRectMake(tagXPos, tagYPos, expectedLabelSize.width, expectedLabelSize.height); 154 | tagLabel.text = tag; 155 | tagLabel.textAlignment = NSTextAlignmentCenter; 156 | tagLabel.backgroundColor = tagBGColor; 157 | tagLabel.textColor = tagTextColor; 158 | tagLabel.layer.masksToBounds = YES; 159 | tagLabel.layer.cornerRadius = tagRadius; 160 | [self addSubview:tagLabel]; 161 | 162 | tagXPos += tagLabel.frame.size.width + TAG_SPACE_HORIZONTAL; 163 | 164 | 165 | 166 | 167 | 168 | 169 | } 170 | 171 | 172 | 173 | @end 174 | -------------------------------------------------------------------------------- /ANTagsView/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" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /ANTagsView/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | inasa.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /ANTagsView/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // ANTagsView 4 | // 5 | // Created by Adnan Nasir on 27/08/2015. 6 | // Copyright (c) 2015 Inasa. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "ANTagsView.h" 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /ANTagsView/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // ANTagsView 4 | // 5 | // Created by Adnan Nasir on 27/08/2015. 6 | // Copyright (c) 2015 Inasa. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | 11 | @interface ViewController () 12 | 13 | @end 14 | 15 | @implementation ViewController 16 | 17 | - (void)viewDidLoad { 18 | [super viewDidLoad]; 19 | CGRect screenRect = [[UIScreen mainScreen] bounds]; 20 | // Do any additional setup after loading the view, typically from a nib. 21 | NSArray *tagsToDisplay = [[NSArray alloc] initWithObjects:@"fun",@"manicure", @"relax", @"cocktails", @"relax", @"cocktails", @"cocktails",@"relax", @"cocktails", @"cocktails", nil]; 22 | ANTagsView *tagsView = [[ANTagsView alloc] initWithTags:tagsToDisplay frame:CGRectMake(10, 130, screenRect.size.width - 10, 10)]; 23 | [tagsView setTagCornerRadius:12]; 24 | [tagsView setTagBackgroundColor:[UIColor grayColor]]; 25 | [tagsView setTagTextColor:[UIColor whiteColor]]; 26 | [tagsView setBackgroundColor:[UIColor whiteColor]]; 27 | [tagsView setFrameWidth:300]; 28 | [self.view addSubview:tagsView]; 29 | } 30 | 31 | - (void)didReceiveMemoryWarning { 32 | [super didReceiveMemoryWarning]; 33 | // Dispose of any resources that can be recreated. 34 | } 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /ANTagsView/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // ANTagsView 4 | // 5 | // Created by Adnan Nasir on 27/08/2015. 6 | // Copyright (c) 2015 Inasa. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /ANTagsView/test/readme: -------------------------------------------------------------------------------- 1 | readme 2 | -------------------------------------------------------------------------------- /ANTagsViewTests/ANTagsViewTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // ANTagsViewTests.m 3 | // ANTagsViewTests 4 | // 5 | // Created by Adnan Nasir on 27/08/2015. 6 | // Copyright (c) 2015 Inasa. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface ANTagsViewTests : XCTestCase 13 | 14 | @end 15 | 16 | @implementation ANTagsViewTests 17 | 18 | - (void)setUp { 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 | // Put teardown code here. This method is called after the invocation of each test method in the class. 25 | [super tearDown]; 26 | } 27 | 28 | - (void)testExample { 29 | // This is an example of a functional test case. 30 | XCTAssert(YES, @"Pass"); 31 | } 32 | 33 | - (void)testPerformanceExample { 34 | // This is an example of a performance test case. 35 | [self measureBlock:^{ 36 | // Put the code you want to measure the time of here. 37 | }]; 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /ANTagsViewTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | inasa.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Adnan Nasir 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ADTagsView - Customizable View for Hashtags 2 | 3 | Basic useful feature list: 4 | 5 | * Create dynamic height View for Hash tags 6 | * Customizeable look and feel for Tags. 7 | 8 | ## Screenshot 9 | ![Example](example1.png "Example View") 10 | ![Example](example2.png "Example View") 11 | 12 | ## Usage 13 | here's some example code! :+1: 14 | 15 | ```objective-c 16 | ANTagsView *tagsView = [[ANTagsView alloc] initWithTags:tagsToDisplay]; 17 | [tagsView setTagCornerRadius:12]; 18 | [tagsView setTagBackgroundColor:[UIColor blueColor]]; 19 | [tagsView setTagTextColor:[UIColor whiteColor]]; 20 | [tagsView setBackgroundColor:[UIColor whiteColor]]; 21 | [tagsView setFrameWidth:300]; 22 | ``` 23 | -------------------------------------------------------------------------------- /example1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adnan-nasir/ANTagsView/0530376bfdc02d872ccd2e20c7b10fc6a6bc1afe/example1.png -------------------------------------------------------------------------------- /example2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adnan-nasir/ANTagsView/0530376bfdc02d872ccd2e20c7b10fc6a6bc1afe/example2.png --------------------------------------------------------------------------------