Skip to content
Guest Big Announcement

UIWebview code

Featured Replies

I want to add a UIWebview to my upcoming tweaks but I don't know how. Any help?

Note: can you please code it in objective c because I am n00by at c++

 

-KingRalph

Updated by KingRalph

Solved by sn0wqt

  • Solution

- (void)viewDidLoad

{

[super viewDidLoad];

 

//set desired width and height

UIWebView *myWebView = [[UIWebView alloc] initWithFrame:CGRectMake(10, 100, 300, 300)];

[myWebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.google.com"]]];

[self.view addSubview:myWebView];

 

}

Updated by PHo3niX

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.