Wednesday 15 April 2015

cocoa touch - Properties on a Class Not Changing -


OK, I have 2 squares.

One

  switch (_allProperties.switchNumber) with one and all of the properties {case 0: CCLOG (@ "Saving Information");  

In the square with all the methods. CCalog (@ "Furnamber =% d", number A); CCalog (@ "secondnumber =% d", number B); // I get the exact number on the DBG _Liproperties: IFirstNumber = numberA; _allProperties.secondNumber = numberB; CCalog (@ "Properties first number =% d", _lotest properties; first number); CCLG (@ "Properties SecondNumber =% d", _ All Properties. Second Number); // I'm getting 0 on both of these logs. break;

Thus, I have all methods on class

  @property (strong) multiplier class _allProperties for all * properties;   

And here's how. First number and amp; .SecondNumber Properties is added toClass

  @property (nonatomic, assigned) int firstNumber; @property (nonatomic, assigned) int secondNumber;   

What am I missing? Why is not the property getting ??

Thank you for your time, guys are a good day!

Now I see, you still declare property properties and assign to this class Do not and do not invoke. Before using _allProperties, you should allocate and invoice it: _allProperties = [[attribute class alloc] init];

No comments:

Post a Comment