开发者

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

开发者 https://www.devze.com 2023-02-11 15:22 出处:网络
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,

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

精彩评论

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