+1  A: 

I don’t think there is a public interface to these controls, you’d probably have to code them yourself. (Or maybe figure out the private API, but that’s a slippery slope.) I am not sure about that, though, maybe somebody will prove me wrong.

zoul
+3  A: 

It looks like Amazon implemented their own custom view that mimicked the appearance of UIMenuController. I believe they did this rather than use SPI because if you click and hold on the Highlight cell, the arrow does not highlight, when it does in the real UIMenuController.

Kevin Ballard
balexandre
More evidence that they recreated the control is the radius of the rounded rect doesn't exactly match that you see in the real UIMenuController callout.
Kevin Ballard
A: 

That's a good point about the arrow part of the Notes/Highlight popup menu not highlighting, so they must be implementing their own.

However they are also obviously using a UIWebView, because it's recognizing tap and hold and they can highlight the text, and you can't get touch events from a UIWebView, much less get the information about what's selected. So how are they doing that?

This would be very useful for us to be able to do as well.

ghayenga
Not directly, but you can have JavaScript code in the web view getting those events, and there is bi-directional communication between the native app and the content in the web view.... It'd be a pain to implement, for sure, but far from impossible.
Sixten Otto
A: 

the javascript part can be managed with jQuery, that's a fair simple and powerful library. i'm using it for resizing and rearranging things in a webview and it works great :)

Luke
A: 

Use DTMenuController http://www.drobnik.com/touch/2010/01/dr-touchs-parts-store/

Costs 100 EUR ^_^

Gurpartap Singh