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.
}
}
你的文章让我感受到了艺术的魅力,谢谢!http://www.luckstar168.com
哈哈哈,写的太好了https://www.cscnn.com/
看的我热血沸腾啊https://www.ea55.com/
怎么收藏这篇文章?