I\'m not talking about the frame property, because from that you can only get the view\'s size in the xib. I\'m talking about when the view is resized because of its constra
For those who may still be facing such issues, especially with TableviewCell.
Just override the method:
-(void)layoutSubviews
{
//your code here like drawing a shadow
}
In case of UITableViewCell or UICollectionViewCell create a subclass of the cell and override the same method:
-(void)layoutSubviews
{
//your code here like drawing a shadow
}