I have the schema like that:
----- main view
|
---right bar view
|
----- Navigation Controller view
|
------tableView Controller
how can i remove the right bar view from the window when i’m on tableViewController?
Try this:
Another approach, much cleaner, would be using notifications: you could send a notification to the object controlling your main view, so that it removes it right bar subview. It would be something like:
In your main view controller:
and in your table view controller:
In this case notification will provide a very loose connection between the main view and the table view controller.