2
我有一个UITableView
,我编程创建,我已添加一个UISearchBar
/UISearchDisplayController
作为子视图。它看起来像这样:问题与UISearchBar框架
这就是罚款,但是当我触摸它来调用搜索框的变化奇怪的是,任何想法,为什么?
我已经试过手动设置框,似乎并没有帮助。
UITableView
是UIViewController
的财产。
我有一个UITableView
,我编程创建,我已添加一个UISearchBar
/UISearchDisplayController
作为子视图。它看起来像这样:问题与UISearchBar框架
这就是罚款,但是当我触摸它来调用搜索框的变化奇怪的是,任何想法,为什么?
我已经试过手动设置框,似乎并没有帮助。
UITableView
是UIViewController
的财产。
我认为这是这个问题的副本UIsearchBar. Can't change frame。
答案是你不能搞乱UISearchBar的框架。
哇,我真的很惊讶!但是,嘿,至少现在我知道了! – Woodstock