collectionview configuration with headers
I have 2 objects, lets call them super and sub, each super object is a
standalone object, but each sub object must contain a property of that
super object. Now i'm trying to configure a collection view
lets say I have 4 super objects and 70 sub objects, I want a section for
each super object, and I want to display all 70 sub objects (since each
sub object has its super property) I wanna organize those sub objects
under their relevant super object
for now I have all sub objects into an array of something like 70 objects
in count. but how do I organize everything and make it dynamic ? so that
if i'll add more sub objects they will go straight under their correct
super object section
basically need help configuring these:
-(NSInteger)collectionView:(UICollectionView *)collectionView
numberOfItemsInSection:(NSInteger)section
-(NSInteger)numberOfSectionsInCollectionView:(UICollectionView
*)collectionView
No comments:
Post a Comment