Swift-UIKit(UITextField).png

import UIKit
class ViewController: UIViewController {
    override func viewDidLoad() {
        super.viewDidLoad()
        let MyTextField = UITextField()
        MyTextField.frame = CGRect(x: 135, y: 50, width: 160, height: 35)
        MyTextField.borderStyle = .roundedRect
        view.addSubview(MyTextField)
        // Do any additional setup after loading the view.
    }
}

SwiftUIKitiOSUITextField

1 条评论

  1. gegswihhvi
    2024-11-15 16:49
    回复

    你的文章让我感受到了快乐,每天都要来看一看。 http://www.55baobei.com/ZeLZf8lfJO.html

添加新评论