When the UIActivityViewController passes a string containing a new line and tries to share it with Evernote, it does not show a new line.

Asked 2 years ago, Updated 2 years ago, 44 views

If you do the following, Evernote will use

TEXT1

and the pre-line feed only.

If you choose Twitter or email,

TEXT1 TEXT2 TEXT3

and everything is passed, including a new line.

Is there a way to display everything in Evernote as well?

@IBAction functionButton(sender:UIBarButtonItem){

            let items=["TEXT1\nTEXT2\nTEXT3"] // Evernote displays TEXT1

            // Create an instance by specifying the data you want to pass
            let avc = UIAactivityViewController (activityItems: items, applicationActivities:nil)

            // Displaying the UIActivityViewController
            self.presentViewController(avc, animated:true, completion:nil)
    }

swift

2022-09-30 21:16

1 Answers

It's stuck in the same place, and I share what I understand.(Performed in Evernote 8.0.4)

If you select Evernote in the UIActivityViewController, it seems that only the part that matches the title can be displayed (edited).
When I actually sent it to Evernote, it sent me a text with a new line (in this case, "TEXT1\nTEXT2\nTEXT3").

On the other hand, if you display it on that part, everything will be treated as a title.
In addition, the part you sent as text will be sent to Evernote.

I hope it will be helpful.


2022-09-30 21:16

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.