Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
你好朋友我是 TableView 的新手.....我需要帮助..请
当我单击每一行时,我必须在导航栏上设置标题我应该在导航栏上获得相同的行名......朋友我的表中有 23 行,所以请建议我解决我的问题请......
谢谢和雷加
在tableView:didSelectRowForIndexPath:中,编写以下代码:
tableView:didSelectRowForIndexPath:
self.title = [NSString stringWithFormat:@"Cell%d",indexPath.row];
试试看。self.title = nameoftherow; [self.view setNeedsDisplay];_tableView:didSelectRowForIndexPath:
self.title = nameoftherow; [self.view setNeedsDisplay];