Tag: iPad

Launch an Alert from a Closure Safely

Your app can get into problems when you launch UI from others threads, such as closures.  For example, you  might have an app that going to ask for permissions for things like photos, notifications, or location data. The system usually handles those, but you… Continue Reading “Launch an Alert from a Closure Safely”

Change UIColors to RGB and HSB colors

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”

Programmaticall​y Add Split View Controllers

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 “Programmaticall​y Add Split View Controllers”

Replace Segmented Controls with Button Arrays

You’ve probably used the Segmented control before like this one It’s great for some simple uses but lacks flexibility. Besides using only text or single color icon, it doesn’t work in vertical or other arrangements. Let’s look at another solution: Using Button arrays.  In… Continue Reading “Replace Segmented Controls with Button Arrays”

Embed Table Views

Here’s an app I started from the downloaded example file. It is a restaurant check with a total, but I have to press the Order button to see the details in a table view on the next view controller. That button is a waste… Continue Reading “Embed Table Views”

Layout iPad Landscape and Multitasking Apps

Note:You can find a video of this tip here on LinkedIn Learning If there’s one thing in auto layout that drives me nuts it is laying out for landscape different than portrait on an iPad. Phones are easy since the class sizes are different… Continue Reading “Layout iPad Landscape and Multitasking Apps”

Animate With a Map Camera

In an earlier tip, I showed you how to make a map in iPad Playgrounds. Let’s learn how to animate those maps, doing a flyover of Michigan avenue in Chicago from The former home of Chess Records at 2120 South Michigan Avenue (immortalized in… Continue Reading “Animate With a Map Camera”

A Developer Preview of WWDC 2018

We are once again getting close to the time for Apple’s World Wide Developers conference, and like every year, the press is busy trying to predict and preview what is ahead for the first week in June. Once again, they will completely miss the… Continue Reading “A Developer Preview of WWDC 2018”

Apple Pencil Basics

The Apple pencil adds more functionality to tablets than finger touch, even though you use the same code. Let’s do a quick explore of the Apple Pencil, and see how easy it is to add support in your app. Download the starter app. It’s… Continue Reading “Apple Pencil Basics”

Bug Workaround: Swift Playgrounds for iPad

While doing some work on more material for the site in Swift playgrounds, I ran into a serious bug in the Swift Playgrounds for iPad. I made a short video to tell you’re about it, and I’ve included an extended transcript afterwards. Hello Folks… Continue Reading “Bug Workaround: Swift Playgrounds for iPad”