我无法在iPhone SDK开发者文档的NSString类参考中找到NSString sizeWithFont:forWidth:lineBreakMode:方法的文档(请参阅Kevin Ballard对“Sizing a UILabel (in the iPhone SDK) to fit?”的回答)。我应该在哪里看? 更新:我没有订阅iPhone操作系统库文档集,所以我的搜索没有工作。
我有一个XML文档,其中包含长度超过90,000个字符的元素*。 NSXMLNode* node = ...;
NSString* val = [node stringValue]; // this is not the full contents of the node!
第二行只给我80k左右。这显然不是我想要的,所以我会欣赏一些建议。 NSXMLNode是否损坏?我猜想我做错了什么。