开发者

How to use didSelectRowAtIndexPath uitableviewdelegate method

I am trying to create following functionality...

my tableview load names from sqlit3 db and with this name there are numbers associated with it and i want the value of this number in textfield w开发者_JS百科hen i select the name from my tableview. i tried it but not getting logic can any one please give me solution on this ...

Thanks in advance.


-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    textfield.text = [yourarry ObjectAtIndex:inexPath.row];
}

Use this event to get the selected row value..

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜