Graphics Reference
In-Depth Information
FIGURE 13-5
Our Completed UIWindow
With the framework imported, the next step is to bind the objects that you added to the
nib. Therefore, you want to add a UILabel and a UIButton property to the header of the
application's delegate, aptly named StarStepsAppDelegate . You also want to add a
method to serve as the action for the button when it is clicked. The resulting header file
is shown in Listing 13-1.
LISTING 13-1
The Application Delegate Header
#import <QuartzCore/CoreAnimation.h>
@interface StarStepsAppDelegate : NSObject <UIApplicationDelegate>
{
UIButton * drawButton ;
UIWindow * window ;
UILabel * textLabel ;
}
@property ( nonatomic , retain ) IBOutlet UIWindow *window;
@property ( nonatomic , retain ) IBOutlet UIButton *drawButton;
@property ( nonatomic , retain ) IBOutlet UILabel *textLabel;
- ( IBAction )drawStar:( id )sender;
@end
 
Search WWH ::




Custom Search