mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
Do not resize UIRoundendImageView actually because on rotation everything is broken
This commit is contained in:
parent
ab7c448a60
commit
57a9179a30
1 changed files with 7 additions and 7 deletions
|
|
@ -31,14 +31,14 @@
|
|||
|
||||
// warning: for non-squared image, this function will generate an ellipsoidal image, not a round image!
|
||||
- (void)setRoundRadius:(BOOL)radius {
|
||||
CALayer *imageLayer = self.layer;
|
||||
CGFloat height = frame.size.height;
|
||||
CGFloat width = frame.size.width;
|
||||
CGFloat roundRadius = height > width ? width / 2 : height / 2;
|
||||
CALayer *imageLayer = self.layer;
|
||||
CGFloat height = imageLayer.frame.size.height;
|
||||
CGFloat width = imageLayer.frame.size.width;
|
||||
CGFloat roundRadius = height > width ? width / 2 : height / 2;
|
||||
|
||||
[imageLayer setCornerRadius:roundRadius];
|
||||
[imageLayer setBorderWidth:0];
|
||||
[imageLayer setMasksToBounds:YES];
|
||||
[imageLayer setCornerRadius:roundRadius];
|
||||
[imageLayer setBorderWidth:0];
|
||||
[imageLayer setMasksToBounds:YES];
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue