Introducing Closures One of the great features of Swift is a clean new syntax for first class functions / closures that replaced the quite confusing block syntax. So hopefully we won’t need something like fuckingblocksyntax for Swift. Closures are self-contained blocks of functionality that can be passed around and used in your code. In this article we’ll focus on closures that are…
Tag Archive for tutorial
How to make a simple tableview with iOS 8 and Swift
The first thing that came to mind when I saw Swift was TableViews. This is a step by step tutorial. tl;dr Full Code Create a new project Open Xcode 6, create a new “Single Page Application” and select Swift as the programming language. Add a table view property Open the ViewController.swift class and add a new tableview instance variable below the class…