Quantcast
Channel: stunning co.de
Viewing all articles
Browse latest Browse all 20

Noughts and Crosses. Complete iPhone project. Objective-C.

$
0
0
Noughts and Crosses iPhone App

Noughts and Crosses iPhone App

Everybody knows what Tic Tac Toe or Noughts and Crosses game is. Everyone has played it. It is simple, trivial or someone may even say stupid. Whateverm I made a full, complete working iPhone game – Noughts and Crosses. For those who still don’t know what I am talking about please take a look at  a brief information about the rules and origins of the game at wikipedia.

Although the game, its rules and implementation are rather trivial, it took me several evenings to code it. It was made just for fun to show my coding etiquette and my development habits. There is also another reason – I decided to create something that may help those that start messing with iOS development. The project covers such topics as:

  • UIView animations
  • Protocols and delegates
  • Custom UI components
  • Playing with UIActionsheet, UIAlertView
  • Creation of UI controls from code
  • CALayers (adding shadows, rounded corners)

To present some short notifications about game progress, I needed an equivalent of Android’s Toast component. That was a reason for developing a RSToast class – a UI component that presents a short message and disappears after a short time without the need for tapping on it. Current version of RSToast is very simple. However, I will extend it to support icons and add some helper methods for customizing its appearance.

The source code is publicly available, released under MIT license. Xcode project can be downloaded from github. Feel free to download and criticize!



Viewing all articles
Browse latest Browse all 20

Trending Articles