Ios 用户界面单元的选定索引
我不熟悉iOS编程 我想将所选的Ios 用户界面单元的选定索引,ios,objective-c,Ios,Objective C,我不熟悉iOS编程 我想将所选的单元格(Cell.detailTextLabel.text)保存到同一viewController的表视图外部的另一个Textfield。 有人能告诉我怎么做吗?使用表视图的委托方法 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *cell = [tableView cellForRo
单元格(Cell.detailTextLabel.text)
保存到同一viewController
的表视图外部的另一个Textfield
。
有人能告诉我怎么做吗?使用表视图的委托方法
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
selectedLabelName = cell.textLabel.text;
}
在viewcontroller中声明变量名selectedLabelNamegreat..您尝试了什么?