├── .gitignore ├── LICENSE ├── README.md ├── iOS7Colors.podspec ├── iOS7Colors.xcodeproj └── project.pbxproj ├── iOS7Colors ├── CLAAppDelegate.h ├── CLAAppDelegate.m ├── CLAViewController.h ├── CLAViewController.m ├── Default-568h@2x.png ├── Default.png ├── Default@2x.png ├── UIColor+iOS7Colors.h ├── UIColor+iOS7Colors.m ├── en.lproj │ ├── CLAViewController.xib │ └── InfoPlist.strings ├── iOS7Colors-Info.plist ├── iOS7Colors-Prefix.pch └── main.m └── screenshot.png /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | .DS_Store 3 | build/ 4 | *.pbxuser 5 | !default.pbxuser 6 | *.mode1v3 7 | !default.mode1v3 8 | *.mode2v3 9 | !default.mode2v3 10 | *.perspectivev3 11 | !default.perspectivev3 12 | *.xcworkspace 13 | !default.xcworkspace 14 | xcuserdata 15 | profile 16 | *.moved-aside 17 | DerivedData 18 | .idea/ -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013 Claas Lange 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # iOS7Colors 2 | 3 | iOS7Colors is a simple category on UIColor which provides you some of the standard colors used throughout iOS 7. 4 | 5 | ## Usage 6 | 7 | The easiest way to integrate iOS7Colors is using CocoaPods. Just add this to your Podfile: 8 | 9 | pod 'iOS7Colors', '~> 2.0.0' 10 | 11 | Usage is really simple. Just include `UIColor+iOS7Colors.h` & `UIColor+iOS7Colors.m` in your project if you're not using cocoapods and import the header file you need the colors. 12 | 13 | #import "UIColor+iOS7Colors.h" 14 | 15 | UILabel *label = [UILabel alloc] initWithFrame:CGRectZero]; 16 | 17 | label.textColor = [UIColor iOS7redColor]; 18 | 19 | ![Screenshot](https://raw.github.com/claaslange/iOS7Colors/master/screenshot.png) 20 | 21 | ## Credits 22 | 23 | The color values are taken from [Louie Mantia's](http://mantia.me) [iOS 7 Color Swatches](http://dribbble.com/shots/1186156-iOS-7-Color-Swatches) 24 | 25 | ## License 26 | 27 | iOS7Colors is licensed under the MIT-License 28 | -------------------------------------------------------------------------------- /iOS7Colors.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | 3 | s.name = "iOS7Colors" 4 | s.version = "2.1.0" 5 | s.summary = "The standard iOS 7 Colors as a handy category on UIColor" 6 | s.homepage = "https://github.com/claaslange/iOS7Colors" 7 | s.screenshots = "https://raw.github.com/claaslange/iOS7Colors/master/screenshot.png" 8 | 9 | s.license = 'MIT' 10 | s.author = { "Claas Lange" => "claas@claaslange.de" } 11 | s.platform = :ios 12 | s.source = { :git => "https://github.com/claaslange/iOS7Colors.git", :tag => "2.1.0" } 13 | s.source_files = 'iOS7Colors/UIColor+iOS7Colors.*' 14 | 15 | end 16 | -------------------------------------------------------------------------------- /iOS7Colors.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 42AD214217C7744100026A10 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 42AD214117C7744100026A10 /* UIKit.framework */; }; 11 | 42AD214417C7744100026A10 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 42AD214317C7744100026A10 /* Foundation.framework */; }; 12 | 42AD214617C7744100026A10 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 42AD214517C7744100026A10 /* CoreGraphics.framework */; }; 13 | 42AD214C17C7744100026A10 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 42AD214A17C7744100026A10 /* InfoPlist.strings */; }; 14 | 42AD214E17C7744100026A10 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 42AD214D17C7744100026A10 /* main.m */; }; 15 | 42AD215217C7744100026A10 /* CLAAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 42AD215117C7744100026A10 /* CLAAppDelegate.m */; }; 16 | 42AD215417C7744100026A10 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 42AD215317C7744100026A10 /* Default.png */; }; 17 | 42AD215617C7744100026A10 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 42AD215517C7744100026A10 /* Default@2x.png */; }; 18 | 42AD215817C7744100026A10 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 42AD215717C7744100026A10 /* Default-568h@2x.png */; }; 19 | 42AD215B17C7744100026A10 /* CLAViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 42AD215A17C7744100026A10 /* CLAViewController.m */; }; 20 | 42AD215E17C7744100026A10 /* CLAViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 42AD215C17C7744100026A10 /* CLAViewController.xib */; }; 21 | 42AD216617C776AB00026A10 /* UIColor+iOS7Colors.m in Sources */ = {isa = PBXBuildFile; fileRef = 42AD216517C776AB00026A10 /* UIColor+iOS7Colors.m */; }; 22 | /* End PBXBuildFile section */ 23 | 24 | /* Begin PBXFileReference section */ 25 | 42AD213E17C7744100026A10 /* iOS7Colors.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = iOS7Colors.app; sourceTree = BUILT_PRODUCTS_DIR; }; 26 | 42AD214117C7744100026A10 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 27 | 42AD214317C7744100026A10 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 28 | 42AD214517C7744100026A10 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 29 | 42AD214917C7744100026A10 /* iOS7Colors-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "iOS7Colors-Info.plist"; sourceTree = ""; }; 30 | 42AD214B17C7744100026A10 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 31 | 42AD214D17C7744100026A10 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 32 | 42AD214F17C7744100026A10 /* iOS7Colors-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "iOS7Colors-Prefix.pch"; sourceTree = ""; }; 33 | 42AD215017C7744100026A10 /* CLAAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CLAAppDelegate.h; sourceTree = ""; }; 34 | 42AD215117C7744100026A10 /* CLAAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CLAAppDelegate.m; sourceTree = ""; }; 35 | 42AD215317C7744100026A10 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = ""; }; 36 | 42AD215517C7744100026A10 /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = ""; }; 37 | 42AD215717C7744100026A10 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = ""; }; 38 | 42AD215917C7744100026A10 /* CLAViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CLAViewController.h; sourceTree = ""; }; 39 | 42AD215A17C7744100026A10 /* CLAViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CLAViewController.m; sourceTree = ""; }; 40 | 42AD215D17C7744100026A10 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/CLAViewController.xib; sourceTree = ""; }; 41 | 42AD216417C776AB00026A10 /* UIColor+iOS7Colors.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIColor+iOS7Colors.h"; sourceTree = ""; }; 42 | 42AD216517C776AB00026A10 /* UIColor+iOS7Colors.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIColor+iOS7Colors.m"; sourceTree = ""; }; 43 | /* End PBXFileReference section */ 44 | 45 | /* Begin PBXFrameworksBuildPhase section */ 46 | 42AD213B17C7744100026A10 /* Frameworks */ = { 47 | isa = PBXFrameworksBuildPhase; 48 | buildActionMask = 2147483647; 49 | files = ( 50 | 42AD214217C7744100026A10 /* UIKit.framework in Frameworks */, 51 | 42AD214417C7744100026A10 /* Foundation.framework in Frameworks */, 52 | 42AD214617C7744100026A10 /* CoreGraphics.framework in Frameworks */, 53 | ); 54 | runOnlyForDeploymentPostprocessing = 0; 55 | }; 56 | /* End PBXFrameworksBuildPhase section */ 57 | 58 | /* Begin PBXGroup section */ 59 | 42AD213517C7744100026A10 = { 60 | isa = PBXGroup; 61 | children = ( 62 | 42AD214717C7744100026A10 /* iOS7Colors */, 63 | 42AD214017C7744100026A10 /* Frameworks */, 64 | 42AD213F17C7744100026A10 /* Products */, 65 | ); 66 | sourceTree = ""; 67 | }; 68 | 42AD213F17C7744100026A10 /* Products */ = { 69 | isa = PBXGroup; 70 | children = ( 71 | 42AD213E17C7744100026A10 /* iOS7Colors.app */, 72 | ); 73 | name = Products; 74 | sourceTree = ""; 75 | }; 76 | 42AD214017C7744100026A10 /* Frameworks */ = { 77 | isa = PBXGroup; 78 | children = ( 79 | 42AD214117C7744100026A10 /* UIKit.framework */, 80 | 42AD214317C7744100026A10 /* Foundation.framework */, 81 | 42AD214517C7744100026A10 /* CoreGraphics.framework */, 82 | ); 83 | name = Frameworks; 84 | sourceTree = ""; 85 | }; 86 | 42AD214717C7744100026A10 /* iOS7Colors */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 42AD215017C7744100026A10 /* CLAAppDelegate.h */, 90 | 42AD215117C7744100026A10 /* CLAAppDelegate.m */, 91 | 42AD215917C7744100026A10 /* CLAViewController.h */, 92 | 42AD215A17C7744100026A10 /* CLAViewController.m */, 93 | 42AD216417C776AB00026A10 /* UIColor+iOS7Colors.h */, 94 | 42AD216517C776AB00026A10 /* UIColor+iOS7Colors.m */, 95 | 42AD215C17C7744100026A10 /* CLAViewController.xib */, 96 | 42AD214817C7744100026A10 /* Supporting Files */, 97 | ); 98 | path = iOS7Colors; 99 | sourceTree = ""; 100 | }; 101 | 42AD214817C7744100026A10 /* Supporting Files */ = { 102 | isa = PBXGroup; 103 | children = ( 104 | 42AD214917C7744100026A10 /* iOS7Colors-Info.plist */, 105 | 42AD214A17C7744100026A10 /* InfoPlist.strings */, 106 | 42AD214D17C7744100026A10 /* main.m */, 107 | 42AD214F17C7744100026A10 /* iOS7Colors-Prefix.pch */, 108 | 42AD215317C7744100026A10 /* Default.png */, 109 | 42AD215517C7744100026A10 /* Default@2x.png */, 110 | 42AD215717C7744100026A10 /* Default-568h@2x.png */, 111 | ); 112 | name = "Supporting Files"; 113 | sourceTree = ""; 114 | }; 115 | /* End PBXGroup section */ 116 | 117 | /* Begin PBXNativeTarget section */ 118 | 42AD213D17C7744100026A10 /* iOS7Colors */ = { 119 | isa = PBXNativeTarget; 120 | buildConfigurationList = 42AD216117C7744100026A10 /* Build configuration list for PBXNativeTarget "iOS7Colors" */; 121 | buildPhases = ( 122 | 42AD213A17C7744100026A10 /* Sources */, 123 | 42AD213B17C7744100026A10 /* Frameworks */, 124 | 42AD213C17C7744100026A10 /* Resources */, 125 | ); 126 | buildRules = ( 127 | ); 128 | dependencies = ( 129 | ); 130 | name = iOS7Colors; 131 | productName = iOS7Colors; 132 | productReference = 42AD213E17C7744100026A10 /* iOS7Colors.app */; 133 | productType = "com.apple.product-type.application"; 134 | }; 135 | /* End PBXNativeTarget section */ 136 | 137 | /* Begin PBXProject section */ 138 | 42AD213617C7744100026A10 /* Project object */ = { 139 | isa = PBXProject; 140 | attributes = { 141 | CLASSPREFIX = CLA; 142 | LastUpgradeCheck = 0460; 143 | ORGANIZATIONNAME = claaslange.de; 144 | }; 145 | buildConfigurationList = 42AD213917C7744100026A10 /* Build configuration list for PBXProject "iOS7Colors" */; 146 | compatibilityVersion = "Xcode 3.2"; 147 | developmentRegion = English; 148 | hasScannedForEncodings = 0; 149 | knownRegions = ( 150 | en, 151 | ); 152 | mainGroup = 42AD213517C7744100026A10; 153 | productRefGroup = 42AD213F17C7744100026A10 /* Products */; 154 | projectDirPath = ""; 155 | projectRoot = ""; 156 | targets = ( 157 | 42AD213D17C7744100026A10 /* iOS7Colors */, 158 | ); 159 | }; 160 | /* End PBXProject section */ 161 | 162 | /* Begin PBXResourcesBuildPhase section */ 163 | 42AD213C17C7744100026A10 /* Resources */ = { 164 | isa = PBXResourcesBuildPhase; 165 | buildActionMask = 2147483647; 166 | files = ( 167 | 42AD214C17C7744100026A10 /* InfoPlist.strings in Resources */, 168 | 42AD215417C7744100026A10 /* Default.png in Resources */, 169 | 42AD215617C7744100026A10 /* Default@2x.png in Resources */, 170 | 42AD215817C7744100026A10 /* Default-568h@2x.png in Resources */, 171 | 42AD215E17C7744100026A10 /* CLAViewController.xib in Resources */, 172 | ); 173 | runOnlyForDeploymentPostprocessing = 0; 174 | }; 175 | /* End PBXResourcesBuildPhase section */ 176 | 177 | /* Begin PBXSourcesBuildPhase section */ 178 | 42AD213A17C7744100026A10 /* Sources */ = { 179 | isa = PBXSourcesBuildPhase; 180 | buildActionMask = 2147483647; 181 | files = ( 182 | 42AD214E17C7744100026A10 /* main.m in Sources */, 183 | 42AD215217C7744100026A10 /* CLAAppDelegate.m in Sources */, 184 | 42AD215B17C7744100026A10 /* CLAViewController.m in Sources */, 185 | 42AD216617C776AB00026A10 /* UIColor+iOS7Colors.m in Sources */, 186 | ); 187 | runOnlyForDeploymentPostprocessing = 0; 188 | }; 189 | /* End PBXSourcesBuildPhase section */ 190 | 191 | /* Begin PBXVariantGroup section */ 192 | 42AD214A17C7744100026A10 /* InfoPlist.strings */ = { 193 | isa = PBXVariantGroup; 194 | children = ( 195 | 42AD214B17C7744100026A10 /* en */, 196 | ); 197 | name = InfoPlist.strings; 198 | sourceTree = ""; 199 | }; 200 | 42AD215C17C7744100026A10 /* CLAViewController.xib */ = { 201 | isa = PBXVariantGroup; 202 | children = ( 203 | 42AD215D17C7744100026A10 /* en */, 204 | ); 205 | name = CLAViewController.xib; 206 | sourceTree = ""; 207 | }; 208 | /* End PBXVariantGroup section */ 209 | 210 | /* Begin XCBuildConfiguration section */ 211 | 42AD215F17C7744100026A10 /* Debug */ = { 212 | isa = XCBuildConfiguration; 213 | buildSettings = { 214 | ALWAYS_SEARCH_USER_PATHS = NO; 215 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 216 | CLANG_CXX_LIBRARY = "libc++"; 217 | CLANG_ENABLE_OBJC_ARC = YES; 218 | CLANG_WARN_CONSTANT_CONVERSION = YES; 219 | CLANG_WARN_EMPTY_BODY = YES; 220 | CLANG_WARN_ENUM_CONVERSION = YES; 221 | CLANG_WARN_INT_CONVERSION = YES; 222 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 223 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 224 | COPY_PHASE_STRIP = NO; 225 | GCC_C_LANGUAGE_STANDARD = gnu99; 226 | GCC_DYNAMIC_NO_PIC = NO; 227 | GCC_OPTIMIZATION_LEVEL = 0; 228 | GCC_PREPROCESSOR_DEFINITIONS = ( 229 | "DEBUG=1", 230 | "$(inherited)", 231 | ); 232 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 233 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 234 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 235 | GCC_WARN_UNUSED_VARIABLE = YES; 236 | IPHONEOS_DEPLOYMENT_TARGET = 6.1; 237 | ONLY_ACTIVE_ARCH = YES; 238 | SDKROOT = iphoneos; 239 | }; 240 | name = Debug; 241 | }; 242 | 42AD216017C7744100026A10 /* Release */ = { 243 | isa = XCBuildConfiguration; 244 | buildSettings = { 245 | ALWAYS_SEARCH_USER_PATHS = NO; 246 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 247 | CLANG_CXX_LIBRARY = "libc++"; 248 | CLANG_ENABLE_OBJC_ARC = YES; 249 | CLANG_WARN_CONSTANT_CONVERSION = YES; 250 | CLANG_WARN_EMPTY_BODY = YES; 251 | CLANG_WARN_ENUM_CONVERSION = YES; 252 | CLANG_WARN_INT_CONVERSION = YES; 253 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 254 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 255 | COPY_PHASE_STRIP = YES; 256 | GCC_C_LANGUAGE_STANDARD = gnu99; 257 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 258 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 259 | GCC_WARN_UNUSED_VARIABLE = YES; 260 | IPHONEOS_DEPLOYMENT_TARGET = 6.1; 261 | OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; 262 | SDKROOT = iphoneos; 263 | VALIDATE_PRODUCT = YES; 264 | }; 265 | name = Release; 266 | }; 267 | 42AD216217C7744100026A10 /* Debug */ = { 268 | isa = XCBuildConfiguration; 269 | buildSettings = { 270 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 271 | GCC_PREFIX_HEADER = "iOS7Colors/iOS7Colors-Prefix.pch"; 272 | INFOPLIST_FILE = "iOS7Colors/iOS7Colors-Info.plist"; 273 | PRODUCT_NAME = "$(TARGET_NAME)"; 274 | WRAPPER_EXTENSION = app; 275 | }; 276 | name = Debug; 277 | }; 278 | 42AD216317C7744100026A10 /* Release */ = { 279 | isa = XCBuildConfiguration; 280 | buildSettings = { 281 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 282 | GCC_PREFIX_HEADER = "iOS7Colors/iOS7Colors-Prefix.pch"; 283 | INFOPLIST_FILE = "iOS7Colors/iOS7Colors-Info.plist"; 284 | PRODUCT_NAME = "$(TARGET_NAME)"; 285 | WRAPPER_EXTENSION = app; 286 | }; 287 | name = Release; 288 | }; 289 | /* End XCBuildConfiguration section */ 290 | 291 | /* Begin XCConfigurationList section */ 292 | 42AD213917C7744100026A10 /* Build configuration list for PBXProject "iOS7Colors" */ = { 293 | isa = XCConfigurationList; 294 | buildConfigurations = ( 295 | 42AD215F17C7744100026A10 /* Debug */, 296 | 42AD216017C7744100026A10 /* Release */, 297 | ); 298 | defaultConfigurationIsVisible = 0; 299 | defaultConfigurationName = Release; 300 | }; 301 | 42AD216117C7744100026A10 /* Build configuration list for PBXNativeTarget "iOS7Colors" */ = { 302 | isa = XCConfigurationList; 303 | buildConfigurations = ( 304 | 42AD216217C7744100026A10 /* Debug */, 305 | 42AD216317C7744100026A10 /* Release */, 306 | ); 307 | defaultConfigurationIsVisible = 0; 308 | }; 309 | /* End XCConfigurationList section */ 310 | }; 311 | rootObject = 42AD213617C7744100026A10 /* Project object */; 312 | } 313 | -------------------------------------------------------------------------------- /iOS7Colors/CLAAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // CLAAppDelegate.h 3 | // iOS7Colors 4 | // 5 | // Created by claaslange on 23.08.13. 6 | // Copyright (c) 2013 claaslange.de. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class CLAViewController; 12 | 13 | @interface CLAAppDelegate : UIResponder 14 | 15 | @property (strong, nonatomic) UIWindow *window; 16 | 17 | @property (strong, nonatomic) CLAViewController *viewController; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /iOS7Colors/CLAAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // CLAAppDelegate.m 3 | // iOS7Colors 4 | // 5 | // Created by claaslange on 23.08.13. 6 | // Copyright (c) 2013 claaslange.de. All rights reserved. 7 | // 8 | 9 | #import "CLAAppDelegate.h" 10 | 11 | #import "CLAViewController.h" 12 | 13 | @implementation CLAAppDelegate 14 | 15 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 16 | { 17 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 18 | // Override point for customization after application launch. 19 | self.viewController = [[CLAViewController alloc] initWithNibName:@"CLAViewController" bundle:nil]; 20 | self.window.rootViewController = self.viewController; 21 | [self.window makeKeyAndVisible]; 22 | return YES; 23 | } 24 | 25 | - (void)applicationWillResignActive:(UIApplication *)application 26 | { 27 | // 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. 28 | // 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. 29 | } 30 | 31 | - (void)applicationDidEnterBackground:(UIApplication *)application 32 | { 33 | // 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. 34 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 35 | } 36 | 37 | - (void)applicationWillEnterForeground:(UIApplication *)application 38 | { 39 | // 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. 40 | } 41 | 42 | - (void)applicationDidBecomeActive:(UIApplication *)application 43 | { 44 | // 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. 45 | } 46 | 47 | - (void)applicationWillTerminate:(UIApplication *)application 48 | { 49 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 50 | } 51 | 52 | @end 53 | -------------------------------------------------------------------------------- /iOS7Colors/CLAViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CLAViewController.h 3 | // iOS7Colors 4 | // 5 | // Created by claaslange on 23.08.13. 6 | // Copyright (c) 2013 claaslange.de. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CLAViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /iOS7Colors/CLAViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // CLAViewController.m 3 | // iOS7Colors 4 | // 5 | // Created by claaslange on 23.08.13. 6 | // Copyright (c) 2013 claaslange.de. All rights reserved. 7 | // 8 | 9 | #import "CLAViewController.h" 10 | #import "UIColor+iOS7Colors.h" 11 | 12 | @interface CLAViewController () 13 | 14 | @end 15 | 16 | @implementation CLAViewController 17 | 18 | - (void)viewDidLoad 19 | { 20 | [super viewDidLoad]; 21 | // Do any additional setup after loading the view, typically from a nib. 22 | 23 | NSArray *colorArray = @[[UIColor iOS7redColor],[UIColor iOS7orangeColor],[UIColor iOS7yellowColor],[UIColor iOS7greenColor],[UIColor iOS7lightBlueColor],[UIColor iOS7darkBlueColor],[UIColor iOS7purpleColor],[UIColor iOS7pinkColor],[UIColor iOS7darkGrayColor],[UIColor iOS7lightGrayColor]]; 24 | NSArray *textArray = @[@"red",@"orange",@"yellow",@"green",@"light blue",@"dark blue",@"purple",@"pink",@"dark gray",@"light gray"]; 25 | 26 | 27 | for (NSUInteger i = 0; i < 10; i++) 28 | { 29 | 30 | CGFloat originY = 40.0f * i + 20; 31 | 32 | UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(60.0f, originY, 200.0f, 40.0f)]; 33 | 34 | [self.view addSubview:label]; 35 | 36 | label.textColor = colorArray[i]; 37 | label.textAlignment = NSTextAlignmentCenter; 38 | label.font = [UIFont boldSystemFontOfSize:24.0f]; 39 | label.text = textArray[i]; 40 | } 41 | 42 | } 43 | 44 | - (void)didReceiveMemoryWarning 45 | { 46 | [super didReceiveMemoryWarning]; 47 | // Dispose of any resources that can be recreated. 48 | } 49 | 50 | @end 51 | -------------------------------------------------------------------------------- /iOS7Colors/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/claaslange/iOS7Colors/722a03407d03bba5d8aeb064880db1da48ab7fc8/iOS7Colors/Default-568h@2x.png -------------------------------------------------------------------------------- /iOS7Colors/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/claaslange/iOS7Colors/722a03407d03bba5d8aeb064880db1da48ab7fc8/iOS7Colors/Default.png -------------------------------------------------------------------------------- /iOS7Colors/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/claaslange/iOS7Colors/722a03407d03bba5d8aeb064880db1da48ab7fc8/iOS7Colors/Default@2x.png -------------------------------------------------------------------------------- /iOS7Colors/UIColor+iOS7Colors.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIColor+iOS7Colors.h 3 | // iOS7Colors 4 | // 5 | // Created by claaslange on 23.08.13. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface UIColor (iOS7Colors) 12 | 13 | // Plain Colors 14 | + (instancetype)iOS7redColor; 15 | + (instancetype)iOS7orangeColor; 16 | + (instancetype)iOS7yellowColor; 17 | + (instancetype)iOS7greenColor; 18 | + (instancetype)iOS7lightBlueColor; 19 | + (instancetype)iOS7darkBlueColor; 20 | + (instancetype)iOS7purpleColor; 21 | + (instancetype)iOS7pinkColor; 22 | + (instancetype)iOS7darkGrayColor; 23 | + (instancetype)iOS7lightGrayColor; 24 | 25 | // Gradient Colors 26 | + (instancetype)iOS7redGradientStartColor; 27 | + (instancetype)iOS7redGradientEndColor; 28 | 29 | + (instancetype)iOS7orangeGradientStartColor; 30 | + (instancetype)iOS7orangeGradientEndColor; 31 | 32 | + (instancetype)iOS7yellowGradientStartColor; 33 | + (instancetype)iOS7yellowGradientEndColor; 34 | 35 | + (instancetype)iOS7greenGradientStartColor; 36 | + (instancetype)iOS7greenGradientEndColor; 37 | 38 | + (instancetype)iOS7tealGradientStartColor; 39 | + (instancetype)iOS7tealGradientEndColor; 40 | 41 | + (instancetype)iOS7blueGradientStartColor; 42 | + (instancetype)iOS7blueGradientEndColor; 43 | 44 | + (instancetype)iOS7violetGradientStartColor; 45 | + (instancetype)iOS7violetGradientEndColor; 46 | 47 | + (instancetype)iOS7magentaGradientStartColor; 48 | + (instancetype)iOS7magentaGradientEndColor; 49 | 50 | + (instancetype)iOS7blackGradientStartColor; 51 | + (instancetype)iOS7blackGradientEndColor; 52 | 53 | + (instancetype)iOS7silverGradientStartColor; 54 | + (instancetype)iOS7silverGradientEndColor; 55 | 56 | @end 57 | -------------------------------------------------------------------------------- /iOS7Colors/UIColor+iOS7Colors.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIColor+iOS7Colors.m 3 | // iOS7Colors 4 | // 5 | // Created by claaslange on 23.08.13. 6 | // 7 | // 8 | 9 | #import "UIColor+iOS7Colors.h" 10 | 11 | @implementation UIColor (iOS7Colors) 12 | 13 | #pragma mark - Plain Colors 14 | 15 | + (instancetype)iOS7redColor; 16 | { 17 | return [UIColor colorWithRed:1.0f green:0.22f blue:0.22f alpha:1.0f]; 18 | } 19 | 20 | + (instancetype)iOS7orangeColor; 21 | { 22 | return [UIColor colorWithRed:1.0f green:0.58f blue:0.21f alpha:1.0f]; 23 | } 24 | 25 | + (instancetype)iOS7yellowColor; 26 | { 27 | return [UIColor colorWithRed:1.0f green:0.79f blue:0.28f alpha:1.0f]; 28 | } 29 | 30 | + (instancetype)iOS7greenColor; 31 | { 32 | return [UIColor colorWithRed:0.27f green:0.85f blue:0.46f alpha:1.0f]; 33 | } 34 | 35 | + (instancetype)iOS7lightBlueColor; 36 | { 37 | return [UIColor colorWithRed:0.18f green:0.67f blue:0.84f alpha:1.0f]; 38 | } 39 | 40 | + (instancetype)iOS7darkBlueColor; 41 | { 42 | return [UIColor colorWithRed:0.0f green:0.49f blue:0.96f alpha:1.0f]; 43 | } 44 | 45 | + (instancetype)iOS7purpleColor; 46 | { 47 | return [UIColor colorWithRed:0.35f green:0.35f blue:0.81f alpha:1.0f]; 48 | } 49 | 50 | + (instancetype)iOS7pinkColor; 51 | { 52 | return [UIColor colorWithRed:1.0f green:0.17f blue:0.34f alpha:1.0f]; 53 | } 54 | 55 | + (instancetype)iOS7darkGrayColor; 56 | { 57 | return [UIColor colorWithRed:0.56f green:0.56f blue:0.58f alpha:1.0f]; 58 | } 59 | 60 | + (instancetype)iOS7lightGrayColor; 61 | { 62 | return [UIColor colorWithRed:0.78f green:0.78f blue:0.8f alpha:1.0f]; 63 | } 64 | 65 | #pragma mark - Gradient Colors 66 | 67 | + (instancetype)iOS7redGradientStartColor; 68 | { 69 | return [UIColor colorWithRed:1.0f green:0.37f blue:0.23f alpha:1.0f]; 70 | } 71 | 72 | + (instancetype)iOS7redGradientEndColor; 73 | { 74 | return [UIColor colorWithRed:1.0f green:0.16f blue:0.41f alpha:1.0f]; 75 | } 76 | 77 | + (instancetype)iOS7orangeGradientStartColor; 78 | { 79 | return [UIColor colorWithRed:1.0f green:0.58f blue:0.0f alpha:1.0f]; 80 | } 81 | 82 | + (instancetype)iOS7orangeGradientEndColor; 83 | { 84 | return [UIColor colorWithRed:1.0f green:0.37f blue:0.23f alpha:1.0f]; 85 | } 86 | 87 | + (instancetype)iOS7yellowGradientStartColor; 88 | { 89 | return [UIColor colorWithRed:1.0f green:0.86f blue:0.3f alpha:1.0f]; 90 | } 91 | 92 | + (instancetype)iOS7yellowGradientEndColor; 93 | { 94 | return [UIColor colorWithRed:1.0f green:0.8f blue:0.01f alpha:1.0f]; 95 | } 96 | 97 | + (instancetype)iOS7greenGradientStartColor; 98 | { 99 | return [UIColor colorWithRed:0.53f green:0.99f blue:0.44f alpha:1.0f]; 100 | } 101 | 102 | + (instancetype)iOS7greenGradientEndColor; 103 | { 104 | return [UIColor colorWithRed:0.04f green:0.83f blue:0.09f alpha:1.0f]; 105 | } 106 | 107 | + (instancetype)iOS7tealGradientStartColor; 108 | { 109 | return [UIColor colorWithRed:0.32f green:0.93f blue:0.78f alpha:1.0f]; 110 | } 111 | 112 | + (instancetype)iOS7tealGradientEndColor; 113 | { 114 | return [UIColor colorWithRed:0.35f green:0.78f blue:0.98f alpha:1.0f]; 115 | } 116 | 117 | + (instancetype)iOS7blueGradientStartColor; 118 | { 119 | return [UIColor colorWithRed:0.10f green:0.84f blue:0.99f alpha:1.0f]; 120 | } 121 | 122 | + (instancetype)iOS7blueGradientEndColor; 123 | { 124 | return [UIColor colorWithRed:0.11f green:0.38f blue:0.94f alpha:1.0f]; 125 | } 126 | 127 | + (instancetype)iOS7violetGradientStartColor; 128 | { 129 | return [UIColor colorWithRed:0.78f green:0.27f blue:0.99f alpha:1.0f]; 130 | } 131 | 132 | + (instancetype)iOS7violetGradientEndColor; 133 | { 134 | return [UIColor colorWithRed:0.35f green:0.34f blue:0.84f alpha:1.0f]; 135 | } 136 | 137 | + (instancetype)iOS7magentaGradientStartColor; 138 | { 139 | return [UIColor colorWithRed:0.94f green:0.30f blue:0.71f alpha:1.0f]; 140 | } 141 | 142 | + (instancetype)iOS7magentaGradientEndColor; 143 | { 144 | return [UIColor colorWithRed:0.78f green:0.26f blue:0.99f alpha:1.0f]; 145 | } 146 | 147 | + (instancetype)iOS7blackGradientStartColor; 148 | { 149 | return [UIColor colorWithRed:0.29f green:0.29f blue:0.29f alpha:1.0f]; 150 | } 151 | 152 | + (instancetype)iOS7blackGradientEndColor; 153 | { 154 | return [UIColor colorWithRed:0.17f green:0.17f blue:0.17f alpha:1.0f]; 155 | } 156 | 157 | + (instancetype)iOS7silverGradientStartColor; 158 | { 159 | return [UIColor colorWithRed:0.86f green:0.87f blue:0.87f alpha:1.0f]; 160 | } 161 | 162 | + (instancetype)iOS7silverGradientEndColor; 163 | { 164 | return [UIColor colorWithRed:0.54f green:0.55f blue:0.56f alpha:1.0f]; 165 | } 166 | 167 | @end 168 | -------------------------------------------------------------------------------- /iOS7Colors/en.lproj/CLAViewController.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 1552 5 | 12E55 6 | 3084 7 | 1187.39 8 | 626.00 9 | 10 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 11 | 2083 12 | 13 | 14 | IBProxyObject 15 | IBUIView 16 | 17 | 18 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 19 | 20 | 21 | PluginDependencyRecalculationVersion 22 | 23 | 24 | 25 | 26 | IBFilesOwner 27 | IBCocoaTouchFramework 28 | 29 | 30 | IBFirstResponder 31 | IBCocoaTouchFramework 32 | 33 | 34 | 35 | 274 36 | 37 | {{0, 20}, {320, 548}} 38 | 39 | 40 | 41 | 1 42 | MSAxIDEAA 43 | 44 | NO 45 | 46 | 47 | IBUIScreenMetrics 48 | 49 | YES 50 | 51 | 52 | 53 | 54 | 55 | {320, 568} 56 | {568, 320} 57 | 58 | 59 | IBCocoaTouchFramework 60 | Retina 4 Full Screen 61 | 2 62 | 63 | IBCocoaTouchFramework 64 | 65 | 66 | 67 | 68 | 69 | 70 | view 71 | 72 | 73 | 74 | 7 75 | 76 | 77 | 78 | 79 | 80 | 0 81 | 82 | 83 | 84 | 85 | 86 | -1 87 | 88 | 89 | File's Owner 90 | 91 | 92 | -2 93 | 94 | 95 | 96 | 97 | 6 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | CLAViewController 106 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 107 | UIResponder 108 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 109 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 110 | 111 | 112 | 113 | 114 | 115 | 60 116 | 117 | 118 | 119 | 120 | CLAViewController 121 | UIViewController 122 | 123 | IBProjectSource 124 | ./Classes/CLAViewController.h 125 | 126 | 127 | 128 | 129 | 0 130 | IBCocoaTouchFramework 131 | YES 132 | 3 133 | YES 134 | 2083 135 | 136 | 137 | -------------------------------------------------------------------------------- /iOS7Colors/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /iOS7Colors/iOS7Colors-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | de.claaslange.${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 | 38 | 39 | -------------------------------------------------------------------------------- /iOS7Colors/iOS7Colors-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'iOS7Colors' target in the 'iOS7Colors' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /iOS7Colors/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // iOS7Colors 4 | // 5 | // Created by claaslange on 23.08.13. 6 | // Copyright (c) 2013 claaslange.de. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "CLAAppDelegate.h" 12 | 13 | int main(int argc, char *argv[]) 14 | { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([CLAAppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/claaslange/iOS7Colors/722a03407d03bba5d8aeb064880db1da48ab7fc8/screenshot.png --------------------------------------------------------------------------------