A arnieterm macrumors regular Original poster Oct 15, 2008 #1 I have an NSString that contains the phone # [only phone number]. I want to format this string to display in this way "###-###-####". What parameter should I pass to stringWithFormat or initWithFormat? Can anybody suggest? Thanks
I have an NSString that contains the phone # [only phone number]. I want to format this string to display in this way "###-###-####". What parameter should I pass to stringWithFormat or initWithFormat? Can anybody suggest? Thanks
robbieduncan Moderator emeritus Oct 15, 2008 #2 Personally I'd use the class that's actually designed for formatting numbers. The well documented NSNumberFormatter.
Personally I'd use the class that's actually designed for formatting numbers. The well documented NSNumberFormatter.