Microsoft.Extensions.Hosting EnvironmentName переопределяет производственное значение по умолчанию

В контроллере вида, который вы используете:

//suppose you are using the textfield label as this

@IBOutlet weak var emailLabel: UITextField!
@IBOutlet weak var passwordLabel: UITextField!

//then your viewdidload should have the code like this
override func viewDidLoad() {
        super.viewDidLoad()

        self.emailLabel.delegate = self
        self.passwordLabel.delegate = self

    }

//then you should implement the func named textFieldShouldReturn
 func textFieldShouldReturn(_ textField: UITextField) -> Bool {
        textField.resignFirstResponder()
        return true
    }

// -- then, further if you want to close the keyboard when pressed somewhere else on the screen you can implement the following method too:

override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        self.view.endEditing(true);
    }
0
задан senzacionale 16 January 2019 в 04:20
поделиться

1 ответ

Откройте файл json launchsettings.json и найдите раздел: «profile» -> «name вашего проекта» -> «environmentVariables» -> «ASPNETCORE_ENVIRONMENT» и обновите это значение с «Development» до «Production».

0
ответ дан Neville Nazerane 16 January 2019 в 04:20
поделиться
Другие вопросы по тегам:

Похожие вопросы: