Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Label under asynchronous image inside my CustomCell #181

Open
DineshkumarVellingiri22 opened this issue Feb 27, 2018 · 1 comment
Open

Comments

@DineshkumarVellingiri22

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.

@alkanyunus
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants