NSString *html="html page to parse";
NSString *text="some html text";
html = [html stringByReplacingOccurrencesOfString:
[NSString stringWithFormat:@"%@>", text] withString:@""];
我的问题是@"%@>"
会在stringwithFormat中做什么。stringWithFormat是如何在这里使用的?
感谢
[html stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding] – GhostRider 2010-12-23 05:41:56