1
如何搜索NSString
Xcode iOS中的url? 例如,如果掃描其中的在NSString中查找url
HTTP://
,並檢測其中該URL的結尾,並返回URL字符串。
NSSearchFieldCell Class Reference
僅適用於Mac開發。
如何搜索NSString
Xcode iOS中的url? 例如,如果掃描其中的在NSString中查找url
HTTP://
,並檢測其中該URL的結尾,並返回URL字符串。
NSSearchFieldCell Class Reference
僅適用於Mac開發。
退房這個環節我覺得應該是工作NSDataDetector
NSRange選項在iPhone一樣[temp1中rangeOfString:@ 「HTTP」] – Hiren 2012-01-13 13:10:43
更新:你們搖滾!我在這裏也找到了很棒的代碼 - (http://stackoverflow.com/questions/5965844/nsdatadetector-with-nstextcheckingtypelink-detects-url-and-phonenumbers) – BlockReader 2012-01-13 14:33:05