Documentation for NSString sizeWithFont:forWidth:lineBreakMode: method (in the iPhone SDK)?

人盡茶涼 提交于 2020-01-03 03:57:41

问题


I can't find the documentation for the NSString sizeWithFont:forWidth:lineBreakMode: method (see Kevin Ballard's answer to "Sizing a UILabel (in the iPhone SDK) to fit?") in the NSString Class Reference in the iPhone SDK Developer Documentation. Where should I look?

Update: I hadn't subscribed to an iPhone OS Library doc set, so my search didn't work.


回答1:


In XCode, look for sizeWithFont:forWidth:lineBreakMode:. Make sure you have the iPhone docset selected/available.

It's also here, if you're logged into your developer account.




回答2:


This has been answered and accepted, but just one more comment:

The sizeWithFont:* methods are not strictly part of NSString. They are categories of NSString added by UIKit.

That's probably why your search didn't work before you subscribed to the iPhone OS doc set.



来源:https://stackoverflow.com/questions/406226/documentation-for-nsstring-sizewithfontforwidthlinebreakmode-method-in-the-i

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!