Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #9450 Reply

    Viktor

    I added this code to main view controller:

    – (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
    [self.documentView setTool:PlugPDFNoteTool];
    }

    PlugPDFNoteTool doesn’t work, but if i replace tool with PlugPDFInkTool then it works fine.

    #9462 Reply

    Dr. Plug
    Moderator

    Hello, Viktor

    Actually in PlugPDFDocumentViewControllerDelegate,

    There is a method named viewWillAppear. how about using this?

    this is an example code.

    Best Regards,
    Dr.Plug

    • This reply was modified 1 year, 4 months ago by  Dr. Plug.
    #9464 Reply

    Viktor

    Actually i put this code into – (void)viewDidAppear:(BOOL)animated method just for example and i need it to be called when user press a button to activate specific tool and note annotation tool simply doesn’t work no matter where it called from.

    #9470 Reply

    Dr. Plug
    Moderator

    Hello, Viktor

    You used viewDidAppear in your viewController and it is from UIViewController, right?

    Actually at that time, documentView isn’t created yet. so setTool method doesn’t work.

    So that’s why i suggest you to use a viewWillAppear, viewDidAppear method from PlugPDFDcoumentViewControllerDelegate.

    Best Regards,
    Dr.Plug

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Note Tool doesn't work in UsingPlugPDFDocumentView example project
Your information: