Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I add PDFView through Storyboard in iOS 11

I am creating a PDF reader kind of App and for that, I am using PDFKit to show PDF files in that app.

I am able to add PDFView through code and it's working fine.

But is it possible that I can add PDFView through storyboard and then by Outlet I will assign a PDF file to that view?

like image 816
CodeChanger Avatar asked Jan 29 '23 18:01

CodeChanger


1 Answers

You can create an UIView in your storyboard and give it the class PDFView in the identity inspector. You can then connect this view as usual via outlets. Connecting the methods like goBack as actions should also be possible.

like image 69
clemens Avatar answered Mar 07 '23 22:03

clemens