Reputation: 8947
I had an application in which if a condition satisfies then i need a button on the navigation bars on all the view controllers ,with the same action ,I had gone through some of the possible solutions
as creating a delegate class and
adding it in each view controller ,
and there is always a solution like adding it in each view controller
but not sounded feasible for me ,can anybody help me on the way to achieve this ?
Upvotes: 0
Views: 62
Reputation: 3162
You can subclass your Navigation controller, and in that class you can add that button on Navigation bar, if your condition satisfies.
Upvotes: 2