UIAlertController utility class fails to call UITextField delegate or target but works in UIViewController
问题 I encountered a strange issue and maybe it is only a lack of knowledge about Swift 3.0 / iOS 10 so hopefully you can guide me into the right direction or explain to me what I'm doing wrong. HOW IT CURRENTLY WORKS I am trying to create a UIAlertController with style .alert so I can get a user text input for my app. My requirements are that the text must not be empty and if there was a text there before, it must be different. I can use the following code to achieve what I want: //This function