Foundation iPhone App Development: Build An iPhone App in 5 Days with iOS 6 SDK by Nick Kuh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

O'Reilly logo

Image

Chapter 4

Objective-C and Xcode: Developing a Blackjack Game

You’re going to learn Objective-C in this chapter! As per the hands-on nature of this book, you’ll be learning on the job, building an object-oriented blackjack game that implements the MVC (Model-View-Controller) paradigm.

The aim here is to get familiar with the structure and syntax of Objective-C: how to create classes; the syntax of methods; pointers and primitives—and a whole lot more.

The Game

We’re going to build a simplified version of blackjack, so there are a few caveats:

  • Players will have just two options during gameplay: Stand or Hit.
  • There’ll be no betting (sorry!). ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required