Tag Archive for ios8

How to make a custom keyboard in iOS 8 using Swift

tl;dr I will go over the basics of a Keyboard Extension and then make a morse code keyboard using the new Application Extension API in iOS 8. It should take you about 20 minutes to go through all the steps. full code Overview A custom keyboard replaces the system keyboard for users who want capabilities such as a novel text input…

1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 4.50 out of 5)
Loading...

How to make awesome UI components in iOS 8 using Swift and XCode 6

In Xcode 6 two new interface builder declaration attributes were introduced: IBInspectable and IBDesignable. IBInspectableexposes class properties in the interface builder Attribute Inspector, and IBDesignable updates the view in realtime! They are pure magic! I can’t wait to see what cool stuff you will make. tl;dr a short tutorial on how to use IBInspectable and IBDesignable with a video demo. It should take you around 10 minutes to go through all the steps. code on…

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading...

Swift Classes – Part 1

Creating a class To create a new class use the class keyword followed by the class name and a pair of braces. Inside the braces we can declare the class properties. class Point { var x = 0.0 // sets the default value of x to 0 var y = 0.0 // sets the default value of x to 0 } //…

1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 5.00 out of 5)
Loading...

Higher Order Functions: Map, Filter, Reduce and more

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…

1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 5.00 out of 5)
Loading...

How to make a simple tableview with iOS 8 and Swift

Updated for Xcode 6.1.1 – Dec 5 2014 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…

1 Star2 Stars3 Stars4 Stars5 Stars (5 votes, average: 4.20 out of 5)
Loading...
Subscribe
We send about one email per week with our latest tutorials and updates
Never display this again :)