I am trying to pass object by reference (or pointer to object) to another view controller.
This is how I am trying to pass it:
SecondViewController* ctrl = [[SecondViewController alloc] initWithNibName:@"SecondViewController" bundle:nil andParam:&self.sharedLocationHandler];
And this is my init at second view controller:
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil andParam:(TTLocationHandler**)aParam {
[self.sharedLocationHandler.locationManager startUpdatingLocation];
return self;
}
Error that I am getting:
Address of property expression expected
What I did wrong here?