Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Swift 测试时iphone上文本字段不向上移动的AlertController_Swift_Swift3 - Fatal编程技术网

Swift 测试时iphone上文本字段不向上移动的AlertController

Swift 测试时iphone上文本字段不向上移动的AlertController,swift,swift3,Swift,Swift3,当我在iphone5(10.2)上触摸文本字段时,我的带有文本字段的alertcontroller不会向上移动,但在任何模拟器上进行测试时,它工作正常。我对这一点相当陌生,不知道为什么。我找到了解决方案,但不完全理解如何实施。任何见解都会很好 谢谢您使用的是UIAlertView还是UIAlertController?您使用的是UIAlertView还是UIAlertController?

当我在iphone5(10.2)上触摸文本字段时,我的带有文本字段的alertcontroller不会向上移动,但在任何模拟器上进行测试时,它工作正常。我对这一点相当陌生,不知道为什么。我找到了解决方案,但不完全理解如何实施。任何见解都会很好


谢谢

您使用的是
UIAlertView
还是
UIAlertController
?您使用的是
UIAlertView
还是
UIAlertController