有没有办法在iOS而不是Safari中使用自定义浏览器?

时间:2016-11-16 12:02:37

标签: ios safari appstore-approval


   有没有办法以编程方式使您的应用程序的自定义浏览器成为默认的浏览器而不是iOS中的Safari?我记得曾经看过一个项目似乎做了类似但却无法回忆起它是哪一个?如果有可能,Apple会批准此类应用程序还是拒绝它们?

谢谢,

稻谷

1 个答案:

答案 0 :(得分:0)

感谢您提出问题

请参考此link.

可能会帮助你。

您可以按照以下方式使用。

1)手动或使用pod安装库。   2)使用如下。

UINavigationController *webBrowserNavigationController = [KINWebBrowserViewController navigationControllerWithWebBrowser];
[self presentViewController:webBrowserNavigationController animated:YES completion:nil];

KINWebBrowserViewController *webBrowser = [webBrowserNavigationController rootWebBrowser];
[webBrowser loadURLString:@"http://www.example.com"];

此库的优势:

功能

iOS 7 & 8 support for iPhone and iPad devices
Safari-like interface
Animated progress bar
Customizable UI including tint color
Portrait and landscape orientation support
Use with existing UINavigationController or present modally
Delegate protocol for status callbacks
Action button to allow users to copy URL, share, or open in Safari & Google Chrome

<强>更新

对不起我们之间的巨大误解。

我很遗憾地说,不可能在iOS而不是Safari中使用自定义浏览器默认设置?