Archives for 

Advanced Functions

Saving and Loading Text in Swift

    Here is a full solution on saving and loading text with Swift 2.0, current example is for saving and loading high score in a game. Using those 2 functions we can now declare a variable to store a path to our highscore text file: Here is how we would load  text […]

Generating UIButtons from a loop, part 2

Hi, creating a second part of the tutorial as some folks wanted to do this trick with a few variations. ( link to part I ) As a start a Navigation controller got involved 🙂 So you end up with a problem where buttons would disappear as you go back and forth. Solution for this […]

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 […]

Defensive Driving tips

Since car accidents are one of the most common causes of injury and fatality among young people, with more than 5 million accidents logged each year, it is vital to learn defensive driving skills when driving a vehicle. You may know how to drive, but is that really enough? Apart from being a skilled driver, […]

Creating a Rotate Gesture

Here is a complete Rotate Gesture example: We have 2 things – a handle and the gesture itself that uses the handle.. Here is the gesture: is what points to the Handle ( make sure you don’t misspell this). Here is the actual handle: