p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #7a482f} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px} span.s1 {color: #d62c24}
工程加入three20后可直接使用
#define TTLOGRECT(rect) \
TTDINFO(@"%s x=%f, y=%f, w=%f, h=%f", #rect, rect.origin.x, rect.origin.y, \
rect.size.width, rect.size.height)
#define TTLOGPOINT(pt) \
TTDINFO(@"%s x=%f, y=%f", #pt, pt.x, pt.y)
#define TTLOGSIZE(size) \
TTDINFO(@"%s w=%f, h=%f", #size, size.width, size.height)
#define TTLOGEDGES(edges) \
TTDINFO(@"%s left=%f, right=%f, top=%f, bottom=%f", #edges, edges.left, edges.right, \
edges.top, edges.bottom)
#define TTLOGHSV(_COLOR) \
TTDINFO(@"%s h=%f, s=%f, v=%f", #_COLOR, _COLOR.hue, _COLOR.saturation, _COLOR.value)
#define TTLOGVIEWS(_VIEW) \
{ for (UIView* view = _VIEW; view; view = view.superview) { TTDINFO(@"%@", view); } }