嗨,我在我的项目中使用PubNub api。我得到隐式声明'PNLog‘在c99中是无效的。我搜索了这个错误,但我找不到解决方案。这是我的代码:
- (void)pubnubClient:(PubNub *)client error:(PNError *)error
{
PNLog(PNLogGeneralLevel, self, @"PubNub client report that error occurred: %@", error);
}
- (void)pubnubClient:(PubNub *)client willConnectToOrigin:(NSString *)origin
{
PNLog(PNLogGeneralLevel, self, @"PubNub client is about to connect to PubNub origin at: %@", origin);
}
- (void)pubnubClient:(PubNub *)client didConnectToOrigin:(NSString *)origin
{
PNLog(PNLogGeneralLevel, self, @"PubNub client successfully connected to PubNub origin at: %@", origin);
}这个错误正在浪费我的时间。请帮帮我。
发布于 2015-03-17 22:56:15
在最新的客户端(3.7.9.3) /演示应用程序版本中,该代码已经被替换。PNLog已从客户端完全删除。
https://stackoverflow.com/questions/29002508
复制相似问题