Jump to content

UIWebview code


Go to solution Solved by sn0wqt,

4 posts in this topic

Recommended Posts

Posted (edited)

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
  • Solution
Posted (edited)


- (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

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines