使用 MonoTouch 的 sizeWithFont [英] sizeWithFont with MonoTouch

查看:34
本文介绍了使用 MonoTouch 的 sizeWithFont的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

MonoTouch 中 sizeWithFont 的等价物是什么?如果没有这样的方法,是否可以通过其他方式调用它?

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

推荐答案

下一次更新 (MonoTouch 1.1) 将提供 UIView.StringSize (string str, UIFont font) 形式的方法

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

这篇关于使用 MonoTouch 的 sizeWithFont的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆