如何获取?我试过用abs()但是只对int有效,不知道有没有什么方法实现?
CGFloat flo = -123; abs(flo)
结果返回0
用fabs()
fabs()
CGFloat f = -123; fabs(f);