Objective-C中的占位符,打印BOOL类型数据(二)

2014-11-24 08:49:45 ? 作者: ? 浏览: 4
d use %f for float, %lf for double. If you need to use scanf (or a variant thereof) with CGFloat, switch to double instead, and copy the double to CGFloat.




It is important to remember that %lf does not represent CGFloat correctly on either 32- or 64-bit platforms. This is unlike %ld, which works for long in all cases.


-->

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: