Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

viewDidAppear for UITableViewCell

I usually use viewDidAppear method to do some UI stuff on the view after it finished appearing and I used this method in various situations were it was very useful, however, I need to do some UI changes on a UITableViewCell after it finished appearing, is there any available method in the SDK that does a similar job like viewDidAppear but for UITableViewCell ?

p.s. willDisplayCell did not work in my case, I need something like didDisplayCell if it really exists.

like image 942
JAHelia Avatar asked May 27 '12 07:05

JAHelia


1 Answers

The UITableViewDelegate has these functions:

func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath)  func tableView(_ tableView: UITableView, didEndDisplaying cell: UITableViewCell, forRowAt indexPath: IndexPath) 

The cell itself does not have callbacks for this.

like image 142
neoneye Avatar answered Sep 28 '22 05:09

neoneye