view
旋转
CGAffineTransform at =CGAffineTransformMakeRotation( M_PI / 2 ); // 先顺时钟旋转 90
at =CGAffineTransformTranslate(at, 200 , 0 );
[ self .benview setTransform:at];
view 缩小
UIView *tonguoview = [[UIView alloc] initWithFrame:CGRectMake( 0 , 100 , 349 , 190 )];
tonguoview.clipsToBounds = YES ;
tonguoview.layer.cornerRadius = 5 ;
tonguoview.backgroundColor = [UIColor blackColor];
[ self .view addSubview:tonguoview];
CGAffineTransform at =CGAffineTransformMakeRotation( M_PI / 2 ); // 先顺时钟旋转 90
at =CGAffineTransformTranslate(at, 200 , 0 );
[ self .benview setTransform:at];
view 缩小
UIView *tonguoview = [[UIView alloc] initWithFrame:CGRectMake( 0 , 100 , 349 , 190 )];
tonguoview.clipsToBounds = YES ;
tonguoview.layer.cornerRadius = 5 ;
tonguoview.backgroundColor = [UIColor blackColor];
[ self .view addSubview:tonguoview];
//
创建一个
view
UIView *seview=[[UIView alloc]initWithFrame:CGRectMake( 0 , 90 , 10 , 10 )];
// 短片界限
seview.clipsToBounds = YES ;
// 圆弧角
seview.layer.cornerRadius = 1 ;
// 背景色
seview.backgroundColor = [UIColor redColor];
// 让这个 view 显示
[ self addSubview:seview];
UIView *seview=[[UIView alloc]initWithFrame:CGRectMake( 0 , 90 , 10 , 10 )];
// 短片界限
seview.clipsToBounds = YES ;
// 圆弧角
seview.layer.cornerRadius = 1 ;
// 背景色
seview.backgroundColor = [UIColor redColor];
// 让这个 view 显示
[ self addSubview:seview];