我有這種格式的輸出字符串。 我需要格式化字符串,以便我可以分別顯示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.
我已經提取了網址,我如何比較提取的網址與myString並只顯示說明? – Siva
搜索你的字符串,並用[無]取代[提取的網址]! – AVEbrahimi
目標C中是否有任何函數用於搜索和替換? – Siva