我需要傳遞一個字符到第no行。 2:第一方法我嘗試,如何通過unichar對象?
1) unichar dicttxt = [[myword lowercaseString] characterAtIndex:0];
2) fileName = [[NSBundle mainBundle] pathForResource:dicttxt ofType: @"txt"];
第二方法I試過,
NSString *dicttxt = [[myword lowercaseString] characterAtIndex:0];
fileName = [[NSBundle mainBundle] pathForResource:dicttxt ofType: @"txt"];
兩種方法表明錯誤Make pointer from integer without a cast.
爲什麼你不使用NSString的任何特定原因? – 2010-08-26 05:46:12