我想在我的 UIView 上添加圆角图像,所以我将我的两个图像制作为 12x12px 圆角。
考虑到他必须在整个屏幕底部以纵向和横向模式自动对齐,我想知道如何最好地添加我的视图!
这就是我现在所做的,但这不起作用:
CGSize result = [[UIScreen mainScreen] bounds].size;
self.brcLeft = [[UIImageView alloc] initWithFrame:CGRectMake(0.0, result.height-12.0, 12.0, 12.0)];
self.brcLeft.image = [UIImage imageNamed:@"brc-left"];
[self.view addSubview:brcLeft];
self.brcRight = [[UIImageView alloc] initWithFrame:CGRectMake(result.width-12.0, result.height-12, 12.0, 12.0)];
self.brcRight.image = [UIImage imageNamed:@"brc-right"];
[self.view addSubview:brcRight];