您的位置:首页 > 移动开发

157,UIWebView

2015-12-31 16:24 267 查看
#import "ViewController.h"

#import "ViewController.h"

@interface
ViewController ()

@property (weak,
nonatomic) IBOutlet
UIWebView *webView;

@property (weak,
nonatomic) IBOutlet
UITextField *address;

@end

@implementation ViewController

- (IBAction)searchWeb:(id)sender {

NSString *webAddress = [NSStrin stringWithFormat:@"http://%@",self.address.text];

[self.webView
loadRequest:[NSURLRequest
requestWithURL: [NSUR URLWithString:webAddress]]];

}

@end

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: