Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
NSString *str = @"ABCDEFGHI";
I would like to get the characters into position.
For example, i would extract the first, third and fourth position character: "ACD"
Look up -substringWithRange:
-substringWithRange:
Add a comment
NSString *trimmedString=[str substringFromIndex:[str length]1]; NSString *trimmedString1=[str substringFromIndex:[str length]3]; NSString *trimmedString2=[str substringFromIndex:[str length]4];
and append them to get desired result.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.