UITableView中的UIView不会在运行时显示

时间:2013-05-17 19:00:54

标签: ios interface-builder uitableview xcode-storyboard

我在故事板文件中有一个带UI的UITableViewController。我在UITableView上拖放了一个UIView。它在Interface Builder中看起来很棒,但在运行时根本不显示:

UIView inside UITableView

有关如何解决的任何提示?

更新:我的项目基于本教程:https://devcenter.heroku.com/articles/ios-core-data-buildpack-app#add-new-tasks - 但其中一个不同之处在于教程使用的是NIB文件而且我有一个Storyboard文件。

1 个答案:

答案 0 :(得分:0)

尝试在viewDidLoad中使用bringToFront方法:

[tableView bringSubviewToFront:view];