ios - core data subclass with collectionViewCell -
in collectionview based app want cache last 100 cells loaded, , think best way me work core data. have custom class uicollectionviewcell, , cells objects of class. it's kind of this:
@interface cell : uicollectionviewcell @property (strong, nonatomic) nsstring *cellfacebookid; @property (strong, nonatomic) nsstring *cellmail; @property (strong, nonatomic) nsstring *celladdid; @property (strong, nonatomic) nsstring *cellcategory; @property (strong, nonatomic) iboutlet uiimageview *cellbackimg; @property (strong, nonatomic) iboutlet uiimageview *titlebarimage; @end
now i've created entity named cell, same attributes. can create nsmanagedobject subclass replace original "cell" class , still use uicollectionviewcell custom class?
you can't use subclass of nsmanagedobject uicollectionview cell. has subclass of uicollectionviewcell. besides uicollectionview reuses cells caching them.
Comments
Post a Comment