Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sizeWithFont with MonoTouch

Tags:

xamarin.ios

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...

like image 254
Jonas Stawski Avatar asked Sep 19 '09 23:09

Jonas Stawski


1 Answers

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

like image 124
miguel.de.icaza Avatar answered Jan 03 '23 19:01

miguel.de.icaza