【发布时间】:2018-05-08 07:48:45
【问题描述】:
我有一个尽可能与 MDCTextField 相似的设计(带有控制器 MDCTextInputControllerFilled)。我检查了组件,我认为我应该覆盖控制器,但为什么?
如果我走错路了,你能帮我解决这个问题吗?
我的测试代码如下
tfc1?.placeholderText = "Test"
tfc1?.borderFillColor = UIColor.brown.withAlphaComponent(1)
if let f = tfc1?.textInput?.borderView?.frame {
tfc1?.textInput?.borderView?.frame = CGRect(
x: f.origin.x,
y: f.origin.y + 25,
width: f.width,
height: f.height + 25
)
}
【问题讨论】:
-
你能添加一张你想要的图片吗?
-
您好,谢谢您的回复。喜欢这张图片ibb.co/dhYDdy
标签: ios swift material-components material-components-ios