开发者

How to use didSelectRowAtIndexPath uitableviewdelegate method

开发者 https://www.devze.com 2023-03-23 00:36 出处:网络
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开发者

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

精彩评论

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