I\'m currently developing an App for Xamarin Ios and i\'m struggling to find a way to apply a rounded border to simply one side off a button of a UIButton type.
In your UIButton subclass, override the LayoutSubviews
method and add a mask:
public override void LayoutSubviews()
{
var maskingShapeLayer = new CAShapeLayer()
{
Path = UIBezierPath.FromRoundedRect(Bounds, UIRectCorner.BottomLeft | UIRectCorner.TopLeft, new CGSize(20, 20)).CGPath
};
Layer.Mask = maskingShapeLayer;
base.LayoutSubviews();
}