Q:

How to get the currently selected text in any app?

I want to get the selected text from any application. Is there a way to send it to my app? In android there is a Share button, but how does iOS do it? Or there is another way

A:

You can possibly use the UIPasteBoard API for your needs: https://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIPasteboard_Class/Reference.html
There is, however not any way apps can communicate with each as apps are sandboxed on iOS and not open like you're used to with Android development.

