Created
August 3, 2017 22:25
-
-
Save clowestab/2231826f0425969568b128b053bd8245 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
//Load a nib with a given name | |
class func loadFromNibNamed(nibNamed: String, bundle : NSBundle = NSBundle.mainBundle()) -> UIView! { | |
return UINib(nibName: nibNamed, bundle: bundle).instantiateWithOwner(nil, options: nil)[0] as? UIView | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment