How to add subView to another view from third view? <p>its pretty simple to understand the problem i have.</p> <p>i have a view called "Menu" - which have few buttons. i have another view called "Main" - who need to show the view selected by the menu. and last one i have the view that i want to see in the main view.</p> <p>i tried to work this out with this code -</p> <pre><code>-(IBAction)opertunity:(id)sender{ OpertunityViewController *temp = [[OpertunityViewController alloc]initWithNibName:@"OpertunityViewController" bundle:nil]; MainViewController *main = [[MainViewController alloc]init]; [main.handlerView addSubview:temp.view]; } </code></pre> <p>but it's not working at all.. i remember i done it many many times in the past but just cant get the answer in my projects... pretty strange /: </p> <p>UPDATE - im trying something else. i made a method in my main class and i call it from the menu. but still it dosent work - and i NSLOG the method and its called perfectly. (when im calling the method from inside the class its working..)</p> <p>what now ?! i've never had this kind of problem... </p>