Category: iOS Development Weekly Tips

Draw Paths in UIViews

In a previous tip, I drew rectangles and circles in a UIView. This time, let’s add lines and curves using paths to draw some toast. Download the playground I set up for you.  I set up my code to do all the drawing in… Continue Reading “Draw Paths in UIViews”

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… Continue Reading “Add an Animated Drawer”

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… Continue Reading “Tip: Add Drop Shadows”

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”

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.… Continue Reading “Make Round Buttons and UIViews”

Use the Speech Synthesizer

It’s sometimes nice to add a little sound to your applications, and even better to add a voice. Outside Siri, you can use a cool and simple AVFoundation API to make iOS devices talk. Let’s learn how to use the Speech synthesizer. Download the… Continue Reading “Use the Speech Synthesizer”

The Settings Bundle

You’ll often want default settings that users can change. iOS provides the settings bundle for storing this information. Let’s look at how to use the settings bundle. Download the starter example file. I created a project which eventually will display the user’s default pizza.… Continue Reading “The Settings Bundle”

Customizing Tab Bar Controller Icons.

One of the more perplexing parts of using tab bar controllers is customizing tabs. If you understand some of the properties of an image, You can do some major customization. Download the example file. If you open the main storyboard you’ll see three view… Continue Reading “Customizing Tab Bar Controller Icons.”

Changes to Xcode 10 Storyboards.

There’s been some great changes to playgrounds in Xcode 10 that will make your code even easier to prototype than ever before. Let’s take a look at some of the changes.  In Xcode 10 open a new single view playground, and save it as… Continue Reading “Changes to Xcode 10 Storyboards.”

Use Code Snippets

An often neglected feature of Xcode is code snippets. Code snippets are quick ways to add code you frequently use. In Xcode 10 there were some major changes to code snippets, which might confuse those who use them now, but make them even easier to… Continue Reading “Use Code Snippets”