How to remove extra empty cells in TableViewController, iOS - Swift

后端 未结 13 1037
暗喜
暗喜 2020-12-22 16:12

Hi I have a TableViewController with two static cells, however when displayed, it shows the two static cells, and then all the other empty cells for the tablevi

13条回答
  •  天涯浪人
    2020-12-22 16:15

    Add Below Code in your "override func viewDidLoad()" Or "override func viewWillAppear(_ animated: Bool)" functions.

    tblOutletName.tableFooterView = UIView()

提交回复
热议问题