Created
July 21, 2015 16:56
-
-
Save emersonbroga/cde4e013ae047db5674b 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
func displayAView() | |
{ | |
let window = UIApplication.sharedApplication().windows.first as! UIWindow | |
let permissionsView : UIView = UIView(frame: window.frame) | |
permissionsView.backgroundColor = UIColor.redColor() | |
var message : UILabel = UILabel(frame: CGRectMake(100, 200, window.frame.width, 100)) | |
message.textColor = UIColor.whiteColor() | |
message.text = "What a great view!" | |
permissionsView.addSubview(message) | |
window.addSubview(permissionsView) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment