我有UIProgressView,我想設置其角半徑和轉換,但角半徑不能正常工作。設置轉換或工作後設置角半徑IOS
我在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;
progressView:
這只是一個評論,低質量。 – Billa
我遇到了同樣的問題,並用上面的方法解決了它。 – numbbuaa