I need to validate a UITextField to replace a blank space ‘ ‘ with ‘%20’ and was wondering how this is possible?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Check out the method stringByReplacingOccurrencesOfString:withString: on NSString if you are just looking to replace the characters in a string with another value.
Returns a new string in which all occurrences of a target string in the receiver are replaced by another given string.
If you are attempting to encode a URL, use stringByAddingPercentEscapesUsingEncoding: on NSString.
Returns a representation of the receiver using a given encoding to determine the percent escapes necessary to convert the receiver into a legal URL string.