Assuming you are doing this on a class that extends UIViewController
, the problem is that UIViewController
already has a property named title
with a type of NSString
.
By adding an outlet for a UITextField
with a name of title
, you are creating a conflict with the NSString
property named title
.
Simply give your outlet a name that doesn't conflict with an existing property name.