How do I ‘trim’ an NSString so that I can make a new string out of only a certain part of the old one?
For example is I have the string “Monday the 12th of September”, how do I single out just the ‘Monday’ part?
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.
Using
NSRangeExample:
Provided ‘Firststring’ contains “Monday the 12th of September”, printing ‘Secondstring’ will give just ‘Monday’