开发者

Is it possible to link a table cell

开发者 https://www.devze.com 2023-02-04 06:49 出处:网络
I wonder if it is possible to link a table cell in a tableview开发者_Go百科. I have a tableview with two sections. The first section hold some address data in six cells and the second section has only

I wonder if it is possible to link a table cell in a tableview开发者_Go百科. I have a tableview with two sections. The first section hold some address data in six cells and the second section has only one cell and this should call the google maps app when clicked. Is something like this possible and how does it work?


In didSelectRowForIndexPath filter on indexPath.section and indexPath.row. indexPath.section should be 1 (=second section) and indexpath.row should be 0 (=first row). If both match you trigger the required action.


@crazer yes it is possible to link a custom table cell in your UITableView.....if i understant your problem well u need to print different data in two setions through custom table cell......that u will do through the conditions .......but u have to subclass UITableViewCell. For further information please follow the link (Table View Cells - Subclassing UITableViewCell).....http://www.bogotobogo.com/XcodeSDK-Chapter7B.html

Hope u got my point!! Good Luck

0

精彩评论

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