2011-07-27 6 views

답변

2

만 첫 번째 인수 형식이, 당신 때문에 생성 된 형식 문자열을 사용하려면 다른 stringWithFormat:이 필요합니다. 그래서 같은 :

bl.text = [NSString stringWithFormat:[NSString stringWithFormat:@"%@%@", @"%", @"d"], 9]; 
                   //^OR @"%%%@", @"%d" if only the 'd' is variable 

작업의 종류에 더 적합 할 것 인 NSScanner 또는 -[NSNumber stringValue] 또는 뭔가처럼 보이지만.

+0

이것은 정확하지만 OP가 미친 듯합니다. :) – jtbandes