是否有能够从一个应用程序添加一个网址到iOS的Safari的阅读列表的服务。
我想有一个网址添加和一个UIWebView,但我研究,我无法找到任何东西。
这是我的工作UIActivityViewController。
-(IBAction)actionButton:(id)sender;{
NSLog(@"shareButton pressed");
NSURL *URL = [NSURL URLWithString:self.feedItem[@"url"]];//this is your text string
NSArray *activityItems = @[URL];
ARChromeActivity *chromeActivity = [[ARChromeActivity alloc] init];
TUSafariActivity *TUSafari = [[TUSafariActivity alloc] init];
MLCruxActivity *cruxActivity = [[MLCruxActivity alloc] init];
NSArray *applicationActivities = [NSArray arrayWithObjects:TUSafari,chromeActivity,cruxActivity, nil];
UIActivityViewController *activityVC = [[UIActivityViewController alloc] initWithActivityItems:activityItems applicationActivities: applicationActivities];
activityVC = [[UIActivityViewController alloc] initWithActivityItems:activityItems applicationActivities:applicationActivities];
activityVC.excludedActivityTypes = @[UIActivityTypeAssignToContact];
[self presentViewController:activityVC animated:TRUE completion:nil];
}