Information Technology Reference
In-Depth Information
Simulator you see a black screen. The screen usually persists for 10 seconds or so, but occasionally it can last
for up to a minute.
Eventually the app loads and runs, as shown in Figure 3.8. The empty gray window isn't very exciting. It does
nothing at all, but internally it is a complete skeleton app. You can now go back and begin editing the source
files shown in Figure 3.6 to create the UI for the app.
FIGURE 3.8
Run the template application in the Simulator. As a skeleton application, it does nothing except paint the window
gray.
CAUTION
The Simulator is a separate application. Xcode launches it and disappears into the background. The Simulator
menu replaces the Xcode menu while the former is foregrounded. Typically you float the Simulator window on top
of Xcode, so you can re-foreground Xcode by clicking anywhere around the Simulator. You can also use the Dock
to switch between Xcode and the Simulator.
Although this example creates an iOS application, the steps for an OS X application are almost identical, with
the difference that an OS X application runs in a new window—not in the Simulator. The features of the differ-
ent OS X and iOS templates are listed in more detail below.
Search WWH ::




Custom Search