I noticed that SmartGuideViewController is visible only the first time I open IINKContentPackage with partType "Text Document". On the other hand, when I use type "Text" it works all the time. You can test this even with GettingStartedSwift example with following modifications:
Inside Main.storyboard add UIViewController between UINavigationController and HomeViewController and make it rootViewController of UINavigationController.
Add UIButton and connect new segue that pushes HomeViewController to navigation stack when pressed. This way we open up HomeViewController on button press
Inside HomeViewController override back button with custom button. Inside button's selector save written content and pop viewController from navigation stack.
In HomeViewController's createPackage(packageName:) function change createPart("Text") to createPart("Text Document").
First time when you enter HomeViewController you will see SmartGuideViewController while you write. Press back in order to save the content.
Press on button inside UIViewController to enter HomeViewController -> you can write normally with Apple Pencil but no SmartGuideVC.
Restart the app and enter HomeVC. First time you will see SmartGuideVC but second time it won't be visible any more.
Currently, the smartGuideView is diplayed when calling the "scrollRectToVisible" function in the SmartGuideWordViewController.mm file (line 469).
As the source of the source of the IInkUIReferenceImplementation is provided for a demo purpose, you can set a breakpoint, see why you do not go in the corresponding code. it could be caused by an error, or the smartGuideView not properly initialized....
Best regards,
Olivier
1 Comment
O
Olivier @MyScript
said
over 4 years ago
Answer
Dear Josip,
thank you for contacting us.
Currently, the smartGuideView is diplayed when calling the "scrollRectToVisible" function in the SmartGuideWordViewController.mm file (line 469).
As the source of the source of the IInkUIReferenceImplementation is provided for a demo purpose, you can set a breakpoint, see why you do not go in the corresponding code. it could be caused by an error, or the smartGuideView not properly initialized....
Josip Bernat
Hi,
I noticed that SmartGuideViewController is visible only the first time I open IINKContentPackage with partType "Text Document". On the other hand, when I use type "Text" it works all the time. You can test this even with GettingStartedSwift example with following modifications:
Dear Josip,
thank you for contacting us.
Currently, the smartGuideView is diplayed when calling the "scrollRectToVisible" function in the SmartGuideWordViewController.mm file (line 469).
As the source of the source of the IInkUIReferenceImplementation is provided for a demo purpose, you can set a breakpoint, see why you do not go in the corresponding code. it could be caused by an error, or the smartGuideView not properly initialized....
Best regards,
Olivier
Olivier @MyScript
Dear Josip,
thank you for contacting us.
Currently, the smartGuideView is diplayed when calling the "scrollRectToVisible" function in the SmartGuideWordViewController.mm file (line 469).
As the source of the source of the IInkUIReferenceImplementation is provided for a demo purpose, you can set a breakpoint, see why you do not go in the corresponding code. it could be caused by an error, or the smartGuideView not properly initialized....
Best regards,
Olivier