Swift UIKit 组件-UISearchTextField(文本搜索框)
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.
}
}
看的我热血沸腾啊https://www.ea55.com/
怎么收藏这篇文章?