這是我的問題。我用UISearchBar在UITableView的MutableArray中顯示文件。從文件/ Plist中讀取可變數組
所以我做了一個數組:
allTableData = [[NSMutableArray alloc] initWithObjects:
[[CRFParts alloc] initWithName:@"ABC" andDescription:@"DEF"],
[[CRFParts alloc] initWithName:@"GHI" andDescription:@"JKL"],
nil];
我周圍2000行的這一點。我使用excel文件構建了簡單的字符串,但是.m中的代碼比.m大。是否有可能從文件(plist/txt)中讀取這些內容?
感謝您的幫助!
是的,你可以。有很多例子閱讀plist文件... – Larme