iOS 14 tableview showing white space bottom

 Problem:

I had developed my app from ios 13 to till now version.In ios 17 it works fine.But in ios14 tableview shows some white spaces.How to avoid that?

Solution:

Because you added height for footer in tableview delegate method.

You must have to add the viewForFooterInSection as like below to avoid the white spaces

    func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {

        return 10.0

    }

    

    func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {

        let view = UIView()

        view.backgroundColor = .clear

        return view

        

    }

Comments

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

store cgpoint in userdefaults iOS swift