Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 479 Bytes

代码块积累.md

File metadata and controls

20 lines (16 loc) · 479 Bytes

代码块积累

1.imageView反转

	//创建transform对象
    CGAffineTransform transform = self.downImageV.transform;
    //顺时针旋转180度
    transform=CGAffineTransformRotate(transform, M_PI);
    //将新获取的CGAffineTransform函数赋给ImageView
    self.downImageV.transform = transform;

2.butto自动换行

	[button.titleLabel sizeToFit];
    button.titleLabel.numberOfLines = 2;
    button.titleLabel.adjustsFontSizeToFitWidth = YES;