【问题标题】:UIView border without a black thin line没有黑色细线的 UIView 边框
【发布时间】:2014-04-24 13:20:05
【问题描述】:

我正在尝试在 UIView 周围绘制边框,但在边框周围不断出现一条细黑线。
我想知道是否可以从边框上移除那条细黑线……请看图片。

this.rssNumberView = new UIView ();
this.rssNumberView.Layer.CornerRadius = 15;
this.rssNumberView.Frame = new RectangleF (66.5f, 0, rssViewHeightAndWidth, rssViewHeightAndWidth);
this.rssNumberView.BackgroundColor = UIColor.FromRGB(35, 44, 119);
this.rssNumberView.Layer.BorderColor = UIColor.White.CGColor;
this.rssNumberView.Layer.BorderWidth = 2.0f;

【问题讨论】:

    标签: c# ios uiview xamarin.ios xamarin


    【解决方案1】:

    也许你可以试试这个:

    this.rssNumberView.Layer.MasksToBounds = false;
    

    【讨论】:

      猜你喜欢
      • 2012-01-19
      • 1970-01-01
      • 2016-10-20
      • 1970-01-01
      • 1970-01-01
      • 2014-07-09
      • 2018-10-30
      • 1970-01-01
      • 2011-03-20
      相关资源
      最近更新 更多