Я просто хотел бы добавить очевидную кнопку "Открыть в Safari" Как я могу сделать это простым способом.
#pragma mark - Share the link
- (IBAction)activityButtonPressed:(id)sender {
NSString *textToShare = @"I just shared this from my App";
// UIImage *imageToShare = [UIImage imageNamed:@"Image.png"];
NSURL *urlToShare = [NSURL URLWithString:@"http://www.google.com"];
NSArray *activityItems = [NSArray arrayWithObjects:textToShare, urlToShare,nil];
UIActivityViewController *activityVC = [[UIActivityViewController alloc]initWithActivityItems:activityItems applicationActivities:Nil];
//This is an array of excluded activities to appear on the UIActivityViewController
//activityVC.excludedActivityTypes = @[UIActivityTypeMessage, UIActivityTypeCopyToPasteboard,UIActivityTypeSaveToCameraRoll];
[self presentViewController:activityVC animated:TRUE completion:nil];
}