manishkkatoch / SimpleTwoWayBindingIOS

An ultra light, ultra simple two way binding library for IOS and Swift.
MIT License
165 stars 48 forks source link

Unbind a control #4

Open dcristolovean opened 6 years ago

dcristolovean commented 6 years ago

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.

manishkkatoch commented 6 years ago

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.

iosparesh commented 4 years ago

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