iosobjective-cgame-centergkturnbasedmatch

Show banner from top of the screen


I want to create a turn-based match. When player received a notification player:receivedTurnEventForMatch:didBecomeActive:

I want to show a banner that slides from the top of the screen. "Your turn. Play" similar to the banner that Game Center shows when player is authenticated.

How can I do it? Should it be a UIViewController or UIAlert, or what? enter image description here


Solution

  • here is a good example for notification for what you want, i hope that help you: https://github.com/ekurutepe/MPNotificationView or https://github.com/edgurgel/CMNavBarNotificationView or https://github.com/terryworona/TWMessageBarManager