Q: Some guidance needed upon Xcode 8.2.1 html page vertical cutoff picture of code 2   How do I get wkwebview(objective c) to show all content of loaded html file rather than vertically cutting half of the page off? (xcode 8.2.1)
system 10.11.6
target ios 8.0 and up
and i am not the best of code, so if there is something that i can learn, I will apply it as i go.... 
This is the viewcontrollerm code for Xcode8.2.1, I am using  as uiwebview and webview did not pickup the local html file as fluently as wkwebview.I have tried alot of different solutions that obviously did not help..and it is simple...all i want to do is load index.html, i have java written within the html as well as css, and some links to an image folder.If someone could help it would be golden, and Many Blessings...
Also in the photo posted above i am using ios simulator for iphone 6, and as you can see the bottom paragraph of text is cut off, and i can only scroll alittle...It won't let me scroll anyfuther than that. I believe it has to do with the auto layout, making the dimensions of height fixed, where it won't scroll the html anyfurther. I could be totally wrong but if anyone else has any suggestions let me  know...
And the other pictures are of the code for the rest of the project.if it be any help.
#import "ViewController.h"
#import <WebKit/WebKit.h>


@interface ViewController () <WKScriptMessageHandler, WKNavigationDelegate>

@property (weak, nonatomic) IBOutlet UIButton *callJavascriptButton;
@property (strong, nonatomic) WKWebView *webView;
@property (strong, nonatomic) UIButton *scriptButton;

@end


@implementation ViewController

- (void)viewDidLoad
{
[super viewDidLoad];

// WKWebView
WKWebViewConfiguration *configuration = [[WKWebViewConfiguration alloc] init];
WKUserContentController *controller = [[WKUserContentController alloc] init];

// Add addScriptMessageHandler in javascript: 
window.webkit.messageHandlers.MyObserver.postMessage()
[controller addScriptMessageHandler:self name:@"MyObserver"];
configuration.userContentController = controller;



[self.view addSubview:self.webView];

// baseURL needs to be set for local files to load correctly
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"index" 
ofType:@"html"];
NSString *html = [NSString stringWithContentsOfFile:filePath 
encoding:NSUTF8StringEncoding error:nil];
[self.webView loadHTMLString:html baseURL:[NSBundle mainBundle].resourceURL];

}

- (IBAction)callJavascriptTapped:(id)sender
{
NSString *script = @"indexJS()";
[self.webView evaluateJavaScript:script completionHandler:^(NSString *result, 
NSError *error) {
    if (error) {
            NSLog(@"evaluateJavaScript error:%@", [error 
localizedDescription]);
        } else {
            NSLog(@"evaluateJavaScript result:%@", result);
        }
    }];
}

- (void)userContentController:(WKUserContentController *)userContentController 
didReceiveScriptMessage:(WKScriptMessage *)message
{

}

- (void)webView:(WKWebView *)webView didFinishNavigation:(null_unspecified 
WKNavigation *)navigation;


{

}

- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.


}



@end


A: Take a look at Apple's Swift Manual (in iBooks) to see how auto layout works.  Something like this called from viewDidLoad or viewWillAppear  (you'll need to adjust the top) should work:
Objective-C:
- (void) example {
    WKWebView *webView = [[WKWebView alloc] initWithFrame: CGRectZero];
    webView.translatesAutoresizingMaskIntoConstraints = NO;
    [self.view addSubview: webView];
    [webView.leftAnchor constraintEqualToAnchor: self.view.leftAnchor].active = YES;
    [webView.rightAnchor constraintEqualToAnchor: self.view.rightAnchor].active = YES;
    [webView.centerXAnchor constraintEqualToAnchor: self.view.centerXAnchor].active = YES;
    [webView.topAnchor constraintEqualToAnchor: self.view.topAnchor].active = YES;
    [webView.bottomAnchor constraintEqualToAnchor: self.view.bottomAnchor].active = YES;
}

Swift: 
func example() {
    let webView = WKWebView(frame: .zero)
    webView.translatesAutoresizingMaskIntoConstraints = false
    view.addSubview(webView)
    webView.leftAnchor.constraint(equalTo: view.leftAnchor).isActive = true
    webView.rightAnchor.constraint(equalTo: view.rightAnchor).isActive = true
    webView.centerXAnchor.constraint(equalTo: view.centerXAnchor).isActive = true
    webView.topAnchor.constraint(equalTo: view.topAnchor).isActive = true
    webView.bottomAnchor.constraint(equalTo: view.bottomAnchor).isActive = true
}

