FPLog 是一个简单的日志记录器,帮助您跟踪 CGRect、CGSize 和 CGPoint 的值。这减少了您在想要检查 uiview 的 frame 时的痛苦。
UILabel* label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 200, 100)];
// Trace UIView frame.
[FPLog viewFrame:label];
// Trace UIView frame with title.
[FPLog viewFrame:label withTitle:@"=== Frame of label ==="];
// Other methods.
[FPLog viewSize:label];
[FPLog frame:label.frame];
[FPLog size:label.frame.size];
[FPLog point:CGPointMake(0, 0)];