Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Beginning iOS5 Development.pdf
Скачиваний:
7
Добавлен:
09.05.2015
Размер:
15.6 Mб
Скачать

294

CHAPTER 9: Navigation Controllers and Table Views

and then pushing that new subcontroller onto the navigation controller’s stack. Once you’ve done that, everything else is handled automatically by the navigation controller.

At this point, the application skeleton is complete. Save all your files, and build and run the app. If all is well, the application should launch, and a navigation bar with the title First Level should appear. Since our array is currently empty, no rows will display at this point (see Figure 9–9).

Figure 9–9. The application skeleton in action

Adding the Images to the Project

Now, we’re ready to start developing the second-level views. Before we do that, go grab the folder of image icons from the 09 Nav source code archive directory. You’ll find a folder called Images with eight .png images: six that will act as row images and an additional two that we’ll use to make a button look nice later in the chapter.

In the project navigator, make sure you can see the Nav folder. Then drag the Images folder from the Finder to that Nav folder (not the Nav target just above the Nav folder) to add the images to the project.

www.it-ebooks.info

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]