tags:

views:

312

answers:

2

What's the equivalent of sizeWithFont in MonoTouch. If there's no such method, is it possible to invoke it some other way?

All I want to do is resize the label based on the text...

+1  A: 

To answer my own question... Use selectors to pimboke the objective-c methods:

http://monotouch.net/index.php?title=Documentation/Objective-C%5FSelectors

Jonas Stawski
Changing the accepted answer as this should still work, miguel.de.icaza's answer is a better fit
Jonas Stawski
+4  A: 

The next update (MonoTouch 1.1) will have the methods available as UIView.StringSize (string str, UIFont font)

miguel.de.icaza
Thanks Miguel, for the update. I must add you guys did a great job with MonoTouch...
Jonas Stawski