Swift UIKit 组件-UITextView(文本视图)
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
let MyTextView = UITextView()
MyTextView.frame = CGRect(x: 135, y: 50, width: 160, height: 35)
MyTextView.text = "TextView One\nTextView Two\nTextView Three\nTextView Four"
MyTextView.textColor = .white
MyTextView.backgroundColor = .tintColor
view.addSubview(MyTextView)
// Do any additional setup after loading the view.
}
}
看到你的文章,我仿佛感受到了生活中的美好。 https://www.4006400989.com/qyvideo/72751.html
你的文章让我学到了很多知识,非常感谢。http://www.hblxzt.com
不错不错,我喜欢看 www.jiwenlaw.com
想想你的文章写的特别好https://www.237fa.com/
不错不错,我喜欢看 https://www.jiwenlaw.com/
叼茂SEO.bfbikes.com