When building an iPad App, how can you draw a border around a UICollectionViewCell?
More details: I implemented a class ProductCell which extends UICollectionViewCell. Now, I would like to assign some fancy details, e.g. a border, shadow, etc. However, when trying to use something like this here, Xcode tells me that the receiver type 'CALayer' is a forward declaration.
Best Answer
Just for a bit more implementation:
in your.m
Make sure your class implements
as this is where the cell is setup.
You can then change
cell.layer.background
(only available once quartz is imported)See below