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);
You're looking for UIKit.UIGraphics.RectFill.
You can use miguel de icaza's Rosetta Stone to find out the mappings between objective-c selectors and monotouch methods.
I also find the monotouch API documentation very useful although there is no direct mapping between functions and selectors.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With