Use %f
instead of %@
:
CGSize firstSize = CGSizeMake(1.0,1.0);
NSLog(@"[height] %f", firstSize.height);
%@
is used for all objects, here you are dealing with Core its float type, you need to use %f
for float.
If you want decimal precision as well, use %.2f
for 2 decimal digits.