usersfreeiphonecode
Friday, 2 January 2015
Remove white space from contact number fetched from phone book
NSString
* strippedNumber = [
stringName
stringByReplacingOccurrencesOfString
:
@"[^+0-9]"
withString
:
@""
options
:
NSRegularExpressionSearch
range
:
NSMakeRange
(
0
, [
stringName
length
])];
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment