├── LICENSE ├── LabelsMatrixDemo.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ │ └── neeks.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── xcuserdata │ └── neeks.xcuserdatad │ └── xcschemes │ ├── LabelsMatrixDemo.xcscheme │ └── xcschememanagement.plist ├── LabelsMatrixDemo ├── Images.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ └── LaunchImage.launchimage │ │ └── Contents.json ├── LabelsMatrixDemo-Info.plist ├── LabelsMatrixDemo-Prefix.pch ├── NALAppDelegate.h ├── NALAppDelegate.m ├── NALLabelsMatrix │ ├── NALLabelsMatrix.h │ └── NALLabelsMatrix.m ├── en.lproj │ └── InfoPlist.strings └── main.m ├── LabelsMatrixDemoTests ├── LabelsMatrixDemoTests-Info.plist ├── LabelsMatrixDemoTests.m └── en.lproj │ └── InfoPlist.strings ├── README.md └── preview.png /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 neeks 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | 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, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /LabelsMatrixDemo.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | B904738518AB7A02004DCDF8 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B904738418AB7A02004DCDF8 /* Foundation.framework */; }; 11 | B904738718AB7A02004DCDF8 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B904738618AB7A02004DCDF8 /* CoreGraphics.framework */; }; 12 | B904738918AB7A02004DCDF8 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B904738818AB7A02004DCDF8 /* UIKit.framework */; }; 13 | B904738F18AB7A02004DCDF8 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = B904738D18AB7A02004DCDF8 /* InfoPlist.strings */; }; 14 | B904739118AB7A02004DCDF8 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = B904739018AB7A02004DCDF8 /* main.m */; }; 15 | B904739518AB7A02004DCDF8 /* NALAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = B904739418AB7A02004DCDF8 /* NALAppDelegate.m */; }; 16 | B904739718AB7A02004DCDF8 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = B904739618AB7A02004DCDF8 /* Images.xcassets */; }; 17 | B904739E18AB7A02004DCDF8 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B904739D18AB7A02004DCDF8 /* XCTest.framework */; }; 18 | B904739F18AB7A02004DCDF8 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B904738418AB7A02004DCDF8 /* Foundation.framework */; }; 19 | B90473A018AB7A02004DCDF8 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B904738818AB7A02004DCDF8 /* UIKit.framework */; }; 20 | B90473A818AB7A02004DCDF8 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = B90473A618AB7A02004DCDF8 /* InfoPlist.strings */; }; 21 | B90473AA18AB7A02004DCDF8 /* LabelsMatrixDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = B90473A918AB7A02004DCDF8 /* LabelsMatrixDemoTests.m */; }; 22 | B90473B618AB7A5A004DCDF8 /* NALLabelsMatrix.m in Sources */ = {isa = PBXBuildFile; fileRef = B90473B518AB7A5A004DCDF8 /* NALLabelsMatrix.m */; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXContainerItemProxy section */ 26 | B90473A118AB7A02004DCDF8 /* PBXContainerItemProxy */ = { 27 | isa = PBXContainerItemProxy; 28 | containerPortal = B904737918AB7A01004DCDF8 /* Project object */; 29 | proxyType = 1; 30 | remoteGlobalIDString = B904738018AB7A02004DCDF8; 31 | remoteInfo = LabelsMatrixDemo; 32 | }; 33 | /* End PBXContainerItemProxy section */ 34 | 35 | /* Begin PBXFileReference section */ 36 | B904738118AB7A02004DCDF8 /* LabelsMatrixDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = LabelsMatrixDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 37 | B904738418AB7A02004DCDF8 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 38 | B904738618AB7A02004DCDF8 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 39 | B904738818AB7A02004DCDF8 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 40 | B904738C18AB7A02004DCDF8 /* LabelsMatrixDemo-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "LabelsMatrixDemo-Info.plist"; sourceTree = ""; }; 41 | B904738E18AB7A02004DCDF8 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 42 | B904739018AB7A02004DCDF8 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 43 | B904739218AB7A02004DCDF8 /* LabelsMatrixDemo-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "LabelsMatrixDemo-Prefix.pch"; sourceTree = ""; }; 44 | B904739318AB7A02004DCDF8 /* NALAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NALAppDelegate.h; sourceTree = ""; }; 45 | B904739418AB7A02004DCDF8 /* NALAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = NALAppDelegate.m; sourceTree = ""; }; 46 | B904739618AB7A02004DCDF8 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 47 | B904739C18AB7A02004DCDF8 /* LabelsMatrixDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = LabelsMatrixDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 48 | B904739D18AB7A02004DCDF8 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; 49 | B90473A518AB7A02004DCDF8 /* LabelsMatrixDemoTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "LabelsMatrixDemoTests-Info.plist"; sourceTree = ""; }; 50 | B90473A718AB7A02004DCDF8 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 51 | B90473A918AB7A02004DCDF8 /* LabelsMatrixDemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LabelsMatrixDemoTests.m; sourceTree = ""; }; 52 | B90473B418AB7A5A004DCDF8 /* NALLabelsMatrix.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NALLabelsMatrix.h; sourceTree = ""; }; 53 | B90473B518AB7A5A004DCDF8 /* NALLabelsMatrix.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NALLabelsMatrix.m; sourceTree = ""; }; 54 | /* End PBXFileReference section */ 55 | 56 | /* Begin PBXFrameworksBuildPhase section */ 57 | B904737E18AB7A02004DCDF8 /* Frameworks */ = { 58 | isa = PBXFrameworksBuildPhase; 59 | buildActionMask = 2147483647; 60 | files = ( 61 | B904738718AB7A02004DCDF8 /* CoreGraphics.framework in Frameworks */, 62 | B904738918AB7A02004DCDF8 /* UIKit.framework in Frameworks */, 63 | B904738518AB7A02004DCDF8 /* Foundation.framework in Frameworks */, 64 | ); 65 | runOnlyForDeploymentPostprocessing = 0; 66 | }; 67 | B904739918AB7A02004DCDF8 /* Frameworks */ = { 68 | isa = PBXFrameworksBuildPhase; 69 | buildActionMask = 2147483647; 70 | files = ( 71 | B904739E18AB7A02004DCDF8 /* XCTest.framework in Frameworks */, 72 | B90473A018AB7A02004DCDF8 /* UIKit.framework in Frameworks */, 73 | B904739F18AB7A02004DCDF8 /* Foundation.framework in Frameworks */, 74 | ); 75 | runOnlyForDeploymentPostprocessing = 0; 76 | }; 77 | /* End PBXFrameworksBuildPhase section */ 78 | 79 | /* Begin PBXGroup section */ 80 | B904737818AB7A01004DCDF8 = { 81 | isa = PBXGroup; 82 | children = ( 83 | B90473B318AB7A5A004DCDF8 /* NALLabelsMatrix */, 84 | B904738A18AB7A02004DCDF8 /* LabelsMatrixDemo */, 85 | B90473A318AB7A02004DCDF8 /* LabelsMatrixDemoTests */, 86 | B904738318AB7A02004DCDF8 /* Frameworks */, 87 | B904738218AB7A02004DCDF8 /* Products */, 88 | ); 89 | sourceTree = ""; 90 | }; 91 | B904738218AB7A02004DCDF8 /* Products */ = { 92 | isa = PBXGroup; 93 | children = ( 94 | B904738118AB7A02004DCDF8 /* LabelsMatrixDemo.app */, 95 | B904739C18AB7A02004DCDF8 /* LabelsMatrixDemoTests.xctest */, 96 | ); 97 | name = Products; 98 | sourceTree = ""; 99 | }; 100 | B904738318AB7A02004DCDF8 /* Frameworks */ = { 101 | isa = PBXGroup; 102 | children = ( 103 | B904738418AB7A02004DCDF8 /* Foundation.framework */, 104 | B904738618AB7A02004DCDF8 /* CoreGraphics.framework */, 105 | B904738818AB7A02004DCDF8 /* UIKit.framework */, 106 | B904739D18AB7A02004DCDF8 /* XCTest.framework */, 107 | ); 108 | name = Frameworks; 109 | sourceTree = ""; 110 | }; 111 | B904738A18AB7A02004DCDF8 /* LabelsMatrixDemo */ = { 112 | isa = PBXGroup; 113 | children = ( 114 | B904739318AB7A02004DCDF8 /* NALAppDelegate.h */, 115 | B904739418AB7A02004DCDF8 /* NALAppDelegate.m */, 116 | B904739618AB7A02004DCDF8 /* Images.xcassets */, 117 | B904738B18AB7A02004DCDF8 /* Supporting Files */, 118 | ); 119 | path = LabelsMatrixDemo; 120 | sourceTree = ""; 121 | }; 122 | B904738B18AB7A02004DCDF8 /* Supporting Files */ = { 123 | isa = PBXGroup; 124 | children = ( 125 | B904738C18AB7A02004DCDF8 /* LabelsMatrixDemo-Info.plist */, 126 | B904738D18AB7A02004DCDF8 /* InfoPlist.strings */, 127 | B904739018AB7A02004DCDF8 /* main.m */, 128 | B904739218AB7A02004DCDF8 /* LabelsMatrixDemo-Prefix.pch */, 129 | ); 130 | name = "Supporting Files"; 131 | sourceTree = ""; 132 | }; 133 | B90473A318AB7A02004DCDF8 /* LabelsMatrixDemoTests */ = { 134 | isa = PBXGroup; 135 | children = ( 136 | B90473A918AB7A02004DCDF8 /* LabelsMatrixDemoTests.m */, 137 | B90473A418AB7A02004DCDF8 /* Supporting Files */, 138 | ); 139 | path = LabelsMatrixDemoTests; 140 | sourceTree = ""; 141 | }; 142 | B90473A418AB7A02004DCDF8 /* Supporting Files */ = { 143 | isa = PBXGroup; 144 | children = ( 145 | B90473A518AB7A02004DCDF8 /* LabelsMatrixDemoTests-Info.plist */, 146 | B90473A618AB7A02004DCDF8 /* InfoPlist.strings */, 147 | ); 148 | name = "Supporting Files"; 149 | sourceTree = ""; 150 | }; 151 | B90473B318AB7A5A004DCDF8 /* NALLabelsMatrix */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | B90473B418AB7A5A004DCDF8 /* NALLabelsMatrix.h */, 155 | B90473B518AB7A5A004DCDF8 /* NALLabelsMatrix.m */, 156 | ); 157 | name = NALLabelsMatrix; 158 | path = LabelsMatrixDemo/NALLabelsMatrix; 159 | sourceTree = ""; 160 | }; 161 | /* End PBXGroup section */ 162 | 163 | /* Begin PBXNativeTarget section */ 164 | B904738018AB7A02004DCDF8 /* LabelsMatrixDemo */ = { 165 | isa = PBXNativeTarget; 166 | buildConfigurationList = B90473AD18AB7A02004DCDF8 /* Build configuration list for PBXNativeTarget "LabelsMatrixDemo" */; 167 | buildPhases = ( 168 | B904737D18AB7A02004DCDF8 /* Sources */, 169 | B904737E18AB7A02004DCDF8 /* Frameworks */, 170 | B904737F18AB7A02004DCDF8 /* Resources */, 171 | ); 172 | buildRules = ( 173 | ); 174 | dependencies = ( 175 | ); 176 | name = LabelsMatrixDemo; 177 | productName = LabelsMatrixDemo; 178 | productReference = B904738118AB7A02004DCDF8 /* LabelsMatrixDemo.app */; 179 | productType = "com.apple.product-type.application"; 180 | }; 181 | B904739B18AB7A02004DCDF8 /* LabelsMatrixDemoTests */ = { 182 | isa = PBXNativeTarget; 183 | buildConfigurationList = B90473B018AB7A02004DCDF8 /* Build configuration list for PBXNativeTarget "LabelsMatrixDemoTests" */; 184 | buildPhases = ( 185 | B904739818AB7A02004DCDF8 /* Sources */, 186 | B904739918AB7A02004DCDF8 /* Frameworks */, 187 | B904739A18AB7A02004DCDF8 /* Resources */, 188 | ); 189 | buildRules = ( 190 | ); 191 | dependencies = ( 192 | B90473A218AB7A02004DCDF8 /* PBXTargetDependency */, 193 | ); 194 | name = LabelsMatrixDemoTests; 195 | productName = LabelsMatrixDemoTests; 196 | productReference = B904739C18AB7A02004DCDF8 /* LabelsMatrixDemoTests.xctest */; 197 | productType = "com.apple.product-type.bundle.unit-test"; 198 | }; 199 | /* End PBXNativeTarget section */ 200 | 201 | /* Begin PBXProject section */ 202 | B904737918AB7A01004DCDF8 /* Project object */ = { 203 | isa = PBXProject; 204 | attributes = { 205 | CLASSPREFIX = NAL; 206 | LastUpgradeCheck = 0500; 207 | ORGANIZATIONNAME = newagelingo; 208 | TargetAttributes = { 209 | B904739B18AB7A02004DCDF8 = { 210 | TestTargetID = B904738018AB7A02004DCDF8; 211 | }; 212 | }; 213 | }; 214 | buildConfigurationList = B904737C18AB7A02004DCDF8 /* Build configuration list for PBXProject "LabelsMatrixDemo" */; 215 | compatibilityVersion = "Xcode 3.2"; 216 | developmentRegion = English; 217 | hasScannedForEncodings = 0; 218 | knownRegions = ( 219 | en, 220 | ); 221 | mainGroup = B904737818AB7A01004DCDF8; 222 | productRefGroup = B904738218AB7A02004DCDF8 /* Products */; 223 | projectDirPath = ""; 224 | projectRoot = ""; 225 | targets = ( 226 | B904738018AB7A02004DCDF8 /* LabelsMatrixDemo */, 227 | B904739B18AB7A02004DCDF8 /* LabelsMatrixDemoTests */, 228 | ); 229 | }; 230 | /* End PBXProject section */ 231 | 232 | /* Begin PBXResourcesBuildPhase section */ 233 | B904737F18AB7A02004DCDF8 /* Resources */ = { 234 | isa = PBXResourcesBuildPhase; 235 | buildActionMask = 2147483647; 236 | files = ( 237 | B904738F18AB7A02004DCDF8 /* InfoPlist.strings in Resources */, 238 | B904739718AB7A02004DCDF8 /* Images.xcassets in Resources */, 239 | ); 240 | runOnlyForDeploymentPostprocessing = 0; 241 | }; 242 | B904739A18AB7A02004DCDF8 /* Resources */ = { 243 | isa = PBXResourcesBuildPhase; 244 | buildActionMask = 2147483647; 245 | files = ( 246 | B90473A818AB7A02004DCDF8 /* InfoPlist.strings in Resources */, 247 | ); 248 | runOnlyForDeploymentPostprocessing = 0; 249 | }; 250 | /* End PBXResourcesBuildPhase section */ 251 | 252 | /* Begin PBXSourcesBuildPhase section */ 253 | B904737D18AB7A02004DCDF8 /* Sources */ = { 254 | isa = PBXSourcesBuildPhase; 255 | buildActionMask = 2147483647; 256 | files = ( 257 | B904739518AB7A02004DCDF8 /* NALAppDelegate.m in Sources */, 258 | B90473B618AB7A5A004DCDF8 /* NALLabelsMatrix.m in Sources */, 259 | B904739118AB7A02004DCDF8 /* main.m in Sources */, 260 | ); 261 | runOnlyForDeploymentPostprocessing = 0; 262 | }; 263 | B904739818AB7A02004DCDF8 /* Sources */ = { 264 | isa = PBXSourcesBuildPhase; 265 | buildActionMask = 2147483647; 266 | files = ( 267 | B90473AA18AB7A02004DCDF8 /* LabelsMatrixDemoTests.m in Sources */, 268 | ); 269 | runOnlyForDeploymentPostprocessing = 0; 270 | }; 271 | /* End PBXSourcesBuildPhase section */ 272 | 273 | /* Begin PBXTargetDependency section */ 274 | B90473A218AB7A02004DCDF8 /* PBXTargetDependency */ = { 275 | isa = PBXTargetDependency; 276 | target = B904738018AB7A02004DCDF8 /* LabelsMatrixDemo */; 277 | targetProxy = B90473A118AB7A02004DCDF8 /* PBXContainerItemProxy */; 278 | }; 279 | /* End PBXTargetDependency section */ 280 | 281 | /* Begin PBXVariantGroup section */ 282 | B904738D18AB7A02004DCDF8 /* InfoPlist.strings */ = { 283 | isa = PBXVariantGroup; 284 | children = ( 285 | B904738E18AB7A02004DCDF8 /* en */, 286 | ); 287 | name = InfoPlist.strings; 288 | sourceTree = ""; 289 | }; 290 | B90473A618AB7A02004DCDF8 /* InfoPlist.strings */ = { 291 | isa = PBXVariantGroup; 292 | children = ( 293 | B90473A718AB7A02004DCDF8 /* en */, 294 | ); 295 | name = InfoPlist.strings; 296 | sourceTree = ""; 297 | }; 298 | /* End PBXVariantGroup section */ 299 | 300 | /* Begin XCBuildConfiguration section */ 301 | B90473AB18AB7A02004DCDF8 /* Debug */ = { 302 | isa = XCBuildConfiguration; 303 | buildSettings = { 304 | ALWAYS_SEARCH_USER_PATHS = NO; 305 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; 306 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 307 | CLANG_CXX_LIBRARY = "libc++"; 308 | CLANG_ENABLE_MODULES = YES; 309 | CLANG_ENABLE_OBJC_ARC = YES; 310 | CLANG_WARN_BOOL_CONVERSION = YES; 311 | CLANG_WARN_CONSTANT_CONVERSION = YES; 312 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 313 | CLANG_WARN_EMPTY_BODY = YES; 314 | CLANG_WARN_ENUM_CONVERSION = YES; 315 | CLANG_WARN_INT_CONVERSION = YES; 316 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 317 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 318 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 319 | COPY_PHASE_STRIP = NO; 320 | GCC_C_LANGUAGE_STANDARD = gnu99; 321 | GCC_DYNAMIC_NO_PIC = NO; 322 | GCC_OPTIMIZATION_LEVEL = 0; 323 | GCC_PREPROCESSOR_DEFINITIONS = ( 324 | "DEBUG=1", 325 | "$(inherited)", 326 | ); 327 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 328 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 329 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 330 | GCC_WARN_UNDECLARED_SELECTOR = YES; 331 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 332 | GCC_WARN_UNUSED_FUNCTION = YES; 333 | GCC_WARN_UNUSED_VARIABLE = YES; 334 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 335 | ONLY_ACTIVE_ARCH = YES; 336 | SDKROOT = iphoneos; 337 | TARGETED_DEVICE_FAMILY = "1,2"; 338 | }; 339 | name = Debug; 340 | }; 341 | B90473AC18AB7A02004DCDF8 /* Release */ = { 342 | isa = XCBuildConfiguration; 343 | buildSettings = { 344 | ALWAYS_SEARCH_USER_PATHS = NO; 345 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; 346 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 347 | CLANG_CXX_LIBRARY = "libc++"; 348 | CLANG_ENABLE_MODULES = YES; 349 | CLANG_ENABLE_OBJC_ARC = YES; 350 | CLANG_WARN_BOOL_CONVERSION = YES; 351 | CLANG_WARN_CONSTANT_CONVERSION = YES; 352 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 353 | CLANG_WARN_EMPTY_BODY = YES; 354 | CLANG_WARN_ENUM_CONVERSION = YES; 355 | CLANG_WARN_INT_CONVERSION = YES; 356 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 357 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 358 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 359 | COPY_PHASE_STRIP = YES; 360 | ENABLE_NS_ASSERTIONS = NO; 361 | GCC_C_LANGUAGE_STANDARD = gnu99; 362 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 363 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 364 | GCC_WARN_UNDECLARED_SELECTOR = YES; 365 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 366 | GCC_WARN_UNUSED_FUNCTION = YES; 367 | GCC_WARN_UNUSED_VARIABLE = YES; 368 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 369 | SDKROOT = iphoneos; 370 | TARGETED_DEVICE_FAMILY = "1,2"; 371 | VALIDATE_PRODUCT = YES; 372 | }; 373 | name = Release; 374 | }; 375 | B90473AE18AB7A02004DCDF8 /* Debug */ = { 376 | isa = XCBuildConfiguration; 377 | buildSettings = { 378 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 379 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 380 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 381 | GCC_PREFIX_HEADER = "LabelsMatrixDemo/LabelsMatrixDemo-Prefix.pch"; 382 | INFOPLIST_FILE = "LabelsMatrixDemo/LabelsMatrixDemo-Info.plist"; 383 | PRODUCT_NAME = "$(TARGET_NAME)"; 384 | WRAPPER_EXTENSION = app; 385 | }; 386 | name = Debug; 387 | }; 388 | B90473AF18AB7A02004DCDF8 /* Release */ = { 389 | isa = XCBuildConfiguration; 390 | buildSettings = { 391 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 392 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 393 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 394 | GCC_PREFIX_HEADER = "LabelsMatrixDemo/LabelsMatrixDemo-Prefix.pch"; 395 | INFOPLIST_FILE = "LabelsMatrixDemo/LabelsMatrixDemo-Info.plist"; 396 | PRODUCT_NAME = "$(TARGET_NAME)"; 397 | WRAPPER_EXTENSION = app; 398 | }; 399 | name = Release; 400 | }; 401 | B90473B118AB7A02004DCDF8 /* Debug */ = { 402 | isa = XCBuildConfiguration; 403 | buildSettings = { 404 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; 405 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/LabelsMatrixDemo.app/LabelsMatrixDemo"; 406 | FRAMEWORK_SEARCH_PATHS = ( 407 | "$(SDKROOT)/Developer/Library/Frameworks", 408 | "$(inherited)", 409 | "$(DEVELOPER_FRAMEWORKS_DIR)", 410 | ); 411 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 412 | GCC_PREFIX_HEADER = "LabelsMatrixDemo/LabelsMatrixDemo-Prefix.pch"; 413 | GCC_PREPROCESSOR_DEFINITIONS = ( 414 | "DEBUG=1", 415 | "$(inherited)", 416 | ); 417 | INFOPLIST_FILE = "LabelsMatrixDemoTests/LabelsMatrixDemoTests-Info.plist"; 418 | PRODUCT_NAME = "$(TARGET_NAME)"; 419 | TEST_HOST = "$(BUNDLE_LOADER)"; 420 | WRAPPER_EXTENSION = xctest; 421 | }; 422 | name = Debug; 423 | }; 424 | B90473B218AB7A02004DCDF8 /* Release */ = { 425 | isa = XCBuildConfiguration; 426 | buildSettings = { 427 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; 428 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/LabelsMatrixDemo.app/LabelsMatrixDemo"; 429 | FRAMEWORK_SEARCH_PATHS = ( 430 | "$(SDKROOT)/Developer/Library/Frameworks", 431 | "$(inherited)", 432 | "$(DEVELOPER_FRAMEWORKS_DIR)", 433 | ); 434 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 435 | GCC_PREFIX_HEADER = "LabelsMatrixDemo/LabelsMatrixDemo-Prefix.pch"; 436 | INFOPLIST_FILE = "LabelsMatrixDemoTests/LabelsMatrixDemoTests-Info.plist"; 437 | PRODUCT_NAME = "$(TARGET_NAME)"; 438 | TEST_HOST = "$(BUNDLE_LOADER)"; 439 | WRAPPER_EXTENSION = xctest; 440 | }; 441 | name = Release; 442 | }; 443 | /* End XCBuildConfiguration section */ 444 | 445 | /* Begin XCConfigurationList section */ 446 | B904737C18AB7A02004DCDF8 /* Build configuration list for PBXProject "LabelsMatrixDemo" */ = { 447 | isa = XCConfigurationList; 448 | buildConfigurations = ( 449 | B90473AB18AB7A02004DCDF8 /* Debug */, 450 | B90473AC18AB7A02004DCDF8 /* Release */, 451 | ); 452 | defaultConfigurationIsVisible = 0; 453 | defaultConfigurationName = Release; 454 | }; 455 | B90473AD18AB7A02004DCDF8 /* Build configuration list for PBXNativeTarget "LabelsMatrixDemo" */ = { 456 | isa = XCConfigurationList; 457 | buildConfigurations = ( 458 | B90473AE18AB7A02004DCDF8 /* Debug */, 459 | B90473AF18AB7A02004DCDF8 /* Release */, 460 | ); 461 | defaultConfigurationIsVisible = 0; 462 | }; 463 | B90473B018AB7A02004DCDF8 /* Build configuration list for PBXNativeTarget "LabelsMatrixDemoTests" */ = { 464 | isa = XCConfigurationList; 465 | buildConfigurations = ( 466 | B90473B118AB7A02004DCDF8 /* Debug */, 467 | B90473B218AB7A02004DCDF8 /* Release */, 468 | ); 469 | defaultConfigurationIsVisible = 0; 470 | }; 471 | /* End XCConfigurationList section */ 472 | }; 473 | rootObject = B904737918AB7A01004DCDF8 /* Project object */; 474 | } 475 | -------------------------------------------------------------------------------- /LabelsMatrixDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /LabelsMatrixDemo.xcodeproj/project.xcworkspace/xcuserdata/neeks.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/neeks/ios-labels-matrix-view/b63e75cf378f37c22c9bb9d4cc69cdd82c479210/LabelsMatrixDemo.xcodeproj/project.xcworkspace/xcuserdata/neeks.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /LabelsMatrixDemo.xcodeproj/xcuserdata/neeks.xcuserdatad/xcschemes/LabelsMatrixDemo.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 | -------------------------------------------------------------------------------- /LabelsMatrixDemo.xcodeproj/xcuserdata/neeks.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | LabelsMatrixDemo.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | B904738018AB7A02004DCDF8 16 | 17 | primary 18 | 19 | 20 | B904739B18AB7A02004DCDF8 21 | 22 | primary 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /LabelsMatrixDemo/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 | "idiom" : "ipad", 20 | "size" : "29x29", 21 | "scale" : "1x" 22 | }, 23 | { 24 | "idiom" : "ipad", 25 | "size" : "29x29", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "ipad", 30 | "size" : "40x40", 31 | "scale" : "1x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "40x40", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "76x76", 41 | "scale" : "1x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "76x76", 46 | "scale" : "2x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } -------------------------------------------------------------------------------- /LabelsMatrixDemo/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 | "orientation" : "portrait", 20 | "idiom" : "ipad", 21 | "extent" : "full-screen", 22 | "minimum-system-version" : "7.0", 23 | "scale" : "1x" 24 | }, 25 | { 26 | "orientation" : "landscape", 27 | "idiom" : "ipad", 28 | "extent" : "full-screen", 29 | "minimum-system-version" : "7.0", 30 | "scale" : "1x" 31 | }, 32 | { 33 | "orientation" : "portrait", 34 | "idiom" : "ipad", 35 | "extent" : "full-screen", 36 | "minimum-system-version" : "7.0", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "orientation" : "landscape", 41 | "idiom" : "ipad", 42 | "extent" : "full-screen", 43 | "minimum-system-version" : "7.0", 44 | "scale" : "2x" 45 | } 46 | ], 47 | "info" : { 48 | "version" : 1, 49 | "author" : "xcode" 50 | } 51 | } -------------------------------------------------------------------------------- /LabelsMatrixDemo/LabelsMatrixDemo-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | com.newagelingo.${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 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /LabelsMatrixDemo/LabelsMatrixDemo-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_3_0 10 | #warning "This project uses features only available in iOS SDK 3.0 and later." 11 | #endif 12 | 13 | #ifdef __OBJC__ 14 | #import 15 | #import 16 | #endif 17 | -------------------------------------------------------------------------------- /LabelsMatrixDemo/NALAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // NALAppDelegate.h 3 | // LabelsMatrixDemo 4 | // 5 | // Created by neeks on 12/02/14. 6 | // Copyright (c) 2014 neeks. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface NALAppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /LabelsMatrixDemo/NALAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // NALAppDelegate.m 3 | // LabelsMatrixDemo 4 | // 5 | // Created by neeks on 12/02/14. 6 | // Copyright (c) 2014 neeks. All rights reserved. 7 | // 8 | 9 | #import "NALAppDelegate.h" 10 | #import "NALLabelsMatrix.h" 11 | 12 | @implementation NALAppDelegate 13 | 14 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 15 | { 16 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 17 | // Override point for customization after application launch. 18 | self.window.backgroundColor = [UIColor whiteColor]; 19 | [self.window makeKeyAndVisible]; 20 | 21 | NALLabelsMatrix* matrix = [[NALLabelsMatrix alloc] initWithFrame:CGRectMake(5, 60, 310, 100) andColumnsWidths:[[NSArray alloc] initWithObjects:@60,@125,@125, nil]]; 22 | 23 | 24 | [matrix addRecord:[[NSArray alloc] initWithObjects:@" ", @"Old Value", @"New value ", nil]]; 25 | [matrix addRecord:[[NSArray alloc] initWithObjects:@"Field1", @"hello", @"This is a really really long string and should wrap to multiple lines.", nil]]; 26 | [matrix addRecord:[[NSArray alloc] initWithObjects:@"Some Date", @"06/24/2013", @"06/30/2013", nil]]; 27 | [matrix addRecord:[[NSArray alloc] initWithObjects:@"Field2", @"some value", @"some new value", nil]]; 28 | [matrix addRecord:[[NSArray alloc] initWithObjects:@"Long Fields", @"The quick brown fox jumps over the little lazy dog.", @"some new value", nil]]; 29 | 30 | [self.window addSubview:matrix]; 31 | 32 | return YES; 33 | } 34 | 35 | - (void)applicationWillResignActive:(UIApplication *)application 36 | { 37 | // 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. 38 | // 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. 39 | } 40 | 41 | - (void)applicationDidEnterBackground:(UIApplication *)application 42 | { 43 | // 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. 44 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 45 | } 46 | 47 | - (void)applicationWillEnterForeground:(UIApplication *)application 48 | { 49 | // 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. 50 | } 51 | 52 | - (void)applicationDidBecomeActive:(UIApplication *)application 53 | { 54 | // 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. 55 | } 56 | 57 | - (void)applicationWillTerminate:(UIApplication *)application 58 | { 59 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 60 | } 61 | 62 | @end 63 | -------------------------------------------------------------------------------- /LabelsMatrixDemo/NALLabelsMatrix/NALLabelsMatrix.h: -------------------------------------------------------------------------------- 1 | // 2 | // NALLabelsMatrix.h 3 | // 4 | // Created by neeks on 04/02/14. 5 | // Copyright (c) 2014 neeks. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | @interface NALLabelsMatrix : UIView { 11 | NSArray *columnsWidths; 12 | uint numRows; 13 | uint dy; 14 | } 15 | 16 | - (id)initWithFrame:(CGRect)frame andColumnsWidths:(NSArray*)columns; 17 | - (void)addRecord:(NSArray*)record; 18 | @end -------------------------------------------------------------------------------- /LabelsMatrixDemo/NALLabelsMatrix/NALLabelsMatrix.m: -------------------------------------------------------------------------------- 1 | // 2 | // NALLabelsMatrix.m 3 | // 4 | // Created by neeks on 04/02/14. 5 | // Copyright (c) 2014 neeks. All rights reserved. 6 | // 7 | 8 | #import "NALLabelsMatrix.h" 9 | 10 | @implementation NALLabelsMatrix 11 | 12 | 13 | - (id)initWithFrame:(CGRect)frame andColumnsWidths:(NSArray*)columns{ 14 | self = [super initWithFrame:frame]; 15 | if (self) { 16 | numRows = 0; 17 | self->columnsWidths = columns; 18 | self->dy = 0; 19 | self->numRows = 0; 20 | } 21 | return self; 22 | } 23 | 24 | 25 | - (void)addRecord: (NSArray*)record { 26 | if(record.count != self->columnsWidths.count){ 27 | NSLog(@"!!! Number of items does not match number of columns. !!!"); 28 | return; 29 | } 30 | 31 | uint rowHeight = 30; 32 | uint dx = 0; 33 | 34 | NSMutableArray* labels = [[NSMutableArray alloc] init]; 35 | 36 | //CREATE THE ITEMS/COLUMNS OF THE ROW 37 | for(uint i=0; icolumnsWidths objectAtIndex:i] floatValue]; //colwidth as given at setup 39 | CGRect rect = CGRectMake(dx, dy, colWidth, rowHeight); 40 | 41 | //ADJUST X FOR BORDER OVERLAPPING BETWEEN COLUMNS 42 | if(i>0){ 43 | rect.origin.x -= i; 44 | } 45 | 46 | //-------------------------------------------- 47 | 48 | UILabel* col1 = [[UILabel alloc] init]; 49 | [col1.layer setBorderColor:[[UIColor colorWithWhite:0.821 alpha:1.000] CGColor]]; 50 | [col1.layer setBorderWidth:1.0]; 51 | col1.font = [UIFont fontWithName:@"Helvetica" size:12.0]; 52 | col1.frame = rect; 53 | 54 | 55 | //SET LEFT RIGHT MARGINS & ALIGNMENT FOR THE LABEL 56 | NSMutableParagraphStyle *style = [[NSParagraphStyle defaultParagraphStyle] mutableCopy]; 57 | style.alignment = NSTextAlignmentNatural; 58 | style.headIndent = 10; 59 | style.firstLineHeadIndent = 10.0; 60 | style.tailIndent = -10.0; 61 | 62 | 63 | //SPECIAL TREATMENT FOR THE FIRST ROW 64 | if(self->numRows == 0){ 65 | style.alignment = NSTextAlignmentCenter; 66 | col1.backgroundColor = [UIColor colorWithWhite:0.961 alpha:1.000]; 67 | } 68 | 69 | 70 | NSAttributedString *attrText = [[NSAttributedString alloc] initWithString:[record objectAtIndex:i] attributes:@{ NSParagraphStyleAttributeName : style}]; 71 | 72 | 73 | col1.lineBreakMode = NSLineBreakByCharWrapping; 74 | col1.numberOfLines = 0; 75 | col1.attributedText = attrText; 76 | [col1 sizeToFit]; 77 | 78 | 79 | //USED TO FIND HEIGHT OF LONGEST LABEL 80 | CGFloat h = col1.frame.size.height + 10; 81 | if(h > rowHeight){ 82 | rowHeight = h; 83 | } 84 | 85 | //MAKE THE LABEL WIDTH SAME AS COLUMN'S WIDTH 86 | rect.size.width = colWidth; 87 | col1.frame = rect; 88 | 89 | [labels addObject:col1]; 90 | 91 | //USED FOR SETTING THE NEXT COLUMN X POSITION 92 | dx += colWidth; 93 | } 94 | 95 | 96 | //MAKE ALL THE LABELS OF SAME HEIGHT AND THEN ADD TO VIEW 97 | for(uint i=0; inumRows++; 106 | 107 | 108 | //ADJUST y FOR BORDER OVERLAPPING BETWEEN ROWS 109 | self->dy += rowHeight-1; 110 | 111 | 112 | //RESIZE THE MAIN VIEW TO FIT THE ROWS 113 | CGRect tempRect = self.frame; 114 | tempRect.size.height = dy; 115 | self.frame = tempRect; 116 | } 117 | 118 | @end 119 | -------------------------------------------------------------------------------- /LabelsMatrixDemo/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /LabelsMatrixDemo/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // LabelsMatrixDemo 4 | // 5 | // Created by neeks on 12/02/14. 6 | // Copyright (c) 2014 newagelingo. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "NALAppDelegate.h" 12 | 13 | int main(int argc, char * argv[]) 14 | { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([NALAppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /LabelsMatrixDemoTests/LabelsMatrixDemoTests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.newagelingo.${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 | -------------------------------------------------------------------------------- /LabelsMatrixDemoTests/LabelsMatrixDemoTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // LabelsMatrixDemoTests.m 3 | // LabelsMatrixDemoTests 4 | // 5 | // Created by neeks on 12/02/14. 6 | // Copyright (c) 2014 newagelingo. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface LabelsMatrixDemoTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation LabelsMatrixDemoTests 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 | -------------------------------------------------------------------------------- /LabelsMatrixDemoTests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ios-labels-matrix-view 2 | ====================== 3 | 4 | 5 | A very simple use of UIView and UILabels with NSAttributed string to create a grid like layout. 6 | Quite useful for showing tabular data inside table cells. 7 | 8 | For the Swift version of the component please visit here: 9 | https://github.com/neeks/ios-labels-matrix-view-swift 10 | 11 | 12 | Screenshot 13 | ---------------------- 14 | ![Screenshot](https://raw.githubusercontent.com/neeks/ios-labels-matrix-view/master/preview.png) 15 | -------------------------------------------------------------------------------- /preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/neeks/ios-labels-matrix-view/b63e75cf378f37c22c9bb9d4cc69cdd82c479210/preview.png --------------------------------------------------------------------------------