ios - Populating NSMutableArray from JSON -
i'm beginner working on presentation application lets pick 4 different categories. each category takes uitableview manually populated nsmutablearray looks this:
slideshows = [[nsmutablearray alloc] init]; slideshow = [[slideshow alloc] init]; slideshow.presotitle=@"all ducks"; slideshow.presoinfo=@"preso1"; [slideshows addobject:slideshow]; slideshow = [[slideshow alloc] init]; slideshow.presotitle=@"the computer age"; slideshow.presoinfo=@"preso2"; [slideshows addobject:slideshow]; slideshow = [[slideshow alloc] init]; slideshow.presotitle=@"shovels , you"; slideshow.presoinfo=@"preso3"; [slideshows addobject:slideshow]; slideshow = [[slideshow alloc] init]; slideshow.presotitle=@"test em out"; slideshow.presoinfo=@"preso4"; [slideshows addobject:slideshow];
i made custom object called slideshow properties presotitle , presoinfo. slideshows name of array , slideshow (lower case) represents each instance of slideshow object (i should diversify name scheme, know...)
question is, how populate slideshows array external file instead of writing out manually each category? thank in advance stackoverflow!
you store slideshow information in plist. link should helpful in that.
Comments
Post a Comment