Subclassing worked for me as well. Here is the Swift solution:
class CustomTableView: UITableView {
override func layoutSubviews() {
if (self.window == nil) {
return
}
super.layoutSubviews()
}
}
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: