Archives for 

function

Creating a HUD for your Sprite Kit Game

Creating a HUD for every game is vital. It’s a bit tricky when you are adding UI Elements to Sprite Kit and there are also a few different ways of doing it. Here is one of the ways and so far my favorite. It’s very flexible and it will allow you to easily customize your […]

Generating UIButtons from a loop

This is a very useful technique and it’s pretty straight forward. Let’s say we have an array of items or heroes and we want to dynamically create buttons that will do something linked to the hero/item selected. One example is if you have an array of saved games and you want to generate buttons to […]

Contacts App / Inventory with Archiving 2.0

Hi, all Here is the updated version of the Contacts app with archiving. It will now let you save and load multiple contacts. I am just going to list some of the new things added. Here are the previous and next buttons on the Load View screen:       Here are the […]

Multiplications Table app

Ok, this app will be just an example of how to create things programmatically, without using the Auto Layout or any of the other fancy things within XCode. It’s a very simple app, but to me it was a very good experience learning to build and troubleshoot things directly in code. The app will look […]

Contacts App / Inventory with Archiving

Here is the latest app. It is supposed to be an contacts inventory app. This is the first version as it is just letting you save/load one contact. Key points here are: creating custom Classes archiving / unarchiving with NSCoding using multiple UIViews with Navigation Controller using multiple, nested ‘if {} else {}’ statements separating […]