Подтвердить что ты не робот

Как удалить стрелку в UITableView

Я работаю над UITableView. Скажите, пожалуйста, как удалить кнопку со стрелкой, отображаемую в каждой строке?

4b9b3361

Ответ 1

В вашем -tableView:cellForRowAtIndexPath: установите свойство accessoryType вашего UITableViewCell в UITableViewCellAccessoryNone, который является FYI по умолчанию.

Ответ 2

Если вы используете построитель интерфейса, просто выберите свою ячейку и установите accessory на none.

enter image description here

Ответ 3

//Write following code into your program


-(UITableViewCellAccessoryType)tableView:(UITableView *)tv accessoryTypeForRowWithIndexPath (NSIndexPath *)indexPath {

    return UITableViewCellAccessoryNone;
}

//Create a table for different section of app

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {

 cell.accessoryType = UITableViewCellAccessoryNone;

}

//VKJ

Ответ 4

Для пользователя С#:

UITableViewCell cell = new UITableViewCell(); 

cell.Accessory = UITableViewCellAccessory.None;

Ответ 5

Для Swift

Добавьте к концу своего метода cellForRowAtIndexPath следующее до return.

    cell.accessoryType = UITableViewCellAccessoryType.None

он просто отлично работает!!

Ответ 6

для Swift 3

cell.accessoryType = UITableViewCellAccessoryType.none