I want to create a copy of cell object.. Following is my code but retrieving copyWithZone:]: unrecognized selector sent to instance
CollectionCell *cell = [cv dequeueReusableCellWithReuseIdentifier:@"KCell" forIndexPath:indexPath];
if(kCell == nil)
{
cell = [self getiPadCell:indexPath cv:cv dict:dict];
kCell = cell;
return cell;
}
else
{
cell = [kCell copy];
return cell;
}
Your CollectionCell
class should provide implementation of copyWithZone:
method. Also it should conform to NSCopying
protocol. Think of how you'd like to copy your cell and provide proper implementation. This Link may help you to understand it better
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With