mardi 3 novembre 2015

Horizontal scrolling help xcode7 ios9

Hello i have been working with Xcode lately and i made a web view. However when i open up the app the web view is too big for the screen and is cut in half. I can scroll down but not sideways. Thanks in advance.

#import "SecondViewController.h"

@interface SecondViewController ()

@end

@implementation SecondViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    webView.delegate = self;
    NSString *fullURL= @"http://ift.tt/1PkHfRM";
    
    NSURL *url = [NSURL URLWithString:fullURL];
    
    NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
    [webView loadRequest:requestObj];
    
}

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

@end
#import <UIKit/UIKit.h>

@interface SecondViewController : UIViewController {
    
    IBOutlet UIWebView *webView;
    
}


@end

Aucun commentaire:

Enregistrer un commentaire