开发者

Tableview with sections

开发者 https://www.devze.com 2023-03-23 19:43 出处:网络
I\'m about to load a tableview with two sections.The data will be 开发者_JS百科coming from core data.Would it be better to have them in two entities?There are 10 rows in each section.

I'm about to load a tableview with two sections. The data will be 开发者_JS百科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. :)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号