jjzjj

currentExpandedIndex

全部标签

iOS tableView 未填充数据

有人可以向我解释为什么这没有在我的viewController中填充我的tableView吗?我可以让它在UITableViewController中工作,但是当我制作一个带有tableView的UIViewController时它不会填充数据。在我的Storyboard中,我创建了一个带有TableView和TableView单元格的ViewController。当我运行程序时,我得到的只是我的空tableView。然而它在UITableViewController中工作得很好.h//MainViewController.h#import@interfaceMainViewContr

ios - 从表格 View 设置动态 View 的标题

我正在使用SWRevealViewController、ContentViewController和NavigationViewController(导航)的组合。Storyboard如下:在TableViewCell上单击我可以获得导航文本。我希望能够做的是将这些信息传递回自身。将ContentViewController的标题设置为所选单元格并加载其他所需数据。我怎样才能实现这个功能?这是我的NavigationViewController.m文件中的最新代码:-(void)tableView:(UITableView*)tableViewdidSelectRowAtIndexPa