Static UITableViewCell blank - Swift, iOS 8

I am trying to implement some static cells in UITableViewusing Xcode 6 beta 2 and Swift. I have successfully implemented dynamic cells.

When a user clicks on one of the dynamic cells, there is a transition to a new UITableViewControllerfor UITableViewthe static mesh.

I installed all of this in Xcode, and segue works, but when I drag the UILabel to one of the static cells, it just doesn't appear at run time. A few things can help narrow down what happens:

  • Data source methods are not implemented in UITableViewController
  • If I set the background of one of the static cells to a specific color, which is displayed at runtime

Any advice is greatly appreciated.

Thanks in advance

+4
source share
2 answers

I "fixed" the problem by creating a new storyboard ...

It worked in a clean project, maybe this is a mistake?

0
source

I believe this is the answer here:

fooobar.com/questions/815035 / ...

TL; DR: this is an Xcode bug with changing the view to a "compact" width, which, apparently, only affects alignment / positioning. Click on your UILabel inside the cell and go to the inspector to the end and play with "Installed" or note if it is disabled by default.

0
source

Source: https://habr.com/ru/post/1545730/


All Articles