Archives for 

image

Setting up backgrounds for UIView

There are different ways of setting up backgrounds in Swift, depending on the object, method, background type etc. We will go through some of these here. Setting up a background image for a UIView: Replace “myImage.png” with the name of your image. Note: Make sure you add your images to the Bundle first. To […]
0

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

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:
0

Pick an Image / image picker

This example is to show how to pick an image from a soure ( in this case, the Saved Photos )   First create the function for the Image Picker: Then this is what we are actually gonna tie up to our button for loading an image:
3