-
Notifications
You must be signed in to change notification settings - Fork 410
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
How to use the drop down from the navigation bar's top right side #125
Comments
@ayushmandey97 currently the feature you're requesting is not supported. But I do want it because the rightButtonBarItem is also a part of navigation view. Thanks. (just out of curious, why do you close this interesting feature request?) |
Actually I was able to find a way to do that, so I closed it. My bad. So this is how I did it:
//Setting the toolbar for dropdown menu
let menuView = BTNavigationDropdownMenu(title: ". . .", items: items as [AnyObject])
self.navOptionView.customView = menuView
menuView.didSelectItemAtIndexHandler = {[weak self] (indexPath: Int) -> () in
print("Did select item at index: \(indexPath)")
} |
Nice workaround. Thanks for sharing 👍 |
No problem. Just one more thing, incase someone implements this till the feature is ready. func setMenuTitle(_ title: String) {
//self.menuTitle.text = title
} This is so that the ". . ." button doesn't change every time you select an option. |
@ayushmandey97 Another option is to just set |
Can I use Image ( three dots ) for right bar button and make dropdown ? |
So the bar button item having ". . ." is where I want the dropdown to happen, instead of the title.
Any ideas as to how to accomplish this?
The text was updated successfully, but these errors were encountered: