简体   繁体   中英

I don't see my buttons when running the simulator - Xcode10

I was trying to follow a tutorial online but the version that was being used was older than the most recent Xcode10. I have added a navigation controller and added buttons to the controller... navigation controller with buttons

But when I run the simulator, I do not see the 2 buttons that I created.... simulator without buttons

Any ideas why this would be the case? All help is appreciated :)

To calculate the height, UITableViewCell rely on the content of the cell and to be able to do that you should add constraints to the buttons you have already added.

在此处输入图片说明

or you should implement the delegate method

func tableView(_ tableView: UITableView, 
         heightForRowAt indexPath: IndexPath) -> CGFloat

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