Swift-UIKit(UITextView).png

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.
    }
}

SwiftUIKitiOSUITextView

5 条评论

  1. hfhseedogh
    2024-10-29 13:42
    回复

    你的文章让我学到了很多知识,非常感谢。http://www.hblxzt.com

  2. bgohbwwdsm
    2024-10-06 19:33
    回复

    不错不错,我喜欢看 www.jiwenlaw.com

  3. zhicvvboua
    2024-10-01 21:10
    回复

    想想你的文章写的特别好https://www.237fa.com/

  4. xrnbvvqqwr
    2024-09-23 09:27
    回复

    不错不错,我喜欢看 https://www.jiwenlaw.com/

  5. emvzybsrrs
    2024-09-23 04:35
    回复

    叼茂SEO.bfbikes.com

添加新评论