Friday 15 July 2011

ios - Change a view in a table view cell following a button press in another view -



ios - Change a view in a table view cell following a button press in another view -

i want alter background color of view have in table view cell next button press in view in table view. view connected iboutlet table view cell class. iv'e tried using delegation didn't seem work:

//tableview class protocol viewdelegate { func changebackground() } ... var delegate: viewdelegate? //the ibaction { delegate?.changebackground() } //tableviewcell class class tableviewcell: uitableviewcell , viewdelegate { func changebackground() { self.cellview.backgroundcolor = uicolor.redcolor() } }

how do it? many :)

ios uitableview swift

No comments:

Post a Comment