Documentation for NSString sizeWithFont:forWidth:lineBreakMode: method (in the iPhone SDK)?
问题 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