Wednesday, 7 February 2018

Auto property synthesis will not synthesize property 'description' because it is 'readwrite' but it will be synthesized 'readonly' via another property (Type of property 'NSMutableArray *' in class extension does not match property type in primary class)



I created one mutable array variable with the name "description". In this case I'm getting one error and warning like this

Ex:
@property NSMutableArray *description;

War: " Auto property synthesis will not synthesize property 'description' because it is 'readwrite' but it will be synthesized 'readonly' via another property "

Error : " Type of property 'NSMutableArray *' in class extension does not match property type in primary class "

Now I changes my variable name like this

Ex:
@property NSMutableArray *desc;

Now it's gone.

If you still want to use "description"

https://stackoverflow.com/questions/34960068/auto-property-synthesis-will-not-synthesise-property-description-because-it-is?rq=1

No comments:

Post a Comment

Difference between == and ===

Difference between == and === https://stackoverflow.com/questions/24002819/difference-between-and == operator checks if their ...