Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Nov 13, 2019 · 0 comments

Comments

@RaviPatelCDN123
Copy link

<!— 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 —>

  • iOS Version:
  • Xcode Version:
  • Swift Version:
@RaviPatelCDN123 RaviPatelCDN123 changed the title 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 able to access class methods error as following as - 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]; Nov 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant