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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -