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

itemWithImageNamed don't show image , also custom item & cell #267

Open
EarthMass opened this issue Aug 29, 2016 · 4 comments
Open

itemWithImageNamed don't show image , also custom item & cell #267

EarthMass opened this issue Aug 29, 2016 · 4 comments

Comments

@EarthMass
Copy link

EarthMass commented Aug 29, 2016

itemWithImageNamed don't show image , also custom item & cell,
Like Demo in "ListImageCell"

  • (void)cellWillAppear
    {
    [super cellWillAppear];
    [self.pictureView setImage:[UIImage imageNamed:self.imageItem.imageName]];
    }
    but, self.imageItem.imageName is nil,I don't konw what happened!
@EasonGaoDevelop
Copy link

i also find this problem ,do you solve it

@wuzer
Copy link

wuzer commented Feb 22, 2017

i have the same problem, how to fix?

@EarthMass
Copy link
Author

  • (void)cellWillAppear {
    [super cellWillAppear];

    self.myCustomViewItem = (MyCustomViewItem *)self.item;
    you must,assgin self.item value to customViewItem before use customViewItem.
    Like this , it work good!!!
    英语不好见谅啊

@wujichao
Copy link

this commit sucks
48b16f0

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

4 participants