Challenge: a grocery list
Create a new Foundation Command Line Tool named Groceries. Start by creating an empty NSMutableArray object. Then add several grocery-like strings to the array. (You will have to create those, too.) Finally, use fast enumeration to print out your grocery list.
My grocery list is: Loaf of bread Container of milk Stick of butter
Get Objective-C Programming: The Big Nerd Ranch Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.