iOS Question Padding textfield

Upvote 0
Is this only valid code for textfields?

When I change it to label and feed it with a label I get this error

[<UILabel 0x165b2920> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key leftView.
 
Upvote 0
I'm in need for top padding tho. worst case I go with an extra panel as container for the label.
 
Upvote 0
Back
Top