1. By Setvalue:forkey: When assigning a value to an object property, the True type of the property is determined by the type of value ,
Cases:
@property (nonatomic, strong) nsstring *praise;
[Self setValue:@ (forkey) :@ "Praise"];
Then the true type of praise is the NSNumber type,,,
2. When the type of value and the type of the corresponding property are of different base data types, the final data type is determined by the type of the corresponding property, (auto-conversion)
Cases:
@property (nonatomic ,assign) long praise;
[Self setValue:@ (20.38294) forkey:@ "Praise"];
Then the true type of praise is the long type,,, 20
@property (nonatomic, assign) cgfloat praise;
[Self setValue:@ (forkey) :@ "Praise"];
Then the true type of praise is the CGFloat type,,, 20.000000
IOS SetValue value type differs from corresponding property type