01.02.2014 Views

Objective-C Fundamentals

Objective-C Fundamentals

Objective-C Fundamentals

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

16 CHAPTER 1 Building your first iOS application<br />

Figure 1.6 The main Xcode window demonstrating the editing of a *.xib file. Along the left edge of the editor you<br />

can see three icons, each representing a different object or GUI component stored in the .xib file.<br />

With the controls positioned on the user interface, the only task left is to connect<br />

them to the code you previously wrote. Remember that the class defined in the Coin-<br />

TossViewController.h header file requires three things from the user interface:<br />

■<br />

■<br />

■<br />

Something to send the callHeads or callTails messages whenever the user<br />

wishes to initiate a new coin toss<br />

A UILabel to display the results of the latest coin toss (heads or tails)<br />

A UILabel to display the status of the latest coin toss (correct or incorrect)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!