[Solved] Exit app on double tap (android app)

in c# void Update(){ if (Input.GetKeyDown(KeyCode.Escape)) Application.Quit(); } or in .js function Update(){ if (Input.GetKeyDown(KeyCode.Escape)) Application.Quit(); } This is the function for exit app when back button pressed, if you want to exit the app when back button pressed twice, implement the logic in the java code you have posted in question into equivalent code … Read more

[Solved] Default Back Button Text and Font Setting

Change your code in viewDidLoad like this. class BaseViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() } func setNavigationWithCustomBackButton() { let btnLeft:UIButton! = UIButton(frame: CGRectMake(0, 0, 20, 16)) btnLeft.setTitle(“<=|”, forState: .Normal) btnLeft.titleLabel?.font = UIFont.systemFontOfSize(19, weight: UIFontWeightLight) btnLeft!.addTarget(self, action: “handleBack:”,forControlEvents: UIControlEvents.TouchUpInside) let leftItem:UIBarButtonItem = UIBarButtonItem(customView: btnLeft!) self.navigationItem.leftBarButtonItem = leftItem } func handleBack(sender: UIButton) { self.navigationController?.popViewControllerAnimated(true) } … Read more