WebView google site is not loaded in this scenario
While we tried to use , its get loaded...
Can anyone guide me how to make the first code to be worked inside cocoa touch library project
WebView google site is not loaded in this scenario
While we tried to use , its get loaded...
Can anyone guide me how to make the first code to be worked inside cocoa touch library project
On
Use this code to add the UIWebView to App key Window, your issue was that maybe where you are using your code the self.view is nil, I suppose
UIApplication * app = [UIApplication sharedApplication];
UIWebView* web = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, app.keyWindow.frame.size.width, app.keyWindow.frame.size.height)];
web.layer.borderWidth = 1;
web.layer.borderColor = [[UIColor redColor] CGColor];
NSURLRequest * req = [[NSURLRequest alloc]initWithURL:[NSURL URLWithString:@"https://www.w3schools.com"]];
[web loadRequest:req];
[app.keyWindow addSubview:web];
Hope this helps, for me work as should
On
try this code...
[[UIApplication sharedApplication] setStatusBarHidden:YES];
UIWebView *web=[[UIWebView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
web.layer.borderWidth = 1;
web.layer.borderColor = [[UIColor redColor] CGColor];
[web loadRequest:req]; [self.adView addSubview:web];
Use delegates to achieve webview from static library to application
Concentrate on adView ... here you will get stuck...