Tag: ios

CALayer Masks

UI doesn’t have to look like a rectangle. You might want a different shape for your icon. You can do that with layer masks. Let’s learn how to set them up. Download the example files. You’ll find an app with two square buttons. If…

Add an Animated Drawer

You’ve probably seen menus that pop out of the side of an app, but do you know how to make one? With the knowledge of some simple code you too can add these to your application using auto layout. If you take a look…

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…

Make Round Buttons and UIViews

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….

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…

Timer Accuracy in iOS

It’s buried in the docs, so you might not know how inaccurate Timer objects can be if you are trying to show the time. Let’s look at that inaccuracy and how to work around it. You’ll find in the exercise file on GitHub a…

Find a Language Quickly from Text

You can find a video of this lesson on iOS Development Tips Weekly from LinkedIn Learning.  There’s a lot you can do with language easily in iOS and Watch OS. The Apple ecosystem has a Natural Language Processing (NLP ) system built in and…

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…

Tip: Hex Colors

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…