Tag: ibooks

从应用内发送捆绑PDF到iBooks

我正在使用下面的代码附加到button,试图打开一个PDF文件在iBooks,但没有任何事情发生时,我点击button。 该方法肯定被称为。 – (IBAction)openDocs { NSURL *url = [NSURL fileURLWithPath:@"MS.pdf"]; UIDocumentInteractionController *docController = [[UIDocumentInteractionController alloc] init]; docController = [UIDocumentInteractionController interactionControllerWithURL:url]; docController.delegate = self; BOOL isValid = [docController presentOpenInMenuFromRect:CGRectZero inView:self.view animated:YES]; } 我已经把这个类声明为相关的委托,并且由于文档说没有必要的委托方法,这就是我所做的。 当我点击button时没有任何事情发生,我试图弄清楚我错过了什么 – 非常感谢任何帮助!

当用户在应用程序中打开文件时检测

我正在阅读有关如何在我的iOS应用程序上预览文件的文档。 https://developer.apple.com/library/ios/documentation/FileManagement/Conceptual/DocumentInteraction_TopicsForIOS/Articles/PreviewingandOpeningItems.html#//apple_ref/doc/uid/TP40010410-SW1 是否有任何检测用户select的应用程序? 或者任何方式知道,如果他实际上窃听任何选项? 我的问题:iBooks大文件(> 700MB)。 用户select预览,然后点击右上angular并select在iBooks上打开。 它需要20到45秒,直到它跳转到iBooks。 如果我知道用户点击任何应用程序,我至less可以显示加载或任何他知道什么事情即将发生。

在iBooks中打开pdf的UIDocumentInteractionController崩溃

我有一个testingPDF文件,我想通过我的应用程序在iBooks中打开。 我将它保存在我的临时目录中,并使用此代码将其加载到iBooks: NSURL *targetURL = [NSURL fileURLWithPath:tempFullPath]; NSLog(@"Path is %@", tempFullPath); UIDocumentInteractionController *controller = [UIDocumentInteractionController interactionControllerWithURL:targetURL]; controller.delegate = self; controller.UTI = @"com.adobe.pdf"; [controller presentOpenInMenuFromRect:self.view.bounds inView:self.view animated:YES]; 菜单popup很好,但当我点击iBooksbutton的应用程序崩溃,并挂起我的Xcode。 我在NSLog输出中得到的文件的path如下所示: Path is /private/var/mobile/Applications/65EC4182-A79B-431C-9E74-BD72D91A31AB/tmp/TestFile.pdf 我究竟做错了什么? 提前致谢!

一个应用程序来打开iBook,然后这个特定的PDF /酒吧文件一口气走

是否有可能从应用程序本身打开PDF文件到iBooks。 要么 任何第三方的解决scheme,可以使用任何PDF文件,并在应用程序本身创build翻转书的事情。

打开closures(展开)在iBooks中预订animation

我的应用程序目前基本上将AQGridView项目连接到叶子项目,以制作一个iBooks(克隆式)types的PDF阅读器。 我的问题是,我目前使用从一个视图到另一个视图的pageCurl过渡,这是一切顺利,但我想把它提升到一个新的水平。 有没有人复制的iBooks展开/折叠书+封面animation? 我看到的每一个问题都是刚刚投了两次,我见过的最不讨人喜欢和不一致的答案(例如: 如何显示书籍打开和加载animation在iBooks? )。 再次,澄清:我知道如何阅读PDF,我正在寻找一个观点过渡。 编辑1:这个最近的问题提供了答案的第一个一半(扩大视图,以填补屏幕) 文件打开animation像在iPad上的iBooks和Photos.app

iBooks库喜欢效果

有人可以告诉我如何实现iBooks Library转换效果(不是页面)。 那可以通过核心animation来实现吗?

如何在iBooks上打开文件

我怎样才能打开一本关于iBooks的书? 我尝试了下面的代码,这是有效的,但要求用户select一个应用程序来打开文件: self.docController = [UIDocumentInteractionController alloc]; //leaves only the file name NSString *bookFile = @"my-book.pdf"; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex: 0]; NSString* filePath = [documentsDirectory stringByAppendingPathComponent: bookFile]; // Using the Book path self.docController = [UIDocumentInteractionController interactionControllerWithURL:[NSURL fileURLWithPath:filePath]]; // setting the delegate _docController.delegate = self; // open the menu only […]

dataSource更改后dynamic重新加载UIPageViewController

所以我想创build一个类似ibooks的阅读器,并且需要在从webservice获取数据后dynamic更新UIPageViewController的内容。 由于很长的一系列原因,我必须在开始时将它初始化,然后在数据到来时进行更新。 我是这样创build的: NSDictionary *options = [NSDictionary dictionaryWithObject: [NSNumber numberWithInteger:UIPageViewControllerSpineLocationMin] forKey: UIPageViewControllerOptionSpineLocationKey]; self.pageController = [[UIPageViewController alloc] initWithTransitionStyle:UIPageViewControllerTransitionStylePageCurl navigationOrientation:UIPageViewControllerNavigationOrientationHorizontal options: options]; self.pageController.dataSource = self; self.pageController.delegate = self; [[self.pageController view] setFrame:[[self view] bounds]]; MovellaContentViewController *initialViewController = [self viewControllerAtIndex:0]; self.controllers = [NSArray arrayWithObject:initialViewController]; [self.pageController setViewControllers:self.controllers direction:UIPageViewControllerNavigationDirectionForward animated:NO completion:nil]; [self addChildViewController:self.pageController]; [[self view] addSubview:[self.pageController view]]; [self.pageController didMoveToParentViewController:self]; 然后我只是设置self.controllers = […]