SimpleTwoWayBindingIOS
SimpleTwoWayBindingIOS copied to clipboard
Unbind a control
Probably a stupid question ... but how do you un-bind a control ? I added the binding to a view in a UITableViewCell and I'm having some troubles as other cells are reacting to the bind when my cell is off screen. While on-screen, all's good, updates realtime. I think the way to fix that would be to unbind on didEndDisplayingCell.
Great question. I did not bake in the unbind cases. Ideally, the Bindable protocol should provide unbind(for:) method to remove the target added for Selector firing valueChanged.
I am using this pod in my project could you please suggest some way to solve unbinding the controls