0
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"

2 Answers 2

2

Look up -substringWithRange:

Sign up to request clarification or add additional context in comments.

Comments

0
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.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.