iOS - Unable to set text of UILabel

后端 未结 2 891
日久生厌
日久生厌 2021-02-19 16:45

Ok let me explain the situation, I have two view controller let\'s call them first ans second.

  • FirstViewController inherit from UITableViewController
  • Seco
2条回答
  •  -上瘾入骨i
    2021-02-19 17:10

    The problem was in the initialization, i was setting the label before the view was loaded. Initialize the label in viewDidLoad solved the problem.

提交回复
热议问题