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

Safari-style bar behavior definer + delegate for creating a delegate chain #56

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

VragonerDev
Copy link

With proposed delegate property in BLKFlexibleHeightBarBehaviorDefiner anyone can easily create delegate chains. E.g, when a UITableView sets its delegate to an instance of BLKFlexibleHeightBarBehaviorDefiner but also wants another object to act as the UITableViewDelegate you can write something like this:

myBar.behaviorDefiner.delegate = anotherObject;
self.tableView.delegate = (id<UITableViewDelegate>)myBar.behaviorDefiner;

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.

1 participant