2012-06-24 53 views

回答

7

%%就像在正常c。實際上,所有格式說明符都與sprintf中的相同。

9

嘗試%%。你必須逃避它,因爲它是一個格式說明符符號。

+5

欲瞭解更多參考:[NSString格式說明符](https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Strings/Articles/formatSpecifiers.html) – sosborn