Change @property (weak, nonatomic) IBOutlet UITextField *mainTextField;