I
Size: a a a
MG

I
I
MG
I
—
let _ = Double(textField.text!) {
let alert = UIAlertController(title: "Неправильный формат ввода", message: "Пожалуйста, введите свое имя", preferredStyle: .alert)
print("Формат данных не верный")
let alertAction = UIAlertAction(title: "Ок", style: .default, handler: nil)
alert.addAction(alertAction)
present(alert, animated: true, completion: nil)
textField.text = nil
} else {
label.text = textField.text
textField.text = nil🅰Б
—
let regex = try! NSRegularExpression(pattern: "[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,20}", options: .caseInsensitive)
let emailIsValid = (regex.firstMatch(in: email, options: [], range: NSRange(location: 0, length: email.count)) != nil)🅰Б
let stringArray = ["a", "b", "c"]
print(stringArray.joined(separator: ", "))🅰Б
Я
func UserName ( names: [String]) -> String {
var result = String()
for name in names {
result.append(name)
}
return result
}
UserName(names: ["1","2","3","3"])Я
🅰Б
Я