我希望能够用红色绘制我的 UIImageView
框架,这样我可以在旋转和缩放它时看到它。设置层边框宽度和颜色不是我需要的,因为如果我旋转它,它也会旋转层(而 UIImageView
框架不会旋转)。这可能吗?有人知道如何执行此操作吗?
最佳答案
将它放在一个更大的具有红色背景色的 UIView 上。
UIView *redBackgroundView = [[UIView alloc] initWithFrame: … /* a bigger frame than imageView*/)];
[redBackgroundView: addSubview: imageview];
[self.view addSubview: redBackgroundView];
关于ios - 如何绘制红色的 UIImageView 框架,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14413479/