Add Label under asynchronous image inside my CustomCell
DineshkumarVellingiri22 opened this issue · 1 comments
DineshkumarVellingiri22 commented
Hai there,
#import "CHTCollectionViewWaterfallCell.h"
@implementation CHTCollectionViewWaterfallCell
- (UIImageView *)imageView {
if (!_imageView) {
_imageView = [[UIImageView alloc] initWithFrame:self.contentView.bounds];
_imageView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
_imageView.contentMode = UIViewContentModeScaleAspectFill;
[_imageView.layer setMasksToBounds:YES];
}
return _imageView;
}
-(UITextView *)textView{
if(!_textView){
_textView=[[UITextView alloc] init];
}
return _textView;
}
- (id)initWithFrame:(CGRect)frame {
if (self = [super initWithFrame:frame]) {
[self.contentView addSubview:self.imageView];
[self.contentView addSubview:self.textView];
}
return self;
}
The bold lines are issue with me. How can i place label below for every asynchronous images inside my CustomCell. If i use the above line to add text it is not working either. I need clear explanation. Thanks in advance.
saxahan commented
Same problem I have. There is no clear explanation for this. How do we achieve this?