recherche

Maison  >  Questions et réponses  >  le corps du texte

ios - UITableView 滑动之后会给顶部view的 position Y +20?

我在storyboard里面画了一个tableview

想下滑动tableview 之后,顶部的statusbar会出现一个小空白,然后所有的view

That is:

scrolling 之前:

topView.frame.y = 0

tableView.frame.y = 64

scrolling之后

topView.frame.y = 20

tableView.frame.y = 84

然后顶部的view就会有一个小空白,因为frame.y = 20。

这个情况会在我想 cell contentview里面添加控件时出现,如果content里面不添加控件,就不会出现


滑动后多出来的空白

巴扎黑巴扎黑2889 Il y a quelques jours334

répondre à tous(0)je répondrai

Pas de réponse
  • Annulerrépondre