Objective-c では ... プレースホルダー char(%) を表現したいのですが、私のコードはそうではありません....
NSString *base = @"<style type=\"test/css\">div{width:100\%}</style><body>%@</body>";
NSString *html = [NSString stringWithFormat:base, @"hello world"];
NSLog(@"%@",html);
- 期待: div{幅:100%}
- 実数 : div{幅:100}
なにが問題ですか?