我有一個常量定義爲:字符串是否定義爲不是NSStrings的常量?
#define BEGIN_IMPORT_STRING @"Importing Hands!";
,但我得到一個錯誤,當我試圖用Concat的:
NSString *updateStr = [NSString stringWithFormat:@"%@%@", BEGIN_IMPORT_STRING, @" - Reading "];
,如果我有一個字符串
更換這不會發生NSString *updateStr = [NSString stringWithFormat:@"%@%@", @"foo", @" - Reading "];
或本地串
NSString *temp = @"foo";
NSString *updateStr = [NSString stringWithFormat:@"%@%@", temp, @" - Reading "];
你只是重複我的回答=) – Nekto
我們張貼在同一時間... – Wevah