Last active
June 22, 2016 23:38
-
-
Save cbowns/971f9e8c715b408e6f48b46558fa4303 to your computer and use it in GitHub Desktop.
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
// When calling `init()`, iOS 8 doesn't load our xib. Make sure we do. | |
// http://stackoverflow.com/a/25152545/774) | |
convenience init() { | |
let className = String(self.dynamicType).componentsSeparatedByString(".").last | |
self.init(nibName: className, bundle: nil) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment