fnando / iphone-stanford

My solutions for the Stanford assignments - CS1

fnando (author)
Mon May 25 17:42:42 -0700 2009
commit  458fa101dc3e3f2aba5ea81abb745d2215c833be
tree    1d97f2ac58ca0b76731b7ecb879b1fb440bd0608
parent  e93bf1cdc0fcb8f6703d1f20024c2c395f7683c7
iphone-stanford / README.markdown
100644 11 lines (7 sloc) 0.432 kb

iPhone Application Development - Stanford Program

NSLog: make sure you use NSString and not C strings.

NSLog(@"Name: %@", @"Nando Vieira"@); // this works
NSLog(@"Name: %@", "Nando Vieira"); // this crashes

Arrays need to end with nil; you can't have nil values except but the last item.

NSArray * letters = [NSArray arrayWithObjects: @"A", @"B", @"C", nil];