cover picture cover picture


Homework 1

CMP 464: iOS Programming
Lehman College, City University of New York
Fall 2015


This Homework Is Due By 11:59 PM on Wednesday September 16, 2015

  1. Follow the Flipismo Example we did in class to build and run Flipismo using Xcode 5 and the iPhone Simulator. Your project should build without warnings or errors. You will find the card image files here.

  2. Type in the code for Card, Deck, PlayingCard, PlayingCardDeck That we went over in class. You will find all the class slides here. You should type in the code yourself to get used to using Xcode. Please do not cut and paste the code into Xcode.

  3. Add a PlayingCardsDeck * property to your FlipismoViewController and use lazy instantiation to allocate and intialize the property in the Getter. This should create a full deck of PlayingCards.

  4. Instead of flipping over the same card everytime you click on it. Flipismo should display a different random card drawn from your PlayingCardsDeck * each time you click. Flipismo should go through the entire deck of playing cards showing them one at a time.

  5. Make sure to keep the flips counter of Flipismo.

Please submit the completed assignment on Blackboard as a zip file of your entire project. No other forms of submission will be accepted.

This Homework assignment is borrowed from the Stanford University online course Developing iOS7 Apps for iPhone and iPad. This course was taught at Stanford University, Fall 2013 by Paul Hegarty. An Online version of this course is available on iTunes U.