Ser*_*nce 0 cocoa-touch objective-c uiimageview ios
我希望能够以UIImageView红色绘制边框,以便在旋转和缩放时可以看到它。不需要设置图层边框的宽度和颜色,因为如果旋转它,它也会旋转该图层(而UIImageView框架不会旋转)。这有可能吗?有人对此有任何线索吗?
将其放在具有红色背景色的更大的UIView上。
UIView *redBackgroundView = [[UIView alloc] initWithFrame: … /* a bigger frame than imageView*/)];
[redBackgroundView: addSubview: imageview];
[self.view addSubview: redBackgroundView];
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
96 次 |
| 最近记录: |