Created
February 28, 2019 15:21
-
-
Save embassem/1bfde0c817e9c145cebe2c990f2a70c9 to your computer and use it in GitHub Desktop.
Customize BackBarButton Image
This file contains hidden or 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
| // in App Delegate Call self.changeBackBarButtonImage() | |
| @UIApplicationMain | |
| class AppDelegate: UIResponder, UIApplicationDelegate { | |
| var window: UIWindow? | |
| func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | |
| // customize Navigation back Button Image | |
| self.changeBackBarButtonImage() | |
| return true | |
| } | |
| } |
This file contains hidden or 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
| import UIKit | |
| // In BaseViewController . or in Every ViewController Call self.navigationItem.clearBackBarButtonTitle() | |
| class BaseViewController: UIViewController { | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| self.navigationItem.clearBackBarButtonTitle() | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment