I would like to specify a tab length or tab stops when using \t
in the function stringWithFormat:
buttonText3 = [NSString stringWithFormat:@"D:\t%ld:%02ld" , hoursAndMinutesDay.hours,hoursAndMinutesDay.minutes];
I have already tried to use a backspace after the tab but this does not work:
[NSString stringWithFormat:@"D:\t%c%ld:%02ld", 0x0008, hoursAndMinutesDay.hours,hoursAndMinutesDay.minutes];
Using a number of spaces instead \t
is not an option since the text before \t
has different widths depending on the characters.