Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Standard view
Full view
of .
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1
Standford CS 193P: Assignment 1-A

Standford CS 193P: Assignment 1-A



|Views: 563|Likes:
Published by Oleksiy Kovyrin

More info:

Published by: Oleksiy Kovyrin on Nov 01, 2008
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less





Assignment 1A
- Hello Stanford!
Due Date This assignment is due by
11:59 PM, October 1.
Assignment This assignment requires no coding. It is intended to get you situated with the tools we’ll beusing in the class. You will use Xcode to create a project and Interface Builder to construct avery simple user interface.In Xcode, create a new Window-Based iPhone application.Open the project’s MainWindow.xib file with Interface Builder.Add the following user interface elements to the view:a text labelan image viewSet the following properties on the text label:text value should be “Hello Stanford!” (or something suitably amusing)text alignment should be centeredadjust the size to make the text largeany other properties that catch your eye (color, font, etc)Back in Xcode, add an image (.png or .jpg) to your project. You can either drag the image infrom the Finder into your project (e.g. into the Resources folder) or you can use the Project >Add to Project... menu to select an image.
: Be sure to check the “Copy items into desti-nation group’s folder (if needed)” checkbox. If you don’t do this, the resource won’t be insideof your project directory and when you submit your assignment the resources will not be in-cluded in the submission.Once your image is in the project, return to MainWindow.xib, select the image view and setthe image for the image view that you dragged in previously using the Attributes Inspector.configure the image view’s “Mode” to be “Aspect Fit” so that the entire image is scaled tofit inside the image view’s bounds while preserving the aspect ratio of the image. If a dif-ferent mode works better for your picture, set it accordingly.In Xcode, build and run your project in the simulator. Your interface should look somethinglike the following:CS193P Assignment 1AFall 2008 Doll/MarcosPage 1 of 2

Activity (5)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
IamWillyC liked this
DwarfTheMike liked this
owaisfeelsocial liked this

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->