Tag: GUI

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…

Tip: Add Drop Shadows

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…

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

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…

Tip: Image Literals

iOS Development tips weekly is a series you can find at the Lynda.com and LinkedIn Learning libraries. The first week of a week’s tip will be available for free. After that, you will need a subscription to get access to it. Click the image…

The Joys of Beta Swift: A Change to Outlets

I went to open the pizza demo to get ready for my next post and was greeted by 10 compiler error messages, all the same. ‘IBOutlet’ property has non-optional type ‘UILabel’ Just after I finished the optionals post, It turns out there a change…

The Swift Swift Tutorial: How to Use Split View on iPad (Round 1)

Back in July of 2014, I wrote this first post on using UISplitViewController in Swift. I gave how to use Apple’s template, which has a few interesting quirks, such as ARC killing@IBOutlets at the drop of a hat. I said I would write another…

The Swift Swift Tutorial: Using Segues and Delegates in Navigation Controllers (Part 1 — The Template)

[Updating to Swift 2.0  SJL 9/17/15] Click here for the Swift 3.0 version of this post It should be one of the easiest things we do, and yet for many it is the most confusing. Getting data from one view controller to another as…

From Apple to Raspberry Pi: Adding a Tkinter Text Box in Python

Tkinter lacks a good list box. There is a widget, but as shown in earlier posts in this series, it doesn’t do the best job. We had to use underscores to get the list box to work.  There is another widget that might do…