开发者

How to add an option to the popup actionsheet of iphone safari?

开发者 https://www.devze.com 2022-12-16 19:50 出处:网络
I am using UIWebview in my app, when tap and hold on a link for a second an actionsheet pops up with some options OPEN, COPY and开发者_Go百科 Cancel.

I am using UIWebview in my app, when tap and hold on a link for a second an actionsheet pops up with some options OPEN, COPY and开发者_Go百科 Cancel.

How to add a custom option to the actionsheet ?


No you can't.


The buttons in the popup action sheet are hardcoded for each data type. You can't change that from a web site. You can change the buttons by overriding various private methods in UIWebDocumentView and UIWebURLAction, but you can't do these in AppStore apps anyway since they are undocumented classes.

0

精彩评论

暂无评论...
验证码 换一张
取 消