AruL
3/13/2018 - 9:26 PM

Iterate String Characters

Iterate string characters, to evaluate the individual characters. While iterating, individual characters will return as unichar.

for(int i=0; i < [string length]; i++)
{
  NSLog(@"%C", [string characterAtIndex:i]);
}


//unichar to NSString
[NSString stringWithFormat:@"%c",[string characterAtIndex:i]]