ios - Property is nil after having been assigned -


the private property declared as:

@interface camera () {     se3 *_transformationfromworld; } @end 

is assigned when camera object initialized:

self = [super init]; se3 *transformation = [[se3 alloc] initwithrotation:r withtranslation:t]; _transformationfromworld = transformation; [self initintrinsics];  return self; 

but in debugger window can see remains nil, while transformation object assigned normally. (i expanded code check wasn't se3 initialization method returning nil)

how possible?

solution:

comments @shahar pointed me right direction. when declared property (always in .m file):

@interface camera () @property se3 *transformationfromworld; @end 

it magically worked. care explain difference between way of declaring property , previous one?


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -