Type Annotations in Swift are a really useful way to make sure that the specified value matched that of the expected value. This is extremely useful when using functions and declaring your variables.
Looking for an iOS Developer?
Submit your 30 day Job Listing for FREE
A Tuple in Swift is a neat way to store multiple values in a single value. You will probably come across tuples in a return function or class. So a tuple is basically a way to represent a collection of values that are closely linked to each other.
In this Swift tutorial we are going to create a basic counter application that utilises the NSTimer class to create a swift timer. This is a great introduction to using NSTimer with Swift.
This tutorial will show you how to send a POST request in Swift to a PHP script on your server.
In this quick reference guide to Swift Enumerations or more colloquially referred to as Swift Enums I will cover exactly what is enumeration, How you can create a Swift Enum, how to add extra information using associated values and give you an understanding of raw values.
This tutorial optimising the specialised Parse.com class PFuser to verify login credentials and uses an awesome library called Locksmith Keychain that stores information in the iOS Keychain to remember whether or not the user is currently logged in.
So, you want to be able to let people sign up to your app right? and you’re using Parse.com? Awesome. They have thought of this and created a fantastic specialised user class: PFUser. This tutorial will show you have to Create a user sign up based app with Parse.com using PFUser.
Parse.com is an absolutely fantastic option for the individual Swift iOS developer who wants to have the full power of a server backend powering their app without all the difficulties of setting one up. This tutorials shows you how to connect your Swift iOS Application to the Parse.com service.
In Swift and iOS 8 SDK you can present an alert view as shown in the code below : var alert = UIAlertController(title: “Alert Title", message: "Message", preferredStyle: UIAlertControllerStyle.Alert) alert.addAction(UIAlertAction(title: "OK", style: UIAlertActionStyle.Default, handler: nil)) self.presentViewController(alert, animated: true, completion: nil) You can also add destructive and cancel actions by setting the style property to Destructive and Cancel respectively.
So I wanted an animated UIScrollView which iterated around a collection of UIViews that had been programmatically added to my UIScrollView.