Commit fdf8c935 by Brandon Roth

Fix bug where changes to the placeholderLabel are not propigated to the title label.

parent 75665e13
......@@ -560,10 +560,8 @@ public class TextView: UITextView {
if let v: UILabel = titleLabel {
if v.hidden {
if let s: String = placeholderLabel?.text {
if 0 == v.text?.utf16.count || nil == v.text {
v.text = s
}
}
let h: CGFloat = ceil(v.font.lineHeight)
v.frame = CGRectMake(0, -h, bounds.width, h)
v.hidden = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment