标签:
import UIKit
class ViewController:UIViewController {
overridefunc viewDidLoad() {
super.viewDidLoad()
let textview = UITextView(frame:CGRect(x: 10,y: 20,width: 300,height: 120))
textview.layer.borderWidth = 2
textview.layer.borderColor = UIColor.gray().cgColor
self.view.addSubview(textview)
}
}
标签:
原文地址:http://www.cnblogs.com/swift3/p/5700563.html