is there a simple way (Delegation? Overwriting?) do globally customize all the back buttons that are being used in the navigationBar throughout my whole app?
Best
–f
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Could you be more specific about your goal? For most attempts to change an object’s behviour globally, you can ‘swizzle’ one or more methods, that is, switch the supplied implementation for your home cooking. It’s not possible to know if that can work for you without knowing what you want to achieve.
In that case, consider creating a navigation controller factory method (probably as a class method on a class of your creation, but you could also do it in a category on
UINavigationControllerthat returns a navigation controller instance configured to your liking. Whenever you need aUINavigationController, call that factory method instead of the default initialiser.