- 修改cell.imageView.frame大小
- UIView旋转
- Objective-C中的Literals
- 打印Rect, Size, Point
---------------------------------------------------------------------
修改cell.imageView.frame大小
The best way is to add -
to your cell subclass like this:
(void)layoutSubviews
- (void)layoutSubviews { [super layoutSubviews]; self.imageView.frame = CGRectMake(0.0f , 0.0f, 32.0f, 32.0f); }
---------------------------------------------------------------------
UIView旋转
float rotateAngle = M_PI; CGAffineTransform transform =CGAffineTransformMakeRotation(rotateAngle); view.transform = transform;
---------------------------------------------------------------------
Objective-C中的Literals
---------------------------------------------------------------------
打印Rect, Size, Point
NSLog(@"%@", NSStringFromCGRect(rect)); NSLog(@"%@", NSStringFromCGSize(size)); NSLog(@"%@", NSStringFromCGPoint(point));