facebook

copy to clipboard on iOS, test paste in the test center

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #332577 Reply

    devsdca
    Member

    1) Is this the correct javascript to use in the action drop down to assign it to a button to copy some text into the iPhone clipboard?

    UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
    pasteboard.string = @”paste me somewhere”;

    2) Is there a way to test this in the test center?

    I could not find a way to paste this in the test center to see if it actually works.

    Thanks

    #332604

    Hi devsdca,

    > 1) Is this the correct javascript to use in the action drop down to assign it to a button to copy some text into the iPhone clipboard?
    That’s not JavaScript but rather ObjectiveC.

    What you’re trying to do is not possible at this time.

    #332605

    devsdca
    Member

    @support-octavio wrote:

    Hi devsdca,

    > 1) Is this the correct javascript to use in the action drop down to assign it to a button to copy some text into the iPhone clipboard?
    That’s not JavaScript but rather ObjectiveC.

    What you’re trying to do is not possible at this time.

    Thanks for the quick reply.

    I’m not a programmer, just googled this… 🙂

    I’m not clear on your answer:

    Is it not possible to use MobiOne to copy something from the app to the clipboard (not important whether it’s with Javascript of ObjectiveC)?

    This is done i.e. by the Buffer app to copy a bookmarklet to the safari browser bookmarks from the app. I’m trying to do basically the same thing.

    Or

    2) is it not possible to emulate the paste function in the emulator, but the copy action would work?

    #332879

    @devsdca,

    I’ve discuss this with dev team and they confirm me that this is not possible for mobione apps atm.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: copy to clipboard on iOS, test paste in the test center

You must be logged in to post in the forum log in