Launching the SlidingTiles game using the iOS simulator

In this section, we will take a look at how to compile and run our SlidingTiles game. You have the option of choosing to run your application using an actual device or choosing from a list of iOS simulators that mimic each of the different types of iOS device.

Let's begin by performing the following steps:

  1. Ensure that you have chosen Debug|iPhoneSimulator from the drop-down menu.
  2. Next, choose your preferred device from the list of available iOS Simulators.
  1. Then, select the Run | Start Debugging menu option, as shown in the following screenshot:
Launching the SlidingTiles game within the iOS Simulator
  1. Alternatively, you can also build and run the SlidingTiles application by pressing Command + Enter.

When the compilation is complete, the iOS Simulator will appear automatically and the SlidingTiles application will be displayed, as shown in the following screenshot:

The Sliding Tiles Game running within the iOS Simulator

As you can see from the preceding screenshot, this currently displays our SlidingTiles game. Clicking on the Reset Game button will display the dialog, and when clicking on the Shuffle Tiles button, it will randomly shuffle our tiles in our View control.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.214.155