简体   繁体   中英

Tableview with sections

I'm about to load a tableview with two sections. The data will be coming from core data. Would it be better to have them in two entities? There are 10 rows in each section. The sections will at a later stage grow to 20.

I would use an NSDictionary with two NSArray (or NSMutableArray). That way you would avoid if clauses. :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM