Open ayushmandey97 opened 7 years ago
@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. Inside the BTNavigationDropdownMenu.swift file, comment out the following line.
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 menuView.shouldChangeTitleText = false
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?