import UIKit
class ViewController: UIViewController {
let textField = UITextField()
override func viewDidLoad() {
super.viewDidLoad()
textField.frame = CGRectMake(20, 20, 100, 50)
textField.textColor = UIColor.blueColor()
textField.placeholder = "Input:"
self.view.addSubview(textField)
}
}
网友评论