ibooks

open iBooks from my app

扶醉桌前 提交于 2019-12-01 07:30:06
问题 I have some PDF in my app. I want to provide an option to open those PDF in other third party e-readers app that might be installed on the device, like Stanza and iBooks. Dropbox application has successfully implemented this feature and I can't find any information on how to detect what other e-readers are available on the device or what the custom url scheme is for those apps. Any help would be greatly appreciated. thanks in advance guys. 回答1: iBooks NSString *stringURL = @"itms-books:";

Dynamically reload UIPageViewController after dataSource changed

ε祈祈猫儿з 提交于 2019-11-30 05:21:24
问题 so I'm trying to create an ibooks-like reader and I need to update the contents of the UIPageViewController dynamically after I get the data from the webservice. For a long series of reasons I have to instantiate it at the beginning and then update it when the data comes. I'm creating it like this: NSDictionary *options = [NSDictionary dictionaryWithObject: [NSNumber numberWithInteger:UIPageViewControllerSpineLocationMin] forKey: UIPageViewControllerOptionSpineLocationKey]; self