tableview第一个cell上部有空白的地方

在viewController里输入这个就行了

self.automaticallyAdjustsScrollViewInsets = false

原文地址:https://www.cnblogs.com/huzi213/p/4920350.html