Adding a view to FastPdfKit

Mark's Avatar

Mark

13 Apr, 2013 09:25 PM

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!

  1. Support Staff 1 Posted by Matteo on 15 Apr, 2013 07:25 AM

    Matteo's Avatar

    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

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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