Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIWebView is unavailable: not available on tvOS

Is there anyway to use a UIWebView with an application targeted for tvos? This Apple Doc, UIWebView Class Reference, would suggest otherwise would it not? Or am I just interpreting this all wrong?

UIWebViewNavigationType (New in tvos 9.0)

like image 865
Daniel Storm Avatar asked Oct 19 '25 10:10

Daniel Storm


2 Answers

UIWebView is not available for tvOS, as @JessBowers mentioned in the comments, and is documented here: UIKit Changes for Objective-C, UIKit Changes for Swift.

For a complete list of iOS API's that are available for tvOS refer to: iOS 9.0 to tvOS 9.0 API Differences

like image 109
Daniel Storm Avatar answered Oct 22 '25 04:10

Daniel Storm


Although WebKit/UIWebView is not officially available in tvOS, some people have figured out that it is possible to use that functionality if you are willing to edit your system header files. No word on whether Apple would actually approve a tvOS app that is using such an undocumented API.

  • http://www.macrumors.com/2015/11/06/apple-tv-4-web-browser-tvos-hack/
  • https://github.com/steventroughtonsmith/tvOSBrowser
like image 26
bovine Avatar answered Oct 22 '25 05:10

bovine



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!