-2

I try to translate this code:

[[VKSdk instance] setUiDelegate:self];

i tried so:

VKSdk.instance().setUiDelegate(self)

But this is wrong! Please help!

Alex Brown
  • 41,819
  • 10
  • 94
  • 108
Dmitry
  • 2,963
  • 2
  • 21
  • 39

1 Answers1

1

From where do you have the Objective-C code above? I have quickly read over the frameworks.h file and did not find something like that.

But I did find this:

VKSdk.initializeWithDelegate(self, andAppId: "")

Is that what you are searching for? Or does it have to be the setUIDelegate?

UPDATE

Wait I have found something else...

VKSdkUIDelegate Protocol.

Please try this:

VKSdk.instance().uiDelegate = self

VK iOS SDK

Caleb Kleveter
  • 11,170
  • 8
  • 62
  • 92
Dennis Weidmann
  • 1,942
  • 1
  • 14
  • 16