原因:width
and height
elements of CGSize
are declared asCGFloat
.On the 64-bit platform, CGFloat
is the same as Double
and has 64-bit,whereas Float
has only 32-bit.
解决方法:例如Int类型转换成CGfloat,如果转成Float类型报标题错误
原因:width
and height
elements of CGSize
are declared asCGFloat
.On the 64-bit platform, CGFloat
is the same as Double
and has 64-bit,whereas Float
has only 32-bit.
解决方法:例如Int类型转换成CGfloat,如果转成Float类型报标题错误