开发者

How to make two tableview cell in one controller class in iphone

I am making two tableview cell in one controller class on vertical style. I have different value both the cell. Left cell have some name val开发者_运维知识库ue for eg(name :pradeep),and right side cell have some price value so if select on left cell on 3row and right side cell on 2 row so this two cell value I have to pass for open url.

Please help on this how to know which cell index are selected from both the tableview cell and what the value on that selected cell.


If I understand your requirements correctly then you should probably be using a UIPickerView:

http://www.youtube.com/watch?v=wnxS35JDqok

http://developer.apple.com/library/ios/#documentation/uikit/reference/UIPickerView_Class/Reference/UIPickerView.html


You can add multiple tableview cell. You need to separate or identify them using Identifier. After creating custom cell, you can add tableview cell into Cellforrowatindex path method.Make sure don't forgot to import "custom cell.h" in your implementation file. Thanks.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜