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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -