NSMutableString *str, *str1;
//分配这里如何附加NSMutableString与NSMutableString?
我使用 [str appendString:str1]
不工作。 [str appendFormat:str1]
不起作用。
那么,如何在另一个NSMutableString
上附加NSMutableString
。
@str
是empty string
初始化为nil
。 str1
有一定的价值。 [str appendString str1]
回报null
为了让我们帮助你,我们需要知道你的情况下“不工作”是什么意思,因为我们的水晶球目前不工作:)根据苹果文档,这两种方法都应该做你正在尝试的do(http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Classes/NSMutableString_Class/Reference/Reference.html#//apple_ref/occ/instm/NSMutableString/appendString :) – fresskoma 2010-08-30 11:45:39
什么是“不起作用”是什么意思?例外? – tobiasbayer 2010-08-30 11:46:42
不起作用意味着无法追加。 – user426795 2010-08-30 11:59:52