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.
我是 iOS 编程新手,我想将 Selected 保存到同一个表视图之外的Cell (cell.detailTextLabel.text)另一个。谁能建议我怎么做?TextfieldviewController
Cell (cell.detailTextLabel.text)
Textfield
viewController
使用表格视图的这个委托方法,
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath]; selectedLabelName = cell.textLabel.text; }
在视图控制器中声明变量名selectedLabelName