ios - Hide label when UITableView Cell is tapped -


I have a label within my cells that I want to show / hide when tapped. I know that I have to get the indicative path of the cell that was done from within the didSelectRowAtIndexPath . But how do I show that I am unsure about the label in particular that the label is hidden?

I show / am able to didSelectRowAtIndexPath within a way to hide it, or there are cellForRowAtIndexPath to deal with it and then Update it?

I did some research in this, but I did not really get a whole lot.

Here's all I have so far:

  var selectedRowIndex: NSIndexPath = NSIndexPath (forRow: -1, insection: 0) override function tableView (tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {selectedRowIndex = indexPath}  

cell index path as follows to get to:

  to cell = MyCustomCell as tableView.cellForRowAtIndexPath (indexPath) cell.myTextLabel.hidden = true  

in addition, Depending on your needs, you may want to opt out of cell as you are The well.

  TableView. Discover Route × Path (IndexPath)  

Comments

Popular posts from this blog

winforms - C# Form - Property Change -

c# - NewtonSoft JArray - how to select multiple elements with LINQ -

javascript - amcharts makechart not working -