Now the textfield works correctly when you set the text via setter method or IB.