C
C
casualfatboy2015-08-24 14:16:24
iOS
casualfatboy, 2015-08-24 14:16:24

How to translate setCompletionHandler:^ from Obj-c to Swift?

Hello everyone .
There is a code written on the object
[shareDialog setCompletionHandler:^(VKShareDialogControllerResult result) {
[self dismissViewControllerAnimated:YES completion:nil];
while shareDialog is
let shareDialog = VKShareDialogController()
and I can call shareDialog.setCompletionHandler
but what to do next to reproduce the code on the object, I don’t understand point-blank
Maybe someone came across? This is sdk vk

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question