![]() ![]() ![]() ![]() The second task takes a little more thinking. That’s the first job done – we have a new file that will contain code for the detail screen. Make sure “Also create XIB file” is deselected, then click Next and Create to add the new file. Please enter “DetailViewController” for the name, and “UIViewController” for “Subclass Of”. You’ll be asked to name the new screen, and also tell iOS what it should build on. From that list, choose iOS > Cocoa Touch Class, then click Next. From the menu bar, go to the File menu and choose New > File, and a window full of options will appear. Let’s start with the easy bit: create new code to host the detail screen. Second, we need to draw the user interface for this screen inside Interface Builder. First, we need to create some new code that will host this detail screen. This task can be split into two smaller tasks. We’re going to make it show their selected picture full screen, and it will slide in automatically when a picture is tapped. Our next goal is to design a new screen that will be shown when the user taps any row. At this point in our app, we have a list of pictures to choose from, but although we can tap on them nothing happens. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |