How to use WebView on xcode 4.5.1

前端 未结 2 914
攒了一身酷
攒了一身酷 2021-02-04 17:27

I\'m new to programming and I need to embed a website in my application (which is blank; I only want to embed the website right now). I\'ve been searching for it since 5:00 PM (

2条回答
  •  不要未来只要你来
    2021-02-04 17:44

    Did you find the Apple tutorial on this very subject:

    WebView *webview = [[WebView alloc] init]; // or initialise using the modern-equivalent of InterfaceBuilder
    [[webView mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:urlText]]];
    

提交回复
热议问题