Custom Sub Views

Day 11

Placing and drawing UIView objects using the Object Library works a lot of the time, but there are instances where you’ll need to create your own custom views. A sub view is just a UIView object placed within a parent view. They can be created through the GUI by dragging out an object such as a button or label, or programatically.

There are two common reasons why you’d want to create a custom sub view:

  1. You want create a custom drawing on the screen; or
  2. You want to handle touch events in a way different from the defaults
I’m creating this using a new, single-view application project. Keep reading →

IBOutlet and IBAction

Day 10

Storyboards make it really easy to arrange objects in a view, but you’ll also need a way to control those objects and handle events in your Controller. As a web developer, this usually means either setting up JavaScript triggers or refreshing the page; in iOS development it means using IBOutlets and IBActions.

In this post I’ll outline how to connect view objects to your video controllers using IBOutlet and IBAction.  Keep reading →