开发者

iPhone: Find Phone Number in Text

开发者 https://www.devze.com 2023-03-17 14:07 出处:网络
What I need is find in text Phones Numbers and make it colored and clickable and when click on that it\'s should call by this number...Is there on iPhon开发者_C百科e ready solution for that ? Or I sho

What I need is find in text Phones Numbers and make it colored and clickable and when click on that it's should call by this number...Is there on iPhon开发者_C百科e ready solution for that ? Or I should write regular expression to find phones numbers, than make it colored an clickable ? The reason I'm asking is that Android have ready method for that, and I don't need to do anything... Thanks...


If you put text in UITextView, there is property called dataDetectorTypes, assign it to UIDataDetectorTypeAll

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号