So I have vc A & vc B. When I perform a push segue from A to B automatically creates a back button. This is great but I want to change the text color of this button to black with SetTitleTextAttributes.
From reading other questions relating to this I learned that you have to edit the back button that will appear in vc B in vc A. Somthing like this:
On vc A:
this.NavigationController.NavigationItem.BackBarButtonItem.SetTitleTextAttributes (textAttrButton, UIControlState.Normal);
On some questions they say to put this in the viewWillAppear others say just before you perform a segue to vc B. In both instances I get the following error:
object reference not set to an instance of an object
This is on vc B: