Skip to content

Update SWCellButtonItem's image on tap #2

@andreamazz

Description

@andreamazz

Hi
First of all thanks for this library, it works just great.
I was wondering if there's a way to change the SWCellButtonItem's image within the handler of the item. Something along this lines:

    SWCellButtonItem *item = [SWCellButtonItem itemWithImage:[UIImage imageNamed:@"on"] handler:^(SWCellButtonItem *item, SWRevealTableViewCell *cell) {
        item.image = [UIImage imageNamed:@"off"];
    }];

I need to do this since my image is a toggle associated with the cell.
Is there any way to do so?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions