我正在尝试从我的通讯录中获取联系人。我在我的 tableview 上显示数据。首先,我设置了 tableviewcell 的高度。
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
然后我实施
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
我在这些委托方法中编写条件和逻辑。但是我面临一个问题,两种方法中索引路径的值不同。因此,当我遍历地址簿(在这些方法中)时,两个委托方法都以不同的顺序执行。为什么索引路径在两种情况下都有不同的值