Swift UIAlertController Getting Text Field Text
I need to get the text from the text fields in my alert view when the Input button is pressed. func inputMsg() { var points = "" var outOf = "" var alertController = UIAlertController(title: "Input View", message: "Please Input Your Grade", preferredStyle: UIAlertControllerStyle.Alert) let actionCancle = UIAlertAction(title: "Cancle", style: UIAlertActionStyle.Cancel) { ACTION in println("Cacle") } let actionInput = UIAlertAction(title: "Input", style: UIAlertActionStyle.Default) { ACTION in println("Input") println(points) println(outOf) } alertController.addAction(actionCancle)