I created a static TableView and I would like to add or remove a disclosure indicator depending if we are consulting our own account or a guest account.
This is what
Just check if you want to show disclosure indicator in cellForRowAt indexPath method.
if (wantsToShow){ // Your condition goes here cell.accessoryType = UITableViewCellAccessoryType.DisclosureIndicator } else{ cell.accessoryType = .none }
That's it.