Remake of this repository https://github.com/denivip/VKActivity . UIAvtivity for share to vk.com
pod 'VKActivity'
-
Create standalone app on this page https://vk.com/editapp?act=create . (Doc: https://vk.com/dev/standalone)
-
Fill App Id for iOS.
-
Copy Application ID.
-
In AppDelegate (or wherever you want) add this
[VKSdk initializeWithDelegate:nil andAppId:<#VK_CLIENT_ID#>];
,where <#VK_CLIENT_ID#> your copied Application ID
- use VKActivity
UIActivityViewController *activityVC = [[UIActivityViewController alloc] initWithActivityItems:@[title, url, image]
applicationActivities:@[[[VKActivity alloc] initWithParent:self]]];
- Profit