Category: ios8

Swift Swift: Using Auto Layout with Size Classes

Last week we looked at the basics of auto layout, this week, we learn Diagonal Control Drag Using the layout error  panel for misplaced layouts Introduce Size Classes Make a different layout for iPhone in portrait with Size Classes Transcript Hello, I’m Steve from…

Swift Swift: Using Xibs and Delegates with Modal Views

In the last post, I showed how to create modal views and popovers on an iPad . That lesson was missing two critical things for modal views, which we will cover in this one. We will learn how to add a .xib file to…

The Joys of Beta Swift: A Change to Outlets

I went to open the pizza demo to get ready for my next post and was greeted by 10 compiler error messages, all the same. ‘IBOutlet’ property has non-optional type ‘UILabel’ Just after I finished the optionals post, It turns out there a change…

The Swift Swift Tutorial: Ten Points for Using Optionals.

In the first month and a half of using Swift, I could argue the optional value is the most difficult new concept. It isn’t hard, just something different to wrap one’s head around. That Apple’s documentation peppers information about optionals in two different e-books…

The Swift Swift Tutorial: How to Use UITableView in Swift

[Converted to to Swift 2.0/iOS9 9/28/15 SJL] The workhorse control in iOS is the table view. With both a delegate and data source it is powerful, flexible and can get a bit complicated. In this lesson, we will add a table view controller between…

The Swift Swift Tutorial: Using Delegates and Segues in Swift Part 2 — The Pizza Demo App

In our last post, we went through a very basic framework for segues and delegates in Swift. This time, we will add the segues and delegates to the pizza demo application so we can change the prices in the dictionary for the pizzas. Swift…

The Swift Swift Tutorial: Adding an MVC Model Class in Swift

[Note: Updated for Swift 2.0/iOS9 9/1/15 SJL] Last time we built a small application to compute the area of a pizza. Since it was missing a model, we are going to make an improved version of the application and add a model class, plus…

The Swift Swift Tutorial:A Swift Pizza App with UI

[Updated to Swift 2.0 8/30/15] I thought I’d do some writing for the advanced beginner to intermediate level programmer. That’s a loose definition, but I’ll define it as someone who can find their way around Xcode well enough that I can say “open a…

From Brackets to Braces in Swift: Constants and Comments

In this series of posts, I’m going to explain much of Apple’s new Swift programming language. It assumes you have no earlier programming knowledge or need to brush up on a few concepts to get things working. Since the Publication of the Book The…