ios - 从屏幕顶部显示横幅

标签 ios objective-c game-center gkturnbasedmatch

我想创建回合制比赛。当玩家收到通知时 player:receivedTurnEventForMatch:didBecomeActive:

我想显示一个从屏幕顶部滑动的横幅。 “轮到你了。玩”类似于游戏中心在玩家通过身份验证时显示的横幅。

我该怎么做?它应该是 UIViewController 还是 UIAlert,还是什么? enter image description here

最佳答案

这是一个很好的通知你想要什么的例子,我希望对你有所帮助: https://github.com/ekurutepe/MPNotificationView 或者 https://github.com/edgurgel/CMNavBarNotificationView 或者 https://github.com/terryworona/TWMessageBarManager

关于ios - 从屏幕顶部显示横幅,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21974073/

相关文章:

iphone - 在UIViewController中使用AVAudioPlayer

ios - UIActivityViewController 将 sourceView 设置为 UIBarButtonItem

ios - 如何在没有 UITabBarController 的情况下使用 UITabBar?

ios - 禁用 uibutton 的背景

ios - redirect_uri_mismatch iOS上的Unity Google API

iphone - iOS 排行榜 : Rank users on overall shortest time

swift - 如何在swift中接受Game Center邀请

ios - 在 Alamofire 中查询参数

iphone - 将导航 Controller 添加到选项卡栏应用程序(以编程方式)

ios - Game Center 可以与非游戏 iOS 应用程序集成吗