简体   繁体   中英

How to place a UIButton below UITableView?

In Interface Builder, I have a UITableView and I want to place a UIButton below it. 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 .

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. My colleague said me the UIButton is probably covered with the table and that he went over this problem by creating the button programatically. But I want to create this button in IB...

据我所知,我们无法将图像添加到tableview中。因此,在创建新文件时,如果不使用UIViewController也可以使用UITableviewController ,而不是UITableviewController ,您可以在Controller.ie tableview上添加任何元素。添加按钮.....希望此说明可能对您有所帮助。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM