this picture should say enough:
I have been scouring the web to find answers and none else seems to have this problem. I am using Xcode 7 Beta 3 with Swift 2. I can't figure out what's wrong.
Thanks in advance
EDIT:
Here's the code:
func input(text:String) -> String {
Say(text)
let alert:UIAlertController = UIAlertController(title: "Goog", message: text, preferredStyle: UIAlertControllerStyle.Alert)
[alert .addTextFieldWithConfigurationHandler({ (textfield: UITextField!) -> Void in
})]
var returnValue:String = ""
let confirmAction = UIAlertAction(
title: "OK", style: UIAlertActionStyle.Default) {(action) in
returnValue = (alert.textFields[0] as UITextField).text!
return
}
return returnValue
}
Its works fine...