I\'m new to Swift and iOS programming. I was trying to create a UITextField
programmatically using Swift but couldn\'t get it quite right. Also how do you change it
You need to add text field to self.view
instead of self
.
var myField: UITextField = UITextField (frame:CGRectMake(10, 10, 30, 10));
self.view.addSubview(myField)
For add translucent blur effect there are already a couple of suggestions available, you can go through -
UIView border with fade or blur effect