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…

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…

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…

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…

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…

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…

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…