In my collectionView based app i want to cache the last 100 cells loaded, and i think best way for me is to work with core data. I already have a custom class for UICollectionViewCell, and obviously all the cells are objects of this class. it's look kind of like 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 an entity named Cell, with same attributes. can i create a NSManagedObject subclass that will replace my original "Cell" class and still use it as UICollectionViewCell custom class?