Open talis00051 opened 6 years ago
@talis00051 , I'm afraid it's not. Feel free adding the missing @IBOutlet open weak var plusButton
to
@talis00051 , actually, my fork has it, so you can give it a try https://github.com/dodikk/NMessenger/blob/latest-fixes/nMessenger/Source/Messenger/Components/InputBarView/NMessengerBarView.swift#L28
P.S. It's not swift 4 compatible yet. Sorry.
Sorry, but how to disable the photo button after added this line? btw I am using swift 3 only, haha
An IBOutlet
for button by @talis00051 https://github.com/eBay/NMessenger/pull/171
Sorry, but how to disable the photo button after added this line?
@talis00051 , Have you tried this?
let castedBarView = super.inputBarView as! NMessengerBarView
castedBarView.plusButton.isEnabled = false
@talis00051 , the example above is an ugly prototype. I suggest retaining a reference to NMessengerBarView
in func getInputBar()
.
public override func getInputBar() -> InputBarView
{
let barView = /*load from your own nib or from a default one */
// more customizations
//
self._castedBarView = barView
}
Thank you! I have finally disabled it.
Is there a way to disable the Photo or Gallery button in the input view?