Use the \t escape character in the string literal to print the tab:
NSString *string = @"This is a tab:\tThis is tabbed!\n";
You can put \t in any string literal and do with it what you want from there: write it to a file, to STDOUT , whatever.
Wyatt anderson
source share