Skip to content

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