ios9 - Issue loading a url in WKWebView using Xcode 7 beta3 -


i doing quick test on wkwebview evaluate benefits , drawbacks. have found able load urls using xcode 6.4 , ios 8 having issues loading same url in xcode 7 beta 3.

this doing :

- (void)viewdidload {     [super viewdidload];      // first create wkwebviewconfiguration object can add controller     // pointing viewcontroller.     wkwebviewconfiguration *configuration = [[wkwebviewconfiguration alloc]                                              init];     wkusercontentcontroller *controller = [[wkusercontentcontroller alloc]                                            init];      // add script handler "observe" call. added every frame     // in document (window.webkit.messagehandlers.name).     [controller addscriptmessagehandler:self name:@"observe"];     configuration.usercontentcontroller = controller;      // url loaded wkwebview.     nsurl *jsbin = [nsurl urlwithstring:k_jsbin_url3];      // initialize wkwebview current frame , configuration     // setup above     _webview = [[wkwebview alloc] initwithframe:self.view.frame                                   configuration:configuration];      // load jsbin url wkwebview , add sub-view.      [_webview loadrequest:[nsurlrequest requestwithurl:jsbin]];     [self.view addsubview:_webview]; } 

is there wrong doing or beta version of xcode , ios 9? thanks,

it's broken in xcode 7 (beta)/swift 2.0 far can see.

i'm using beta 5 had same problem earlier betas.

fingers crossed fixed in next beta. i'm sure in final release.

maybe they've intentionally blocked it's use due issues swift 2.0 haven't fixed yet.


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -