iPhone Development 101
This domain is for sale.

iPhone 101

Code Tips

Resources

More

To replace all occurrances of a string within another string, use NSString's stringByReplacingOccurrencesOfString method. This example removes all commas from a string:


NSString *noCommas = [textField.text stringByReplacingOccurrencesOfString:@"," withString:@""];

Also see Finding and Replacing Substrings.

More String Functions

TopHome