Could not find add listener to PubNub in swift

I am using Xcode 6.4 and am trying to integrate pubnub group chat functionality in my application. I followed this tutorial

http://www.pubnub.com/blog/realtime-ios-apps-getting-started-with-swift-and-pubnub/

I was able to do everything smoothly. But there was an error in the code. While writing this piece of code as pointed out in the pubnub tutorial I got this compilation error. enter image description here

Is this method not available or am I doing something wrong?

I used the latest Pubnub sdk as posted on the blog using cocoapods. What do I need to do to fix this. Any help would be appreciated. Thanks to

+3


source to share


1 answer


I got a solution. I forgot to add PNObjectEventListener in Appdelegate class

class AppDelegate: UIResponder, UIApplicationDelegate, PNObjectEventListener

      



However, this thing is not mentioned in the PubNub blog

+4


source







All Articles