Posts

Showing posts from May, 2012

UIViewController Container APIs

To add a child view controller(VC) to a parent VC
[selfaddChildViewController:tradeVC]; [tradeVCdidMoveToParentViewController:self]; [tradeVCrelease]; // and then add as a subview [self.viewaddSubview: tradeVC.view];
while removing: [self.viewremoveFromSuperview]; // and then remove from the parent VC [selfremoveFromParentViewController];