SimpleTwoWayBindingIOS icon indicating copy to clipboard operation
SimpleTwoWayBindingIOS copied to clipboard

Unbind a control

Open dcristolovean opened this issue 6 years ago • 2 comments

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.

dcristolovean avatar Jun 12 '18 16:06 dcristolovean

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.

manishkkatoch avatar Jun 13 '18 03:06 manishkkatoch

I am using this pod in my project could you please suggest some way to solve unbinding the controls

iosparesh avatar Sep 25 '19 08:09 iosparesh