It seems that QLPreViewController's method +canPreviewItem doesn't work.
I've under currentAttachment value path to xls document, but it's xlsx document.
if (![QLPreviewController canPreviewItem:[NSURL fileURLWithPath:self.currentAttachment]])
{
NSLog(@"Can't Preview Item");
}
The methods returns YES, but preview is not generated.
So it's xlsx file saved as xls. And i'm trying to understand can I preview it or not, if not I'm trying to preview xlsx file etc.
But always it says that I can.