Created
June 21, 2016 06:48
-
-
Save quangtqag/08b0b5c8a6831a6ae52fe55900dd80c3 to your computer and use it in GitHub Desktop.
This file contains 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
class MyView: UIView { | |
@IBOutlet weak var label: UILabel! | |
class func instanceFromNib() -> MyView { | |
return UINib(nibName: "MyView", bundle: nil).instantiateWithOwner(nil, options: nil)[0] as! MyView | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment