I'm building an app that using a navController to move through my views. In one area I have two different views that push to the same view. On that last view I would like to hide/show a button based on which view it came from.
Is it possible to change button properties that were created with IB within the code?
Ok I linked up the button that needs the hidden value changed up to an IBOutlet and got it to hide based on the view it comes form.
On a side note I had described what I was doing wrong. The app only moves form one view to the next. The button needed to be hidden based on which button on the current view was pressed. Originally I was set up a bool in view1 and then instantiated an object of view1controller in view2 controller and then compared it to TRUE/FALSE to see if the button needed to be hidden.
Either it was always evaluating to true or this was causing the value of the buttons property to be changed after the view was drawn. Instead I just created another function exactly like the one for the other button and set the hidden property of the button on the next view to TRUE/FALSE respectively before I push the view.
Basically it seems to me you need to do any set up any of your IBOjects before you draw the view. Is there a way to cause the current view to update itself?