iOS UITabelViewCell点击获得cell的text属性值

来源:互联网 发布:服务器端口怎么关闭 编辑:程序博客网 时间:2024/04/30 21:48

#pragma mark - UITableView点击跳转到DeviceStatusDetail页面- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {    // NSLog(@"点击了%ld,%ld",indexPath.section,indexPath.row);    UITableViewCell *cell = [tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:indexPath.row inSection:indexPath.section]];    NSString *text = [cell valueForKey:@"text"];// 获取点击的cell的text属性值    NSLog(@"点击了%@",text);}




更多iOS、Android、Python的文章,请点击:

http://blog.csdn.net/jamiecheung


更多Java、Unity3D的文章,请点击:

http://blog.csdn.net/u010841622

0 0
原创粉丝点击