Book Image

Xcode 6 Essentials

By : Jayant Varma
Book Image

Xcode 6 Essentials

By: Jayant Varma

Overview of this book

<p>Apple made their iOS devices easy to use and now they have extended that to their development tools such as Xcode. In Xcode, you can create native applications in the easiest way. Apple's new Xcode technology is making the development curve smoother with its easy-to-develop features and enhancements.</p> <p>Xcode can now write code with the performance-upgraded, brand new, innovative language called Swift, so you no longer need to rely on third-party frameworks to create applications.</p> <p>The book gives you a tour of the new features of Xcode 6. It introduces some important aspects such as the Swift language and its Playgrounds with visual live coding, creating interfaces, storyboards, controllers, frameworks, and live previews. Diving more into the subject, this books shows you how to debug your code, and how to build and test the application on a device or the simulator.</p>
Table of Contents (15 chapters)

Simulator


Apple provides a simulator that can be configured to simulate several iOS devices. With Xcode 6, Apple has provided the iOS7 and iOS8 simulators (though you have to download the iOS7 simulator). There are a few things to note about the simulator:

  • It is a simulator, not an emulator

  • Most of the hardware-specific features are not supported

  • Some of the features do not work on the simulator with iOS8 simulation

For speed-testing and optimization, the code should be run on a device. The simulator is no stranger to us, as we have been running our code and testing it in the simulator.

Choosing the device

When testing, you might want to test the application on different devices such as the iPhone or the iPad to check how the application renders on different devices. You might also want to choose how the application runs on normal iPad and retina iPad devices. It would be unwise to submit an application to the App store without testing on a device. To give an example, say you have an application...