Tag: swift
-
The Swift Swift Tutorial: How to Use Split View on iPad (Round 1)
Back in July of 2014, I wrote this first post on using UISplitViewController in Swift. I gave how to use Apple’s template, which has a few interesting quirks, such as ARC killing@IBOutlets at the drop of a hat. I said I would write another post on the subject. I ended up making this section 2…
-
The Swift Swift Tutorial: Using Segues and Delegates in Navigation Controllers (Part 1 — The Template)
[Updating to Swift 2.0 SJL 9/17/15] Click here for the Swift 3.0 version of this post It should be one of the easiest things we do, and yet for many it is the most confusing. Getting data from one view controller to another as you switch views never seems easy. Segues might be slightly difficult,…
-
The Swift Swift Tutorial: Using Dictionaries and Optional Types
[Updated for Swift 2.0/iOS9 9/10/2015 – SJL ] In our last lesson, The PizzaDemo App so far told us some information about pizza sizes. What would be nice is for it to tell us the price for a pizza, based on the area of the pizza. We can learn about Swift dictionaries that way. For…
-
From Brackets to Braces: We will have UI!!!
One of the things about working with an iPhone is that you can use its cool UI. One of the thing I Have been struggling to write the Swift programming tutorials is that said UI was off-limits by the Apple confidentiality agreement. After writing the print and println tutorials this morning, I looked up the confidentiality agreement…
-
From Brackets to Braces: A Swift Tutorial for Newbies
The Media was waiting for Apple to have some jaw dropping bomb of an announcement at WWDC2014, expecting some miraculous hardware like a watch or teleportation device for the iPhone. What they got in classic Apple form was totally unexpected — a new programming language, Swift. At the keynote, application developers cheered many of the…