IOS toss VK



  • Good day! I'd like to know how I can scream in the vc without SDK. I'd like to know the reference, like:

    vk://vk.com/...
    

    And call it that type.

    NSURL *url = [[NSURL alloc] initWithString:@"vk://vk.com/ХХХ"]; 
    [[UIApplication sharedApplication] openURL:url];
    

    Maybe someone did something like that?



  • Give it to the system.

    func shareText(text: String) {
        var shareItems = [AnyObject]()
        shareItems.append(text  as AnyObject)
    
    let activityViewController : UIActivityViewController = UIActivityViewController(
        activityItems: shareItems, applicationActivities: nil)
    
    activityViewController.excludedActivityTypes = [
        UIActivityType.postToWeibo,
        UIActivityType.print,
        UIActivityType.assignToContact,
        UIActivityType.saveToCameraRoll,
        UIActivityType.addToReadingList,
        UIActivityType.postToFlickr,
        UIActivityType.postToVimeo,
        UIActivityType.postToTencentWeibo,
        UIActivityType.copyToPasteboard
    ]
    
    self.present(activityViewController, animated: true, completion: nil)
    

    }




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2