ti8m / DocumentHandler

A phonegap plugin to handle documents (f.e. PDFs) loaded from a URL.
MIT License
30 stars 70 forks source link

Title Parameter #12

Open hirbod opened 9 years ago

hirbod commented 9 years ago

Hi,

it would be very nice to have a title param on iOS. Currently, I have images as md5-string.jpg, that looks very weird.

https://developer.apple.com/library/ios/documentation/FileManagement/Conceptual/DocumentInteraction_TopicsForIOS/Articles/UsingtheQuickLookFramework.html

A displayed preview includes a title taken from the last path component of the item URL. You can override this by implementing a previewItemTitleaccessor for the preview item.
hirbod commented 9 years ago

For now,

I've changed DocumentHandler.m and added these before @end

NSString *urlTitle = @"";
- (NSString *)previewItemTitle
{
    return urlTitle;
}

Cause I don't need a title. But this could be done in a few minutes as parameter, too.