0
我是一個初學者,可以從四個不同的類別中選擇一個演示應用程序。每個類別都需要你到我手動填充一個NSMutableArray看起來像這樣一個UITableView:從JSON填充NSMutableArray
slideshows = [[NSMutableArray alloc] init];
slideshow = [[Slideshow alloc] init];
[email protected]"All About Ducks";
[email protected]"Preso1";
[slideshows addObject:slideshow];
slideshow = [[Slideshow alloc] init];
[email protected]"The Computer Age";
[email protected]"Preso2";
[slideshows addObject:slideshow];
slideshow = [[Slideshow alloc] init];
[email protected]"Shovels and You";
[email protected]"Preso3";
[slideshows addObject:slideshow];
slideshow = [[Slideshow alloc] init];
[email protected]"Test Em Out";
[email protected]"Preso4";
[slideshows addObject:slideshow];
我做了所謂的幻燈片與性能presoTitle和presoInfo自定義對象。幻燈片是數組的名稱和幻燈片(小寫)代表幻燈片對象的每個實例(我應該多樣化我的名字方案,我知道...)
問題是,我如何從一個幻燈片數組外部文件,而不是手動寫出每個類別?先謝謝你StackOverflow!