QLPreViewController的方法+canPreviewItem似乎不起作用。
我在xls文档的currentAttachment值路径下,但它是xlsx文档。
if (![QLPreviewController canPreviewItem:[NSURL fileURLWithPath:self.currentAttachment]])
{
NSLog(@"Can't Preview Item");
}该方法返回YES,但不生成预览。
所以它是另存为xls的xlsx文件。我想知道我能不能预览它,如果不能,我想要预览xlsx文件等等。
但它总是说我能做到。
发布于 2013-12-10 00:11:43
试试if(![QLPreviewController canPreviewItem:myPreviewItem.currentPreviewItem]) { NSLog(@"Can't preview item");
https://stackoverflow.com/questions/20049427
复制相似问题