How can I return the first three characters of an NSString?
mystr=[mystr substringToIndex:3];
Be sure your string has atleast 3 ch.. o.e. it will crash the app.
Here are some other links to check NSsting operations...
Link1
Link2
Apple Link
548k questions
547k answers
4 comments
86.3k users