【发布时间】:2009-12-08 01:53:43
【问题描述】:
在 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{width:100%}
- 真实:div{width:100}
怎么了?
【问题讨论】:
标签: iphone objective-c placeholder