UISearchBar on UITableView strange offset issue

前端 未结 4 1850
情书的邮戳
情书的邮戳 2021-01-02 06:10

I have a UITableView which has a UISearchBar subview. This is all on the view of a UIViewController along with a few other subviews (l

4条回答
  •  有刺的猬
    2021-01-02 06:37

    I have same problem before about position of tableview and searchbar. i tried the following and it works for me.

    If you do not write code for that and if it is only problem of xib or storyboard then try all outlet's autosizing and origin setting to fix its position and see the difference. it may be work for you.

    enter image description here

提交回复
热议问题