Created
July 8, 2014 16:06
-
-
Save romaonthego/236d670e2d986c61f566 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
self.errorView = { | |
let view = UIView() | |
view.backgroundColor = UIColor.redColor() | |
view.addSubview({ | |
self.errorLabel = { | |
let label = UILabel() | |
label.textAlignment = .Center | |
label.backgroundColor = UIColor.clearColor() | |
return label | |
}() | |
return self.errorLabel | |
}()) | |
return view | |
}() | |
self.view.addSubview(self.errorView) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment