Created
November 7, 2014 17:37
-
-
Save santoshrajan/58bbb2aa3b06343d7746 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
class VerticalScreenLayout: VerticalLayout { | |
init() { | |
super.init(width: UIScreen.mainScreen().bounds.width) | |
} | |
required init(coder aDecoder: NSCoder) { | |
fatalError("init(coder:) has not been implemented") | |
} | |
override func layoutSubviews() { | |
self.frame.size.width = UIScreen.mainScreen().bounds.width | |
super.layoutSubviews() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment