i am doing the following to initialize the viewcontroller(piechartController) to the viewcontroller's(covVC) variable like following …is it right to change the view controller variable ?
self.pie = [[ChatController alloc] initWithNibName:@"Chat" bundle:nil];
self.covVC = [[coverAssetController alloc] init];
self.covVC.pieObj = self.pie;
coverAssetController.h------>
@interface coverAssetController : UIViewController {
ChatController *pieObj;
}