In my UIWebView I would like to add an option to add the current page to Safari's reading list. I know this feature exists since GMail offers it when long-pressing a link, yet I can't find any info on what URL scheme to use.
Possible duplicate: How to programmatically access Safari's reading list from iOS
iOS 7 added an API to accomplish this:
#import <SafariServices/SafariServices.h>
SSReadingList * readList = [SSReadingList defaultReadingList];
NSError * error = [NSError new];
BOOL status =[readList addReadingListItemWithURL:[NSURL URLWithString:urlToAdd] title:titleToAdd previewText:previewText error:&error];
if(status)
{
NSLog(@"Added URL");
}
else NSLog(@"Error");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With