I have a two UIViewControllers
, on one of which I want a custom button to be displayed. I have written the code for this. I have also written the code for a popover segue to the other ViewController
, and as both controllers belong to my 'ViewController' class, the button is also displayed on the second ViewController
, which I do not want.
Obviously I can create another class and make my second ViewController
a member of this class, however I want the code for my second ViewController
to change the colour of the button in the first ViewController
, so how can I use an object from my first class in the second class implementation
file?