The UIViewController that manages that tab should have a reference to your custom UIView. In your UIViewController's -viewWillAppear method, you can call -updateDisplay. I'm assuming that barGraph is the reference to your custom view.
If you are creating it in your xib, just make sure you hook it up to your IBOutlet and that your @property for that outlet is set to retain. If you aren't creating barGraph in your xib then I assume you are creating it in your viewDidLoad. Either way, make sure you set it to your @property.
The UIViewController that manages that tab should have a reference to your custom UIView. In your UIViewController's -viewWillAppear method, you can call -updateDisplay. I'm assuming that barGraph is the reference to your custom view.
If you are creating it in your xib, just make sure you hook it up to your IBOutlet and that your @property for that outlet is set to retain. If you aren't creating barGraph in your xib then I assume you are creating it in your viewDidLoad. Either way, make sure you set it to your @property.
If you aren't creating it either way, then how are you creating it?
I'm creating an instance of barGraph in GraphViewController progrmatically (barGraph is a custom view that I've used in other apps). I've posted some of the relevant code above in addendum 1. I've also experimented with viewWillAppear, but it seems never to be called.
I will look at this again. Thanks! – epsilon2.
7 Jan 29 at 18:09 I inserted viewWillAppear per Addendum 2 above. Alas, it never fires. If I could get it to do so, this would probably solve my problem.
– epsilon2. 7 Jan 29 at 18:26 I can manually fire it by calling it in from the UITabBarDelegate method -- but when the GraphViewController's viewWillAppear fires, subsequently calling updateDisplay, the old problem is creating in a slightly different way. I believe that iOS has to call this method.
– epsilon2. 7 Jan 30 at 5:04 I found this: stackoverflow. Com/questions/1650545/… and checked it out.
Class name is correctly set in IB. Still stumped! – epsilon2.
7 Jan 30 at 13:01 Perhaps this is why viewWillAppear, viewDidAppear do not fire: stackoverflow.Com/questions/2308985/… ("technical the view is still visible" that is, behind another one). If so, then I will have to look for another solution to getting updateDisplay to fire at the right moment. For it does work when manually activated by pushing a button, but not when called from the delegate at the moment one has selected the new tab.
Hmmmmm! – epsilon2. 7 Jan 30 at 14:34.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.