我目前正在编写一个应用程序,使用故事板,UITableView在同一窗口中包含两个s.
运行应用程序时,第一个UITableView将填充许多"注册号".
当用户点击一个单元格时,第二个UITableView应该填充有关所选单元格的详细信息.
当点击第一个表中的数字时,我有一个驱动:
[mySecondTableView reloadData]
Run Code Online (Sandbox Code Playgroud)
它做的.我的印象是,在调用reloadData命令时,它应该同时调用:
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
Run Code Online (Sandbox Code Playgroud)
和
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
Run Code Online (Sandbox Code Playgroud)
第一次开火,但第二次不开火.我有数据源和委托连接到自己.
我不确定我错过了什么.
这两种方法都是要解雇吗?