【问题标题】:Documentation for NSString sizeWithFont:forWidth:lineBreakMode: method (in the iPhone SDK)?NSString sizeWithFont:forWidth:lineBreakMode: 方法的文档(在 iPhone SDK 中)?
【发布时间】:2010-09-29 04:56:00
【问题描述】:

我在 iPhone SDK 开发人员文档的 NSString 类参考中找不到 NSString sizeWithFont:forWidth:lineBreakMode: 方法的文档(请参阅Kevin Ballard 对“Sizing a UILabel (in the iPhone SDK) to fit?”的回答)。我应该去哪里看?

更新:我没有订阅 iPhone OS Library 文档集,所以我的搜索不起作用。

【问题讨论】:

    标签: ios nsstring iphone-sdk-documentation


    【解决方案1】:

    在 XCode 中,查找 sizeWithFont:forWidth:lineBreakMode:。确保您选择/可用的 iPhone 文档集。

    如果您已登录开发者帐户,它也是 here

    【讨论】:

      【解决方案2】:

      这已被回答并接受,但只有一条评论:

      sizeWithFont:* 方法并不是严格意义上的 NSString 的一部分。它们是 UIKit 添加的 NSString 类别。

      这可能是您在订阅 iPhone OS 文档集之前无法搜索的原因。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2011-07-26
        • 2011-02-06
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-02-12
        • 2013-09-27
        相关资源
        最近更新 更多