Tag: iPhone Programming
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
An often ignored but rather powerful View Controller is the UISplitViewController. You can make one from a template and the storyboard, but I often skip both and do it programmatically, which is especially good when I’m prototyping in a playground. Let’s give it a… Continue Reading “Programmatically Add Split View Controllers”
Posted on April 9, 2019
by Steven Lipton
Leave a Comment
There’s many ways to handle errors in Swift. For some errors, using throws is a great way to handle errors without crashing the system. Download the exercise file. You’ll find a project with an embedded playground. While there’s a lot better ways to do… Continue Reading “Thrown Errors”
Category: iOS Development Weekly Tips, LinkedIn Learning / Lynda.com, Swift, Swift Programming, TutorialTags: catch, do, do try catch, do...try...catch, enum, error handlers, errors, ios, iPad programming, iPhone Programming, swift, throws, try
Posted on November 21, 2018
by Steven Lipton
Leave a Comment
A video of this tip can be found on LinkedIn Learning User Interfaces often use shadows to make them look less flat, but it isn’t obvious how to add one to a view on your app. In this tip, I’ll show you how to… Continue Reading “Tip: Add Drop Shadows”
Category: GUI, iOS Development Weekly Tips, ios12, TutorialTags: App Programming, Apple, Apple swift, button, CALayer, Drop Shadows, GUI, iPhone Programming, shadow, swift
Posted on October 17, 2018
by Steven Lipton
1 Comment
In the good old days, Apple used a lot of rounded corner buttons. Many developers use several images to get the effect of round buttons. The CALayer of UIButton does have a feature for you to easily get rounded corners, and even circular buttons.… Continue Reading “Make Round Buttons and UIViews”
Category: GUI, iOS Development Weekly Tips, ios12, LinkedIn Learning / Lynda.com, Swift 4.0, Swift Programming, TutorialTags: App Programming, Apple swift, button, CALayer, Corner, GUI, ios, iPhone Programming, Round, swift, UIView
Posted on August 1, 2018
by Steven Lipton
1 Comment
The song says time is on my side, but I sometimes I wonder about that when trying to work with the time types in iOS. Let me show you some of the time types. In Xcode, Open up a blank playground. There are two… Continue Reading “Date and Time in iOS”
Category: iOS Development Weekly Tips, LinkedIn Learning / Lynda.com, Swift, Swift 4.0, Swift Programming, TutorialTags: App Programming, Apple swift, date formatter, dateFormatter, formatting Date, formatting NSDate, iPhone Programming, Locale, NSTimeInterval, swift, time, timeInterval
Posted on September 18, 2017
by Steven Lipton
Leave a Comment
A few months ago, Apple threw out my app Interval Runcalc for being too old. While it wasn’t the most innovative, complex or profitable, it was an app I used frequently myself. It was a calculator for time, pace and distance for running not… Continue Reading “This Old App: Update to Xcode 9”
Category: Auto Layout and Size Classes, iOS 11, This Old App, Xcode 9Tags: @objc, App Programming, Apple swift, Auto Layout, ios11, iPhone Programming, iPhone X, layout, swift, Updating, Xcode 9
Posted on July 6, 2016
by Steven Lipton
12 Comments
In this lesson, we’ll take a look at tab bar controllers and how to add them in the storyboard. For more on implementing them completely in code see Swift Swift: Using Tab Bar Controllers in Swift. For more on data sharing once set up… Continue Reading “Tab Bar Controllers in Xcode 8 Storyboards”
Category: Auto Layout and Size Classes, ios8, Swift Programming, Swift Swift, TutorialTags: autolayout, iPhone Programming, more, swift programming, Tab bar, tab bar icon color, Tab Bar Icons, Tab bar items, Tab bar more, Xcode, xibs in swift
Posted on April 24, 2015
by Steven Lipton
17 Comments
With the launch of the Apple Watch it’s time for timers in iOS and WatchKit. Learning to use timers is a very important skill for most developers. There are many places we need to schedule regular intervals of time to do things. In my… Continue Reading “Swift Swift: Using NSTimer to Make a Timer or Alarm”
Category: ios8, Swift Programming, Swift Swift, TutorialTags: Alarm clock, App Programming, Apple swift, autolayout, countdown timer, formatting NSTimeInterval, iPhone Programming, NSTimeInterval, NStimer, stopwatch, swift, swift programming, timer, Timer loop, timers in Swift, Xcode
Posted on January 27, 2015
by Steven Lipton
9 Comments
[Updated to Swift 2.0/iOS9 9/21/15 SJL] While Navigation controllers often have the limelight when it comes to Xcode controllers, Tab Bar controllers are great for independent tasks in the same app or for different ways of working with the same model. In this lesson,… Continue Reading “Tab Bar Controllers in Storyboards”
Category: Auto Layout and Size Classes, ios8, Swift Programming, Swift Swift, TutorialTags: autolayout, iPhone Programming, more, swift programming, Tab bar, tab bar icon color, Tab Bar Icons, Tab bar items, Tab bar more, Xcode, xibs in swift