ios - Unable to control UICollectionView using property -
so, have property uicollectionview object
@property (strong, nonatomic) iboutlet uicollectionview *collectionviewvariable;
i held control , dragged mouse, it's linked up.
my problem doesn't seem work.
i try calling
[self.collectionviewvariable registerclass:[mfh_mainfeed_condensedviewcell class] forcellwithreuseidentifier:@"mainipadfeedcell"];
i error:
terminating app due uncaught exception 'nsinternalinconsistencyexception', reason: 'could not dequeue view of kind: uicollectionelementkindcell identifier mainipadfeedcell - must register nib or class identifier or connect prototype cell in storyboard'
if put call within cellforitematindexpath using collectionview instead of variable, works.
i've tried following on button click, nothing.
self.collectionviewvariable.backgroundcolor = [uicolor blackcolor];
i have been @ 3 days. head hurts. can please tell me missing.
Comments
Post a Comment