Skip to content

Instantly share code, notes, and snippets.

@makthrow
Created January 12, 2016 21:21
Show Gist options
  • Save makthrow/cb57eb7d45ab5a8d8915 to your computer and use it in GitHub Desktop.
Save makthrow/cb57eb7d45ab5a8d8915 to your computer and use it in GitHub Desktop.
class LoginViewController : PFLogInViewController {
var backgroundImage : UIImageView!;
override func viewDidLoad() {
super.viewDidLoad()
// set our custom background image
backgroundImage = UIImageView(image: UIImage(named: "berry_welcome"))
backgroundImage.contentMode = UIViewContentMode.ScaleAspectFill
self.logInView!.insertSubview(backgroundImage, atIndex: 0)
// remove the parse Logo
let logo = UILabel()
logo.text = "GroceryDate"
logo.textColor = UIColor.whiteColor()
logo.font = UIFont(name: "Georgia", size: 70)
logo.shadowColor = UIColor.lightGrayColor()
logo.shadowOffset = CGSizeMake(2, 2)
logInView?.logo = logo
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment