Swift-UIKit(UISearchTextField).png

import UIKit
class ViewController: UIViewController {
    override func viewDidLoad() {
        super.viewDidLoad()
        let MySearchTextField = UISearchTextField()
        MySearchTextField.frame = CGRect(x: 135, y: 50, width: 160, height: 35)
        // 输入框提示内容
        MySearchTextField.placeholder = "请输入关键词"
        view.addSubview(MySearchTextField)
//        let MyImage = UIImage()
        // Do any additional setup after loading the view.
    }
}

SwiftUIKitiOSUISearchTextField

2 条评论

  1. jnpmnuvcem
    2024-10-04 21:39
    回复

    看的我热血沸腾啊https://www.ea55.com/

  2. pxeeeizzza
    2024-09-27 13:09
    回复

    怎么收藏这篇文章?

添加新评论