CHTCollectionViewWaterfallLayout icon indicating copy to clipboard operation
CHTCollectionViewWaterfallLayout copied to clipboard

Add Label under asynchronous image inside my CustomCell

Open DineshkumarVellingiri22 opened this issue 6 years ago • 1 comments

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; }

@end

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.

DineshkumarVellingiri22 avatar Feb 27 '18 07:02 DineshkumarVellingiri22

Same problem I have. There is no clear explanation for this. How do we achieve this?

alkanyunus avatar Mar 28 '18 11:03 alkanyunus