Created
August 31, 2014 22:15
-
-
Save thomasdegry/6a87bec8aaa13c8e9cfe to your computer and use it in GitHub Desktop.
UIView swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class HomeView: UIView { | |
override init(frame: CGRect) { | |
super.init(frame: frame); | |
self.backgroundColor = UIColor.redColor() | |
println("custom view init"); | |
} | |
required init(coder aDecoder: NSCoder) { | |
fatalError("init(coder:) has not been implemented") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment