ios - Can't pass object by reference to another view controller -


i trying pass object reference (or pointer object) view controller.
how trying pass it:

secondviewcontroller* ctrl = [[secondviewcontroller alloc] initwithnibname:@"secondviewcontroller" bundle:nil andparam:&self.sharedlocationhandler]; 

and init @ second view controller:

- (id)initwithnibname:(nsstring *)nibnameornil bundle:(nsbundle *)nibbundleornil andparam:(ttlocationhandler**)aparam {     [self.sharedlocationhandler.locationmanager startupdatinglocation];     return self; } 

error getting:

address of property expression expected 

what did wrong here?

you cannot not pass pointer property properties getter-setter methods... pass pointer variable... check answer more details


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -