#import "ViewController.h"
#import <WebKit/WebKit.h>
@interface ViewController ()<WKNavigationDelegate>
@property(nonatomic,strong) WKWebView* webView;
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
//sreen是主屏幕的范围
CGRect screen = [[UIScreen mainScreen] bounds];
//按钮栏
CGFloat buttonBarWidth = 300;
UIView* buttonBar = [[UIView alloc]initWithFrame:CGRectMake((screen.size.width - buttonBarWidth)/2,50, buttonBarWidth, 30)];
buttonBar.backgroundColor = [UIColor grayColor];
[self.view addSubview:buttonBar];
//按钮栏按钮
UIButton* buttonLoadRequest = [UIButton buttonWithType:UIButtonTypeSystem];
[buttonLoadRequest setTitle:@"wedding" forS