How to call a method in another view when controller is dismissed?

Are you setting the value of recorderViewController when you initialize the tableViewController (i.e. , are you setting tableViewController. RecorderViewController = self in your Recorder class)?

If not, then your call to recorderViewController changeView is sending a message to nil – which doesn't crash, but it doesn't do anything either As an aside, passing your TableViewController a reference to your RecorderViewController is probably not the best way for two controllers to communicate: You may want to consider using NSNotificationCenter or passing a model object and using Key-Value Observing.

Are you setting the value of recorderViewController when you initialize the tableViewController (i.e. , are you setting tableViewController. RecorderViewController = self in your Recorder class)?

If not, then your call to recorderViewController changeView is sending a message to nil – which doesn't crash, but it doesn't do anything either. As an aside, passing your TableViewController a reference to your RecorderViewController is probably not the best way for two controllers to communicate: You may want to consider using NSNotificationCenter, or passing a model object and using Key-Value Observing.

You were right I didn't set tableviewcontroller. Recorderviewcontroller=self. That has fixed my problem.

Thanks so much for help. I will look into key-value observing too. – Nlks Apr 23 at 1:10.

Refer to Hollance's answer here: Why is My Application Crashing When I Call a Method in self. ParentViewController? That would be a good solution.

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.

Related Questions