// bounds 和frame的区别
// 父view的bounds 会影响到子view的坐标和大小
UIView *v1 =[[UIView alloc] initWithFrame:CGRectMake(100, 100, 100, 100)];
v1.bounds=CGRectMake(0, -50, 100, 100);
v1.backgroundColor=[UIColor yellowColor];
[self.view addSubview:v1];
NSLog(@"v1 frame %@ -----------v1 bounds %@",NSStringFromCGRect(v1.frame),NSStringFromCGRect(v1.bounds));
UIView *v2 =[[UIView alloc] initWithFrame:CGRectMake(0, 0, 30, 30)];
v2.backgroundColor=[UIColor greenColor];
[v1 addSubview:v2];
NSLog(@"v2 frame %@ -----------v2 bounds %@",NSStringFromCGRect(v2.frame),NSStringFromCGRect(v2.bounds));