Category: LinkedIn Learning / Lynda.com

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… Continue Reading “CALayer Masks”

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”

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”

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”

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

Add Provisional Permissions for Notifications

If you’ve worked with notifications before, you’ve probably dealt with user permissions. IN iOS 12, there’s a new type of user notification permission to handle a situation that happens often, which is super easy to add to already existent code. Download the exercise file and… Continue Reading “Add Provisional Permissions for Notifications”

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”