I am getting this below warning after I update the Xcode to 6.3 version.
Using integer absolute value function 'abs' when argument is of floating point type
Example
CGPoint startPoint = CGPointMake(15.0f, 25.0f);
CGPoint endPoint = CGPointMake(10.0f, 20.0f);
CGFloat centerDiff = abs(startPoint.y - endPoint.y);
abs()
expects integers. You should use fabs(value)
for floating point values
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With