是否可以在CNContactViewController中设置自定义背景颜色?

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

我正在尝试更改背景颜色,到目前为止无法管理

让控制器 = CNContactViewController(for: 联系人)

controller.view.backgroundColor = .orange

controller.view.layer.borderColor = UIColor.blue.cgColor

不起作用

swift colors background-color uibackgroundcolor cncontactviewcontroller
1个回答
0
投票

你做不到。 CNContactViewController 处于进程外;它不属于您,您无法自定义它。

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