Graphics Programs Reference
In-Depth Information
The labels and buttons are objects (of type
UILabel
and
UIButton
), and objects have
instance variables that specify their behavior and appearance. For example, when you
entered a title for the top button, you set that button's
title
instance variable. You can
edit a few of these instance variables directly on the canvas, but most must be edited in
the
attributes inspector
. Select the bottom label and then click the
icon in the inspector
selector to reveal the attributes inspector.
In the attributes inspector, you can set the instance variables of the selected object. For ex-
ample, labels have a
textAlignment
instance variable. The default is left-aligned, but