iphone - initializing viewcontroller(piechartController) to viewcontroller's(covVC) variable -


I'm doing the following to start the viewcontroller (covVC) variable to start the viewcontroller (piechartController). .. Is it correct to change the visual controller variable?

  self.pie = [[Chattaktranter alloc] initWithNibName: @ "chat" bundle: zero]; Self.covVC = [[cover asset controller alloc] init]; Self.covVC.pieObj = self.pie;  

coverAssetController.h ------>

@Interface Cover AssetController: UIViewController {ChatController * pieObj; }

You must add the property to your cover asset controller:

  @ Interface Cover AssetController: UIViewController {PieChartController * pieObj; } @property (nanatomic, assign) pitch controller * piobj;  

and add the implementation to you:

  @ synthesis pieObj;  

Anyway, fix it ^^ but actually depends on what you want to do etc.


Comments