【发布时间】:2017-06-15 13:53:09
【问题描述】:
我有 UIProgressView,我想设置它的圆角半径并进行变换,但圆角半径不能正常工作。
我在 Xamarin.ios 中的代码:
UIProgressView progressView = new UIProgressView(newFrame)
{
//Set background track color = gray
TrackTintColor = CustomColors.CustomColors.GetColor(CustomColors.CustomColors.ColorGray),
//Set progress track color = blue
ProgressTintColor = CustomColors.CustomColors.GetColor(CustomColors.CustomColors.ColorBlue)
};
//Set Y scale
progressView.Transform = CGAffineTransform.Scale(progressView.Transform, 1, 20f);
progressView.Layer.CornerRadius = 15f;
progressView.Layer.MasksToBounds = true;
progressView.ClipsToBounds = true;
进度视图:
【问题讨论】:
标签: ios transform uiprogressview cornerradius