uxmstudio / UXMPDFKit

An iOS PDF viewer and annotator written in Swift that can be embedded into any application.
MIT License
275 stars 103 forks source link

I have pod install in objC project and create bridge header and import in my class like @import PDFKit and i have access frame work classes easily but i am not able to access class methods error as following as - "No visible @interface for 'PDFDocument' declares the selector 'initWithFilePath:password:error'" . NSError *error; NSString *path = [[NSBundle mainBundle] pathForResource:@"sample" ofType:@"pdf"]; PDFDocument *document = [[PDFDocument alloc] initWithFilePath:path password:@"password_if_needed" error:&error]; PDFViewController *pdfVC = [[PDFViewController alloc] initWithDocument:document]; [self.navigationController pushViewController:pdfVC animated:true]; #101

Open RaviPatelCDN123 opened 4 years ago

RaviPatelCDN123 commented 4 years ago

<!— Provide a general summary of the issue in the Title above —>

Expected Behavior

<!— If you’re describing a bug, tell us what should happen —> <!— If you’re suggesting a change/improvement, tell us how it should work —>

Current Behavior

<!— If describing a bug, tell us what happens instead of the expected behavior —> <!— If suggesting a change/improvement, explain the difference from current behavior —>

Steps to Reproduce (for bugs)

<!— Provide a set of steps to reproduce this bug. Include code if relevant —> 1. 2. 3. 4.

Your Environment

<!— Include as many relevant details about the environment you experienced the bug in —>