01.02.2014 Views

Objective-C Fundamentals

Objective-C Fundamentals

Objective-C Fundamentals

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

Figure 1.11 Xcode’s text editor visually highlights lines of source code with compilation errors. After correcting<br />

any errors, building the project will indicate if you have successfully corrected the problem.<br />

an integrated debugger that hooks into the execution of your application and allows<br />

you to temporarily pause it to observe the value of variables and step through source<br />

code line by line. But before you learn how to use it, we must take a slight detour.<br />

1.6.1 Selecting a destination<br />

Before testing your application, you must decide where you want to run it. During initial<br />

development, you’ll commonly test your application via the iOS Simulator. The<br />

simulator is a pretend iPhone or iPad device that runs in a window on your desktop<br />

Mac OS X machine. Using the simulator can speed up application development<br />

because it’s a lot quicker for Xcode to transfer and debug your application in the simulator<br />

than it is to work with a real iPhone.<br />

Developers with experience in other mobile platforms may be familiar with the use<br />

of device emulators. The terms simulator and emulator aren’t synonymous. Unlike an

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

Saved successfully!

Ooh no, something went wrong!