Posted text in notes

I am trying to add a copy to notes button in my application that sends text to the ios notes application. Is there any way to integrate this? I did some research and found nothing, and since I never saw it in another application, I think it is impossible, but I thought it was worth the question.

+7
source share
1 answer
Good question. Situations like the ones you describe are always handled using URL schemes using the UIApplication openURL: method. For example, to launch a phone application with a specific number, you could do:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:1-234-567-8910"]; 

Or launch the Mail application:

 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mailto: nobody@example.com "]; 

Just to show some examples. The Apple URL Reference describes all the different URL schemes for integration with various system applications. Nowhere in this document is the URL scheme for the Notes embedded application. If text could be sent to the Notes application, I would expect the document to advertise this fact. Although this is conclusive evidence that this is not possible, I still believe that it should be cited as convincing evidence of this.

Please note that there are probably several third-party note-taking applications that have their own URL scheme that can support launching with text.

+4
source

All Articles