I want to put a edit button(icon), as most application has in the cell where the value exists???
I want as below ou开发者_JAVA百科tput,
Hotel Royal > Hotel Taj >
shows the button or icon, how can I do it ???
if you don't understand my question, you may ask again .....
If you are asking for the >
you see at the cells, these are accessoryViews.
You can get the standard accessory views by setting the accessoryType property of the cell
for
you usecell.accessoryType = UITableViewCellAccessoryCheckmark;
for
cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton;
and for
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
if you use the DetailDisclosure button you can get the taps on it with the tableview delegate method - (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath
精彩评论