我有一个 900 高的 ScrollView 。在底部,我有一个按钮可以完成一些网络工作。
当它完成时,我调用一个 UIAlertView
来告诉用户操作是成功还是失败。
警报出现(我认为)但它不可见,因为它位于 ScrollView 中间的某个位置并且 View 现在已锁定。
如何将我的警报设置为显示在 ScrollView 底部附近,例如在 y 位置 700?
我的 UIAlertView 代码
[[[[UIAlertView alloc] initWithTitle: @"Alert"
message: @"Success"
delegate: self
cancelButtonTitle: @"OK"
otherButtonTitles: nil] autorelease] show];
最佳答案
UIAlertView
始终附加到关键窗口,而不是顶部 View 。所以它根本没有出现。您应该检查显示代码。
关于iphone - 将 UIAlertView 添加到 UIScrollView,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8184556/