码迷,mamicode.com
首页 > 其他好文 > 详细

debug输出rect,size和point的宏

时间:2014-10-29 17:09:34      阅读:171      评论:0      收藏:0      [点我收藏+]

标签:style   sp   on   log   bs   ef   size   as   nbsp   

#define NSLogRect(rect) NSLog(@"%s x:%.4f, y:%.4f, w:%.4f, h:%.4f", #rect, rect.origin.x, rect.origin.y, rect.size.width, rect.size.height)

#define NSLogSize(size) NSLog(@"%s w:%.4f, h:%.4f", #size, size.width, size.height) 

#define NSLogPoint(point) NSLog(@"%s x:%.4f, y:%.4f", #point, point.x, point.y) 


debug输出rect,size和point的宏

标签:style   sp   on   log   bs   ef   size   as   nbsp   

原文地址:http://blog.csdn.net/leochang130731/article/details/40587373

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!