ios - 从不兼容的类型 'NSObject<PushNotificationDelegate> *' 分配给 'AppDelegate *const __strong'

标签 ios objective-c xcode push-notification pushwoosh

我试图在我的游戏中实现 Pushwoosh 它非常简单的指南,但我在这里遇到了这个问题:

enter image description here

最佳答案

您的 AppDelegate 实现应如下所示:

@implementation AppDelegate <PushNotificationDelegate>

在第 20 行。

这意味着您的 AppDelegate 符合 PushNotificationDelegate协议(protocol)。

关于ios - 从不兼容的类型 'NSObject<PushNotificationDelegate> *' 分配给 'AppDelegate *const __strong',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51737035/

相关文章:

ios - 以团队形式创建应用程序,以便双方都可以编辑代码

ios - 如何使用 UIImagePicker/Swift 调整照片大小

ios - 如何在 iOS 上设置 UDP 的“不分段”标志?

ios - 自动布局无法按预期布局按钮?

ios - 创建配置文件以与 TestFlight 一起使用?

ios - CAShapeLayer mask 从底部显示

ios - 找不到成员 'Fade'

objective-c - Xcode Outlet 生成不生成@synthesize

iphone - 在 iPhone 上使用套接字 API

python - Mountain Lion 中的 Mac 10.4 SDK