开发者

how can I put an edit button in UITable at the end of a cell?

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

how can I put an edit button in UITable at the end of a cell?

you use

cell.accessoryType = UITableViewCellAccessoryCheckmark;

for

how can I put an edit button in UITable at the end of a cell?

cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton;

and for

how can I put an edit button in UITable at the end of a cell?

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜