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

support UITablevViewCell using an accessoryView. fixes #206 #352

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

support UITablevViewCell using an accessoryView. fixes #206 #352

wants to merge 1 commit into from

Conversation

movesmyers
Copy link

No description provided.

@confile
Copy link

confile commented Sep 23, 2015

+1

@confile
Copy link

confile commented Sep 23, 2015

LGTM

@EugeneUr
Copy link

EugeneUr commented Oct 6, 2015

Thank you for the hint in regards to the change. Super useful!

However, I did find that this doesn't always work since lastObject doesn't guarantee to be the UIButton we are after or the accessoryView we care about. Therefore, you will need to do something along the lines of:

        UIView *accessory;
        if (self.accessoryView != nil) {
            accessory = self.accessoryView;
        } else {
            for (UIView *view in self.cellScrollView.superview.subviews) {
                if ([view isKindOfClass:[UIButton class]]) {
                    accessory = view;
                }
            }
        }

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

Successfully merging this pull request may close these issues.

3 participants