WKWebView is not working in iOS 9.0

I have created a simple tabbed application and added the WebKit.framework and on the first view I added the following inside of viewDidLoad but nothing shows.


- (void)viewDidLoad {

[super viewDidLoad];

CGRect vRect = self.view.bounds;

self.webView = [[WKWebView alloc] initWithFrame:vRect configuration:[WKWebViewConfiguration new]];

self.webView.navigationDelegate = self;

self.webView.allowsBackForwardNavigationGestures = TRUE;

[self.webView setAutoresizingMask:UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth];

NSURL* __url = [NSURL URLWithString:@"http:/

NSURLRequest* __urlRequest = [NSURLRequest requestWithURL:__url];

[self.webView loadRequest:__urlRequest];

[self.view addSubview:self.webView];

}

NSURL* __url = [NSURL URLWithString:@"http://www.killerssoftware.com"]; // somehow didn't get pasted in to the code above.

After searching the web I found the answer by adding this to the info.plist the browser will work. For my app, I simply allow people to specify a website they want to open and login to.


<key>NSAppTransportSecurity</key>

<dict>

<key>NSAllowsArbitraryLoads</key><true/>

</dict>

Isn't this going to be cause for app rejection as many have speculated?

I am noticing this too, it seems I have to use the new Safari View Controller just for iOS 9.

No. I have several apps with NSAllowsArbitraryLoads approved.

WKWebView is not working in iOS 9.0
 
 
Q