Adding a function into your app

Anywhere in the ViewController.swift class:

func NameOfFunction(String: nameOfParameter) -> String
{
 return nameOfReturnVariable
}

Comments

Popular posts from this blog

Rotation

Swift Basics - Sets

Things to consider when designing the user interface