UITableView分隔符插入引用在情节提要中不起作用

问题描述 投票:0回答:1

我想将表格视图分隔符从当前的自动插图中插入10点,以使其尊重安全区域等,但是当我在情节提要中对其进行设置时,它无法按记录工作。

Storyboard Separator Inset Settings and Reference

Separator Inset Not Reflecting the Automatic Inset

ios uitableview xcode-storyboard
1个回答
0
投票

结果未得到情节提要中的设置。

当我在代码中添加设置时,它按预期工作。

tableView.separatorInsetReference = .fromAutomaticInsets
tableView.separatorInset = .init(top: 0, left: 10, bottom: 0, right: 0)

Separator Inset Reference

© www.soinside.com 2019 - 2024. All rights reserved.