After completing Game Center achievement, achievement complete banner is not showing up on iOS7. GKAchievement.showsCompletionBanner is already set to YES. It works perfectly fine in iOS6 and iOS5. Anyone have any ideas to make this work? Thx.
完成游戏中心成就后,iOS7上没有显示成就完整横幅。 GKAchievement.showsCompletionBanner已设置为YES。它在iOS6和iOS5中运行得非常好。任何人有任何想法使这项工作?谢谢。
This is the property in GKAchievement class I'm refering to.
这是我参考的GKAchievement课程中的属性。
@property(assign, NS_NONATOMIC_IOSONLY) BOOL showsCompletionBanner __OSX_AVAILABLE_STARTING(__MAC_10_8,__IPHONE_5_0); // A banner will be momentarily displayed after reporting a completed achievement
1 个解决方案
#1
18
It seems to be broken in iOS 7. Below is a fix that I use. You just need some condition to fill in the Title and Message. Hope this helps.
它似乎在iOS 7中被打破。以下是我使用的修复程序。您只需要一些条件来填写标题和消息。希望这可以帮助。
[GKNotificationBanner showBannerWithTitle:@"Achievement" message:@"Completed!" completionHandler:^{}];
#1
18
It seems to be broken in iOS 7. Below is a fix that I use. You just need some condition to fill in the Title and Message. Hope this helps.
它似乎在iOS 7中被打破。以下是我使用的修复程序。您只需要一些条件来填写标题和消息。希望这可以帮助。
[GKNotificationBanner showBannerWithTitle:@"Achievement" message:@"Completed!" completionHandler:^{}];