我正准备将 iOS 6 iPhone 应用程序更新到 iOS8。此代码的第二行产生一条错误消息(“文本”已弃用。在 iOS 3.0 中首次弃用)。语法错误多年来一直在我的应用程序中没有引起问题,但我认为我会在完成我的 iOS 8 版本之前清理所有错误。
- (void)tableView:(UITableView *)tv1 didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
[appDelegate muniClicked:[[tableView cellForRowAtIndexPath:indexPath] text]];
NSLog(@"cell clicked {%d, %d}}", indexPath.row, indexPath.section);
}