I have a NSString like this:
NSString
Hello World of Twitter Lets See this >
I want to transform it to:
Hel
Split the string into components and join them by space:
NSString *newString = [[myString componentsSeparatedByCharactersInSet:[NSCharacterSet newlineCharacterSet]] componentsJoinedByString:@" "];