I am new to iphone and working on a project where a requirement is in a UITableView
we have two sections
. In first section we have to show address and in second section we have four variable rows which consists of Phone number, Fax, Email, and SMS
. If any of the item (phone,fax,email,sms
) will not have data then that row will not be visible and each row contains a button. On click on these UIButton
should perform the specific function like if I clicked on the button which in phone row then it should connect to phone like wise.
My problem is I am not able to differentiate the UIButton
actions as the rows are not fixed. So how to perform the action according to particular row data dynamically. Currently am I able to perform only one action for all rows button.