Bartłomiej Semańczyk
Bartłomiej Semańczyk

Reputation: 61774

How to access UITableViewCell from UITableView in different UIViewController?

I have very complex cell in UITableView within UIViewControllerA. Now I need to use the same cell within UITableView of UIViewControllerB.

  1. How to do this without copy and paste views from one scene to another?
  2. I don't want to use xib approach.
  3. Is it related to registerNib:forCellReuseIdentifier?

Upvotes: 2

Views: 74

Answers (1)

Rudolf Adamkovič
Rudolf Adamkovič

Reputation: 31486

You mentioned you don't want to use xib. Storyboards don't support this and therefore the last option you have is to construct your UITableViewCell in code. With the new Auto Layout anchors, it's not that bad.

Upvotes: 2

Related Questions