标签: ios4
//string convert into integer numberIntValue=[numberId intValue]; numberIntValue=16153;
如何将此整数拆分为16,15和3?
16
15
3
答案 0 :(得分:0)
NSInteger one=numberIntValue/1000; NSInteger two=(numberIntValue%1000)/10; NSInteger three=numberIntValue%10;