Wallace Banter Wallace Banter - 1 year ago 78
iOS Question

Add item to Reading List in iOS

Is it possible to add an item/url to the Reading List in Safari from an app? I've looked around but I can only find information how to add it manually. Is there really no way to realise this from code?

Answer Source

In iOS 6.1 or lower there is no way for applications to add items to the reading list.

However, In iOS 7.0 the SafariServices framework was added that does allow you do add items to the reading list:

#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];

        NSLog(@"Added URL");

else    NSLog(@"Error");
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download