Archives for 

path

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

Saving and Loading Images, Swift 2.0

This will show you how to save and load images in a way that is very easy and straight forward. Here is the function to save your image first. We’ll assume you already have an UIImageView, containing an image, named ‘image’ : Here is how to use the function later in your code: […]
34