Why am I getting a “Auto Layout still required after executing -layoutSubviews” error every time my app launches now?

前端 未结 9 873
盖世英雄少女心
盖世英雄少女心 2020-12-11 01:11

Since I added the following code, every time my app opens this UITableViewController it crashes:

 self.noArticlesView = [[UIView alloc] init];
          


        
9条回答
  •  失恋的感觉
    2020-12-11 01:21

    Checkout "Auto Layout still required after executing -layoutSubviews" with UITableViewCell subclass as the question appears to be the same.

    I was able to implement the category mentioned in one of the answers which solved the problem for me. However, I had to create the category on the UITableView class instead of the UITableViewCell class as is discussed in that particular answer.

提交回复
热议问题