[英]Display a UIAlertView with a countdown?
I want to display a countdown of 3 seconds within a UIAlertView. 我想在UIAlertView中显示3秒的倒计时。 Once the countdown is up, the user will be redirected to the next level of a game, and the alert will be dismissed. 一旦倒计时结束,用户将被重定向到游戏的下一个级别,并且警报将被取消。 But how can I display the current countdown int in the UIAlertView? 但是如何在UIAlertView中显示当前的倒数int?
创建UIAlertView
尝试按住指针并使用NSTimer
每秒更新一次message
或title
属性。
您必须创建自己的自定义UIView。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.