IOS开发中制作一个按钮如何建工程,本人初学者,希望写出详细步骤 并且在action函数中设置访问一个网页,
1个回答
展开全部
UIWebView *webView=[[UIWebView alloc]initWithFrame:CGRectMake(0, 0, 480, 320)];
UrlString=[[NSString alloc]initWithFormat:@"http://www.floraphotographs.com/showrandomiphone.php?color=1&session1"];
Url=[[NSURL alloc]initWithString:UrlString];
[webView loadRequest:[NSURLRequest requestWithURL:Url]];
[self.view addSubview: webView];
UrlString=[[NSString alloc]initWithFormat:@"http://www.floraphotographs.com/showrandomiphone.php?color=1&session1"];
Url=[[NSURL alloc]initWithString:UrlString];
[webView loadRequest:[NSURLRequest requestWithURL:Url]];
[self.view addSubview: webView];
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询