cell.accessoryType
以上方法返回一個枚舉類型 UITableViewCellAccessoryType,可選值有四個:UITableViewCellAccessoryNone, UITableViewCellAccessoryDisclosureIndicator, UITableViewCellAccessoryDetailDisclosureButton,和 UITableViewCellAccessoryCheckmark。你可以嘗試不同的值,並注意table cell樣式的變化。如果返回"UITableViewCellAccessoryDetailDisclosureButton",點擊按鈕將不會有任 何變化,那是因為table cell不會被選擇,當我們點擊一個按鈕時。當點擊附屬視圖的按鈕時,在SDK中提供了一個方法可以獲得回調。該方法為 tableView:accessoryButtonTappedForRowWithIndexPath。在這個方法中我們調用 tableView:didSelectRowAtIndexPath方法