UI4

it2024-11-06  10

// // ViewController.m // UI4_UIWebView // // Created by zhangxueming on 15/7/7. // Copyright (c) 2015年 zhangxueming. All rights reserved. // #import "ViewController.h" @interface ViewController () @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. UIWebView *webView = [[UIWebView alloc] initWithFrame:self.view.bounds]; NSURL *url = [NSURL URLWithString:@"http://www.baidu.com"]; //创建网络请求 NSURLRequest *request = [NSURLRequest requestWithURL:url]; //加载webView [webView loadRequest:request]; [self.view addSubview:webView]; } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. } @end

 

转载于:https://www.cnblogs.com/0515offer/p/4638832.html

相关资源:数据结构—成绩单生成器
最新回复(0)