4

I'm trying to replace or add more options into the action sheet popup in uiwebview. When touching long touch on a link standard uiwebview popup shows up. I saw some apps which did it, but i can't figure it out.

the standard options are : open or copy, i want to hide copy and add send email.

Any help ?

Thanks Albert

TomSwift
  • 39,369
  • 12
  • 121
  • 149
Al B
  • 61
  • 1
  • 4

2 Answers2

2

That "action" popup can be disabled in a UIWebView by setting the CSS class -webkit-touch-callout: none or by setting document.documentElement.style.webkitTouchCallout = "none"; in javascript.

Once you disable the default behavior you can create any custom action sheet you'd like.

Jehiah
  • 2,739
  • 22
  • 18
0

You want to customize the UIMenuItems of the UIMenuController. I explain how to do this here: Customize UIMenuController

Community
  • 1
  • 1
TomSwift
  • 39,369
  • 12
  • 121
  • 149