将顶部设置为半透明条后具有额外 y 原点的 TableView 框架,xib并且无法将偏移量设置为 tableview 以将 y 原点定位为 0 after keyboardwillbehidden。
UIEdgeInsets contentInsets = UIEdgeInsetsZero;
self.documentdetailTable.contentInset = contentInsets;
self.documentdetailTable.scrollIndicatorInsets = contentInsets;
CGPoint scrollPoint = CGPointMake(0, 0);
[self.documentdetailTable setContentOffset:scrollPoint animated:NO];
以上是将 tableview 内容偏移量设置为(0,0)但最初它就像(0,64)往常一样,我不知道如何给出偏移量(0,0)。默认情况下,最初表格位于(0,64,1024,800)框架和内容偏移处(0,64)。