Skip to content

Commit

Permalink
logout button moved to left
Browse files Browse the repository at this point in the history
  • Loading branch information
milescrabill committed Dec 9, 2014
1 parent 705c49a commit b70ab09
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions socialCalendar/LoginViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class LoginViewController: UIViewController {
@IBOutlet weak var messageLabel: UILabel!

@IBAction func loginVerifyButton(sender: AnyObject) {

var username = usernameTextField.text
var password = passwordTextField.text

Expand Down Expand Up @@ -119,8 +120,8 @@ class LoginViewController: UIViewController {
// Pass the selected object to the new view controller.
if segue.identifier == "login" {
let vc = segue.destinationViewController as CalendarTabBarViewController
vc.navigationController?.navigationItem.hidesBackButton = true
vc.navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Log Out", style: .Plain, target: self, action: "logout")
vc.navigationItem.hidesBackButton = true
vc.navigationItem.leftBarButtonItem = UIBarButtonItem(title: "Log Out", style: .Plain, target: self, action: "logout")
vc.navigationItem.title = "Logged in as " + PFUser.currentUser().username
}
}
Expand Down

0 comments on commit b70ab09

Please sign in to comment.