Archives for;

Advanced Functions

Delay Function –  Importance of Learning Defensive Driving Basics

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, you […]
0

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

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

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

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