Adding a view to FastPdfKit
I have FastPdfKit as a subproject of my project. I want to add a new view to ReaderViewController in the subproject.
I create a MyView.xib inside Calsses -> Reader. Inside ReaderViewController I load the view from a nib and attempt to show it. However this fails to find the .xib file at runtime.
Can you tell me how I need to configure xCode to find the .xib in the subproject?
Thanks!
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Matteo on 15 Apr, 2013 07:25 AM
Hello Mark,
.xib
files are not included in static libraries or recognized in workspaces. In order to include the file on the other project you can create a new Bundle target (looking on mac targets from xcode), it is a quite advanced move.Otherwise simply drag the xib on the main project and leave the "Copy file" unchecked. Then reference the file as usual.
Best regards,
Matteo