I'm struggling to get my application to share a URL properly so that the "Open in Safari" and "Open in Chrome" activity items show up in the share sheet. I've tried sharing the URL a few different ways:
NSURL *data = _article.url;
UIActivityViewController *activityViewController = [[UIActivityViewController alloc] initWithActivityItems:@[data] applicationActivities:nil];
- As an NSData item using [NSData dataWithContentsOfURL:];
- As an NSURL
- As an NSString using [myURL absoluteString];
- With combination of NSURL (the url) and NSString (the title)
For reference, these are the two activity items I'm trying to get to show up.