I have to create the part for "Text":
if let part = try resultPackage?.createPart("Text") /* Options are : "Diagram", "Drawing", "Math", "Text Document", "Text" */ {
editorViewController.editor.part = part
self.title = "Type: " + part.type
}
Also I had a text.res file in my project,
But where to get the following events(Pointer up,poniter up+,pointer down)
Is there is any sample code available for that?
Hello is there is anybody to solve my query?
Please give any sample code(Directly write in a textfield) for iOS.
I referred this following links ,
https://developer-support.myscript.com/support/discussions/topics/16000023289
https://developer-support.myscript.com/support/discussions/topics/16000021288
But I can't get any idea?
Dear Kannan,
I am sorry but I am not sure to understand your request? Do you want to display a text string without any pointer event? In that case, you can use the "import_" function setting the "text" mimetype?
But where to get the following events(Pointer up,poniter up+,pointer down)
>>You can refer to our documentation that explains how you can add your x and y coordinates https://developer.myscript.com/docs/interactive-ink/1.2/ios/fundamentals/editing/#input-capture
There are also many samples available on this forum:
-https://developer-support.myscript.com/en/support/discussions/topics/16000021050
-https://developer-support.myscript.com/en/support/discussions/topics/16000021290
Hello is there is anybody to solve my query?
Please give any sample code(Directly write in a textfield) for iOS.
=>this is not the way we usuallly exchange on our forum. When problems are properly explained, we always do our best to answer as fast as possible!
Best regards,
Olivier
Sorry for your worry,Actually I want to write a letter in my custom view,Exaclty I need a following feature ,
Dear kannan,
as said above , if you want to import text in your editor, all you need to to is use the import function setting the "TEXT" mimetype: http://cocoadocs.org/docsets/MyScriptInteractiveInk-Runtime/1.0.0/Classes/IINKEditor.html#//api/name/import_:data:block:error:
If you just want to add a "sample" text in a custom uitextfield, than you should refer to the Apple API documentation: https://developer.apple.com/documentation/uikit/uitextfield
Best regards,
Olivier
Hi Olivier,
Thanks for your reference links,But exactly what I need was I have signup page with multiple UITextfields(iOS).Refer the following screenshot,
I didn't want to import the text, My need was directly write a letter into my UITextfileds.Please give some sample code for this(iOS) or any ideas.Thanks in advance.
Dear Kannan,
maybe you could create a subview in which you add text? When ink is written on top of this subview, you remove the text. Defining a subview and adding text can be done as follows: https://stackoverflow.com/questions/48856944/swift-3-add-text-to-uiview-pop-up
Please give some sample code
>>This forum is to help customers use our technology, not to develop for them. The idea is that the customer has its own specification, develop his application, and if he has any question related to our technology, we answer these.
Best regards,
Olivier
Hi Olivier,
>>maybe you could create a subview in which you add text? When ink is written on top of this subview, you remove the text. Defining a subview and adding text can be done as follows: https://stackoverflow.com/questions/48856944/swift-3-add-text-to-uiview-pop-up
Is this the only way to implement this feature into my UITextfields? or There is any other option available for this to implement?
Hi Olivier,
>>maybe you could create a subview in which you add text? When ink is written on top of this subview, you remove the text. Defining a subview and adding text can be done as follows: https://stackoverflow.com/questions/48856944/swift-3-add-text-to-uiview-pop-up
Is this the only way to implement this feature (Directly write a words in UITextfileds in my SignUp Page) or Is there is any Option available?.Because I want to know about that this feature's(Directly write a letters in my UITextfields to fill my signUp Page Using link SDK) based functions loaded in your iink SDK as predefined.Please clarify about that.
Dear Kannan,
I am sorry your point is not going faster, but from the beginning your request is not clear. We are not able to know exactly what yout want to achieve. We are not sure your question is related to the MyScript techology or to a more basic iOS questions (add a word in a text field), in which case we will not provide with an answer.
Any non MyScript technology request is not to be adressed on our forum!
Based on the above, my understanding is the following:
1-You have an application that contains several fields
2-In your fields, you want to have pre-defined text (e.g. "Email ID" written)?
3-When selecting this field, you use the iink SDK to input ink?
4-When getting the text result, you want to write it in the text field?
If the above specification is correct, you can then proceed as follows:
2-For the predefined text, you can create a subview with UITextfield, as said above in this thread.
3-To input the x and y coordinates, you can refer to the link provided above: https://developer-support.myscript.com/support/discussions/topics/16000021050, https://developer-support.myscript.com/support/discussions/topics/16000021290, and more are available using the search feature of our forum
4-You can use the same UITextfield than 2, i.e. when the iink result is available, you export it as text and update this UITextfield.
As said earlier in this thread, MyScript is there to help developers use our technology, not to develop for them. We will therefore not provide any code to set predefined text in UITextfield.
Best regards,
Olivier
Kannan Balasubramanian
I want to directly write a letter into my Textfield using by iink SDK iOS.Is there any sample code is available for that?