문제

i want to define something similar to a computation method:

NSString *format = @"%d + 1";

In my code i want to do something like:

int computedNumber = sum(format,5) => the result should be 6.

could you give some suggestions? thank you

EDIT: or something similar to: NSNumber *no = [NSNumber numberWithFormat:format,5];

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top