-2
    SVKShareDialogController * shareDialog = [VKShareDialogController new];
    shareDialog.text = @"Your share text here";
    shareDialog.otherAttachmentsStrings = @[@"https://vk.com/dev/ios_sdk"];
    [shareDialog presentIn:self];

//SWIFT
    var shareDialog = VKShareDialogController()
    shareDialog.text = "Your share text here"
    shareDialog.otherAttachmentsStrings = ["https://vk.com/dev/ios_sdk"]

But I get some errors saying that type "viewcontroller" does not conform to protocol "VKSdkDelegate".

How can I fix this issue?

Evgenii
  • 31
  • 4
  • That looks more like a problem in the `VKShareDialogController` class than a swift conversion issue. It just means that the class does not implement the `VKSdkDelegate` properly – Antonio Nov 19 '14 at 09:38
  • import UIKit class ViewController: UIViewController, VKSdkDelegate { – Evgenii Nov 19 '14 at 09:45

1 Answers1

2

The error is because you are adopting the VKSdkDelegate protocol in your ViewController class, but you have not implemented one or more of the required methods. The VKSdkDelegate reference lists all required methods that you have to implement in your class.

Antonio
  • 71,651
  • 11
  • 148
  • 165