Search code examples
uikitxamarin.ios

What is UIRectFill() in Monotouch?


In a couple of ObjC projects in the overloaded drawRect: methods I have seen UIRectFill() being used. What is it doing and what is the equivalent of it in Monotouch?

For instance here, where is it putting the filled rectangle to/wher is it drawing it to:

CGRect borderRect = bounds;
UIRectFill(borderRect);
borderRect.origin.x = CGRectGetMaxX(bounds) - borderThickness;
UIRectFill(borderRect);

Solution

  • You're looking for UIKit.UIGraphics.RectFill.