I just want to get value from input and show them in textfield. I am a newbie so please tell me why ?
@IBOutlet weak var inputName: UITextField!
@IBOutlet weak var inputEmail: UITextField!
@IBOutlet weak var inputPhone: UITextField!
@IBOutlet weak var outResult: UITextView!
@IBAction func act_Btn(sender: AnyObject) {
let name = inputName.text
let email = inputEmail.text
let phone = inputPhone.text
let outResultValue = "Name : \(name) \nEmail : \(email) \nPhone : \(phone)"
outResult.text = outResultValue
}
But, why have prefix text "Optional" in my result ?