QuicklookQLPreviewController,iOS 8的一些问题,但一切都适用于iOS 7.1

QuicklookQLPreviewController,iOS 8的一些问题,但一切都适用于iOS 7.1,第1张

概述我正在使用QuickLook查看PDF文件. 它在iOS 7.1中正常工作,但iOS 8 GM会出现一些问题. 图片比文字好,我想告诉你问题: iOS 7.1 Xcode 6(工作正常) 使用QuickLook进行转换(没有失败) 页面滚动,navigationBar隐藏得很好 ————————————————– ———————— 而现在,iOS 8 GM与Xcode 6 使用QuickLook进 我正在使用QuickLook查看pdf文件.

它在iOS 7.1中正常工作,但iOS 8 GM会出现一些问题.

图片比文字好,我想告诉你问题:

iOS 7.1 Xcode 6(工作正常)

使用QuickLook进行转换(没有失败)

页面滚动,navigationbar隐藏得很好

————————————————– ————————

而现在,iOS 8 GM与Xcode 6

使用QuickLook进行转换…

页面滚动,navigationbar不隐藏,页面指示器隐藏在Navigationbar后面

与iPhone模拟器,iPad模拟器,iPhone设备和iPad设备相同的问题.

你可以在这里看到我的源代码:

- (NSInteger)numberOfPrevIEwItemsInPrevIEwController:(QLPrevIEwController *)prevIEwController{    NSInteger numtoprevIEw = 0;    if (currentSection == CVSectionConvocations)        numtoprevIEw = self.convocation.convocations.count;    else if (currentSection == CVSectionAttachments)        numtoprevIEw = self.convocation.attachements.count;    return numtoprevIEw;}- (ID)prevIEwController:(QLPrevIEwController *)prevIEwController prevIEwItemAtIndex:(NSInteger)IDx{    pdf *pdf;    if (currentSection == CVSectionConvocations)        pdf = self.convocation.convocations[IDx];    else if (currentSection == CVSectionAttachments)        pdf = self.convocation.attachements[IDx];    return [pdf path];}- (voID)collectionVIEw:(UICollectionVIEw *)collectionVIEw dIDSelectItemAtIndexPath:(NSIndexPath *)indexPath {    // determine section    currentSection = (indexPath.section == 0 ? CVSectionConvocations : CVSectionAttachments);    pdf *pdf;    if (currentSection == CVSectionConvocations)        pdf = self.convocation.convocations[indexPath.row];    else if (currentSection == CVSectionAttachments)        pdf = self.convocation.attachements[indexPath.row];    if ([pdf isstored]) {        QLPrevIEwController *prevIEwController = [[QLPrevIEwController alloc] init];        prevIEwController.dataSource = self;        prevIEwController.delegate = self;        prevIEwController.currentPrevIEwItemIndex = indexPath.row;        [[self navigationController] pushVIEwController:prevIEwController animated:YES];    } else {        [self displayMessage:@"document not found" Title:@"Oups !"];    }}

谢谢你的帮助 总结

以上是内存溢出为你收集整理的Quicklook / QLPreviewController,iOS 8的一些问题,但一切都适用于iOS 7.1全部内容,希望文章能够帮你解决Quicklook / QLPreviewController,iOS 8的一些问题,但一切都适用于iOS 7.1所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1099596.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-28
下一篇2022-05-28

发表评论

登录后才能评论

评论列表(0条)

    保存