After discussion with OP in chat, the issue turned out to be that the table cell / RoundedImageView
was in one nib, and RoundedImageView
with AsycImageView
was in another. The solution was remove RoundedImageView
from the cell, and load its nib in the cell's awakeFromNib
method:
@implementation InviteFriendsImageVIew
- (void)awakeFromNib
{
UINib *imageViewNib = [UINib nibWithName:@"RoundedImageView" bundle:nil];
RoundedImageView *imageView = [imageViewNib instantiateWithOwner:nil options:nil][0];
imageView.frame = // set frame here
[self addSubView:imageView];
self.roundedImageView = imageView;
}