iOS - удаление разделителя между viewForHeaderInSction и первой ячейкой в ​​UITableView

Класс QDate PyQt4 имеет функцию addmonths.

>>>from PyQt4.QtCore import QDate  
>>>dt = QDate(2009,12,31)  
>>>required = dt.addMonths(6) 

>>>required
PyQt4.QtCore.QDate(2010, 6, 30)

>>>required.toPyDate()
datetime.date(2010, 6, 30)
0
задан Md. Sulayman 13 March 2019 в 10:37
поделиться

1 ответ

Вы можете использовать следующий код:

Swift:

if indexPath.row == {your row number} {
    cell.separatorInset = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: .greatestFiniteMagnitude)
}

или:

cell.separatorInset = UIEdgeInsetsMake(0, 0, 0, UIScreen.main.bounds.width)

для поля по умолчанию:

cell.separatorInset = UIEdgeInsetsMake(0, tCell.layoutMargins.left, 0, 0)
[119 ] показать разделитель сквозной

cell.separatorInset = .zero

Объектив-C:

if (indexPath.row == {your row number}) {
    cell.separatorInset = UIEdgeInsetsMake(0.0f, 0.0f, 0.0f, CGFLOAT_MAX);
}
0
ответ дан Red Heart 13 March 2019 в 10:37
поделиться
Другие вопросы по тегам:

Похожие вопросы: