Swift 2 Tutorials and News

Adding IBInspectable to a superclass in Swift

Adding IBInspectable to a UICollectionViewCell subclass One very useful feature I find is to add a IBInspectable background image to my views. In an entertainment app I'm currently building there is a designable cell that looks like this: @IBDesignableclass TrailerCollectionViewCell: MediaCollectionViewCell {    @IBOutlet weak var lengthLabel: UILabel!    @IBInspectable weak var bgImage: UIImage! {        didSet {            imgView.frame = self.bounds            self.addSubview(imgView)            imgView.image = bgImage            imgView.contentMode  = UIViewContentMode.Center            self.sendSubviewToBack(imgView)        }    }}what's great about…

0 Comments

Developing tvOS Apps for Apple TV [Part 2]

Looking for some help building your Apple TV tvOS App? I'm available for consulting and development, contact me. This is part 2 of the tvOS tutorial. If you haven't gone through part 1 yet, I suggest you run through that first. Adding Interactivity In the first section we created a simple TVML document with a few buttons. It looked something…

4 Comments
Developing tvOS Apps for Apple TV [Part 1]
Apple TV Developer

Developing tvOS Apps for Apple TV [Part 1]

Here's what you'll have at the end of part 2 of this tutorial if you follow along: Looking for some help building your Apple TV tvOS App? I'm available for consulting and development, contact me. Apple TV Developer Tools Before we get started you'll need the Xcode 7.1 beta, which you can download here: Download Xcode 7.1 Beta Note that…

4 Comments

Swift 2 – What’s new

Monday Apple announced Swift 2, and just about everything announced is an extremely welcome change. This post is a summary of Chris Lattner's discussion in the WWDC video "What's new in Swift". Now, let's run through them... Fundamentals enums can now be printed to the console and show the actually value instead of just (enum value). Additionally, println is now…

1 Comment
Close Menu