Example of what I am trying to do:
String = “This is my sentence”
I am looking to get this as a result: “TIMS”
I am struggling with objective-c and strings for some reason
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.
Naïve solution:
Note that this is kinda stupid about breaking up words (just going by spaces, which isn’t always the best approach), and it doesn’t handle UTF16+ characters.
If you need to handle UTF16+ characters, change the
if()statement inside the loop to: