Posted on June 12, 2019
by Steven Lipton
Leave a Comment
One dilemma you’ll find when working with colors is switching between color systems. There’s two you’ll most often be using: the Red-Green-Blue or RGB and Hue-Saturation-Brightness or HSB. Download the Exercise file and run. It will give you the HSB value, but what if… Continue Reading “Change UIColors to RGB and HSB colors”
Category: GUI, iOS Development Weekly Tips, LinkedIn Learning / Lynda.com, Swift, Swift Programming, TutorialTags: color, HSB, ios, iPad, iPhone Programming, RGB, swift, UIColor, UIColor to HSB, UIColor to RGB
Posted on July 25, 2018
by Steven Lipton
Leave a Comment
A couple of weeks ago, I added a column on converting hex colors to UIColor. That was a function you had to copy and paste into your code. I’ve also shown you how to use the assets to keep color names handy. What would… Continue Reading “UIColor Class Extensions”
Category: GUI, Improvements and bugs, iOS 11, iOS Development Weekly Tips, LinkedIn Learning / Lynda.com, Swift Programming, TutorialTags: class methods, Classes, extension, Hex Colors, properties, swift, UIColor
Posted on May 2, 2018
by Steven Lipton
1 Comment
There’s lot of ways to represent colors. Crayons have names like Sea Green and Peach. I used these two colors since I’m color blind and they once got me in serious trouble when I was young. I and many with color blindness can’t tell them… Continue Reading “Tip: Hex Colors”
Category: GUI, iOS 11, iOS Development Weekly Tips, LinkedIn Learning / Lynda.com, Swift, Swift Programming, TutorialTags: Apple swift, bitmask, color, complement, Function, Hex Colors, ios, swift, swift programming, Tutorial, UIColor
Posted on February 26, 2016
by Steven Lipton
5 Comments
While Property Lists can be ways of storing data, there is a better way of handling small amounts of data for preferences and settings that might change over time and user. While built on a property list, NSUSerDefaults Makes for a more convenient way… Continue Reading “How to Use NSUserDefaults in Swift.”
Category: iOS9, Swift, Swift Programming, TutorialTags: boolForKey, floatForKey, integerForKey, NSData, NSDate, NSUserDefaults, objectForKey, setBool:forKey:, setFloat:forKey:, setObject:forKey:, standardUserDefaults, UIColor
Posted on December 9, 2014
by Steven Lipton
1 Comment
This session we will learn about functions by making colors with UIColor. Transcript Welcome to lesson 7 of KinderSwift. In our last lesson we used this to convert a Int into a Double and this to convert a Double into a Int. Both of… Continue Reading “KinderSwift 7: Introduction to Functions”
Category: ios8, KinderSwift tutorial, Swift, Swift ProgrammingTags: class methods, Classes, functions, introduction to functions, methods, parameters, RGB, swift, UIColor, UIColor(red:green:blue)
Posted on October 8, 2014
by Steven Lipton
10 Comments
[Updated to Swift 2.0/iOS9 SJL 9/18/15] In our last post we discussed the RGB color space which uses red green and blue to create color. It is a very popular color space to communicate and specify color since it uses a very easy numbering… Continue Reading “Swift Swift: Using UIColor in Swift Part 2: Making a Color Palette with HSB”
Category: Swift Programming, Swift Swift, TutorialTags: Brightness, color, color buttons, color picker, color theory, color theory for developers, color theory for programmers, colors from UIColor, Complements, getHUe, getRed, HSB, Hue, programmatic buttons, Rainbow buttons, read colors, RGB, RYB, Saturation, swift, Triads, UIColor, UIColor to RGB
Posted on October 2, 2014
by Steven Lipton
17 Comments
[Updated to Swift 2.0/iOS9.0 9/18/15 SJL – errors corrected 11/20/15] I’m color blind, and that makes me a very good person to teach you about color and UIColor. I’ve painted for many years and my color blindness does not detract but actually helps me… Continue Reading “Swift Swift: Using Color and UIColor in Swift Part 1: RGB”
Category: Swift Programming, Swift Swift, TutorialTags: App Programming, autolayout, color, color picker, get colors, get colors from view, iPad, iphone, make color sliders in swift, read colors, read colors in swift, RGB, set button colors, set label colors, set slider colors, swift, UIButton, UIColor, UIColor to RGB, UILabel, UISlider