I just want to modify the height of a UITextView
.
The log resulting from the code below, says that in fact, the
height changed from 30 to 400:
println(txtresponses.frame.height) // returns 30
var newFrame:CGRect=txtresponses.frame
newFrame.size.height=400
txtresponses.frame=newFrame
println(txtresponses.frame.height) // returns 400
However, visually, the UITextView
"txtresponses" remains with the same size.
I am new to Swift
and Xcode
, so all my tricks are already exhausted here, and I dont know if it is an iOS version issue, or some typical Xcode
whim.
What is the correct way to modify a UITextView
´s height?