谁能告诉我应该执行 **C# 显示对话框** 工作的警报视图的名称
谁能告诉我应该执行 C# 显示对话框 工作的警报视图的名称。 如果不解除它,其他操作将不起作用(甚至代表也如此)。
can any one tell me the name of alert view that should do the works of C# show dialog .
other actions will not work without dismissing it(EVEN DELEGATES ALSO).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Windows(任何语言)和 iOS 中的模式对话框有根本的不同。
在 Windows 上,模式对话框(特别是
ShowDialog
方法)的行为类似于函数调用,仅在对话框关闭时才会返回。您的应用程序自然会等待,直到您做出决定。在 iOS 上,
presentModalViewController
(或[UIAlertView show]
)几乎立即返回。您可以注册一个委托,该委托将在对话框关闭时收到通知。但是,如果您的应用程序应该只等待用户在对话框中选择了某些内容,那么您必须自己实现等待。Modal dialogs in Windows (in any language) and in iOS are fundamentally different.
On Windows, a modal dialog (and in particular the
ShowDialog
method) behaves like a function call that will only return when the dialog is closed. Your app will naturally wait until the your has made his decision.On iOS,
presentModalViewController
(or[UIAlertView show]
) almost immediately return. You can registered a delegate that will be notified when the dialog is closed. But if your app is supposed to wait only the user has chosen something in the dialog, then you have to implement the waiting yourself.据了解,您必须手动执行此操作。您可以在显示警报时锁定您的任务,然后在警报消失时再次解锁它,从这些帖子中获取帮助。
有吗无限期暂停 NSTHread 并从另一个线程恢复它的方法?
如何暂停 NSThread 直到收到通知?
As far as know, You have to do this manually. You can lock your task when the alert is shown and then unlock it again when it is dismissed getting help from these posts.
is there a way to pause an NSTHread indefinitely and have it resumed from another thread?
How to pause an NSThread until notified?