我用下面的語句到到NSString的轉換(用查找/替換)INT到的NSString問題
curr_rep_date = [tmpRptDt stringByReplacingOccurrencesOfString:tmpYrVal withString:[NSString stringWithFormat:(tmpCurrYearInt-1)]];
我宣佈
int tmpYrVal;
NSMutableString *tmp_dt,*curr_rep_date;
但該計劃似乎要崩潰和調試器沒有提供任何提示。
有人可以幫我解決這個問題,什麼是正確的用法。
我用上面的行代替。該程序仍在崩潰。 – testndtv 2011-01-29 14:24:48