dimanche 1 mars 2015

Handling button interaction of a dequeueReusableCell in iOS Swift

Okay, I have been having troubles with this for days and can't seem to find anything similar. I am making an iOS app that relies on a table view. In each cell of the table view, there are 4 buttons aligned on the bottom. I have a cell class that is pretty standard and a feedController to handle the table and setting all the items of the cell. Everything works fine on it but I can not figure out how to handle the button clicks within the cell. I can hard code it into my cell class, but then every 3 cells has the same interaction. Is there a way to pass the button click function from the cell class into the controller? I have tried checking the state from the controller and that has not worked.




Aucun commentaire:

Enregistrer un commentaire