我有一个这种格式的输出字符串。我需要格式化字符串,以便我可以分别显示 URL 和我的内容、描述。是否有任何功能,所以我可以轻松地格式化它们?编码 :
NSLog(@"Description %@", string);
输出字符串:
2013-07-28 11:13:59.083 RSSreader[4915:c07] Description
http://www.apple.com/pr/library/2013/07/23Apple-Reports-Third-Quarter-Results.html?sr=hotnews.rss
Apple today announced financial results for its fiscal 2013 third quarter ended
June 29, 2013. The Company posted quarterly revenue of $35.3 billion and quarterly
net profit of $6.9 billion, or $7.47 per diluted share.
Apple sold 31.2 million iPhones, which set a June quarter record.