Lab 1 - Xcode and Interface Builder

Objectives

The instructions for creating a new Xcode project and using Interface Builder are given in Chapter 2 of your text book.  Use this reference to perform the following tasks
 

  1. In Xcode, create a new View-based iPhone application.
     
  2. Open the project's xib file with Interface Builder.
     
  3. Add a text label and an image view to your main view.
     
  4. Set the text value to something suitably amusing and make sure the text is centered and adjust the size, color, and font to your choosing.
     
  5. In Xcode, add an image of your choosing (png of jpg) to your project by either dragging the image into the Resources folder of your project or use the Project -> Add to Project... menu to select an image.  Be sure to check the "Copy items into destination" checkbox so that the resource will reside inside your project for submission.
     
  6. Back in Interface Builder, select the image view and set the image that you included using the Attributes Inspector. Try different modes to see which works best.
     
  7. In Xcode, build and run your project in the simulator.  Here is a sample of what your view might look like.
                                               
     
  8. Compress your project and send it to me through the Dropbox in BlackBoard.