【发布时间】:2018-02-07 18:39:04
【问题描述】:
我是 Swift 4 的新手,我想用 Uitextview 错误解决 Swift 2.0 版项目
这是 Swift 4 中的错误
let textView = UITextView(frame: CGRectInset(view.bounds, 10, 10))
I will change with 'CGRectInset'已被实例方法'CGRect.insetBy(dx:dy:)'取代
但我不知道如何
我改变了 let textView = UITextView(frame: CGRect.insetBy(view.bounds, 10, 10)) 但又出错了
还有一个问题
textView.textContainerInset = UIEdgeInsetsZero
我会改UIEdgeInsetsZero
【问题讨论】:
标签: ios swift uitextview cgrect uiedgeinsets