[英]How to place a UIButton below UITableView?
In Interface Builder, I have a UITableView
and I want to place a UIButton
below it. 在Interface Builder中,我有一个UITableView
,我想在其下面放置一个UIButton
。 I placed a UIView
into the lower part of the screen and placed the UIButton
into it -- I was not able to place the UIButton
onto the screen without the UIView
. 我将UIView
放置在屏幕的下部,并将UIButton
放入其中-没有UIView
我无法将UIButton
放置在屏幕上。
Now everything looks good in IB, however, when I run the application, the button is not displayed there although there is enough place below the table. 现在,在IB中一切看起来都不错,但是,当我运行该应用程序时,尽管表下方有足够的空间,但该按钮未显示在其中。 My colleague said me the UIButton
is probably covered with the table and that he went over this problem by creating the button programatically. 我的同事说我的UIButton
可能被桌子覆盖了,他通过编程创建按钮解决了这个问题。 But I want to create this button in IB... 但是我想在IB中创建此按钮...
据我所知,我们无法将图像添加到tableview中。因此,在创建新文件时,如果不使用UIViewController
也可以使用UITableviewController
,而不是UITableviewController
,您可以在Controller.ie tableview上添加任何元素。添加按钮.....希望此说明可能对您有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.