title: Webview not loading page in iOS app
body: <p>I'm relatively new to programming in general, but I've attempted to find the answer to this and have failed to no end.</p>
  
  <p>So basically I am attempting to create an application that has a map view scene, and that works fine. I then have another scene that is for web view. So when you go to the mapview scene there is a button that takes you to the webview scene.</p>
  
  <p>The webview scene, however is not loading the web page at all, although when I create the webview part of the application in a different project with no other coding involved, it works just fine. </p>
  
  <p>Here is the coding I have so far:</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  #import &lt;MapKit/MapKit.h&gt;
  
  @interface ViewController : UIViewController {
      MKMapView * mapview; IBOutlet UIWebView *webview;
  }
  
  @property (nonatomic, retain) IBOutlet UIWebView*webview;
  
  @property (nonatomic, retain) IBOutlet MKMapView *mapview;
  -(IBAction)setMap:(id)sender;
  -(IBAction)getlocation;
  
  
  
  @end
  
  --------
  
  
  @implementation ViewController
  
  @synthesize webview;
  @synthesize mapview;
  
  
  -(IBAction) getlocation {
      mapview.showsUserLocation= YES;
  }
  
  -(IBAction)setMap:(id)sender {
      switch(((UISegmentedControl *) sender).selectedSegmentIndex) {
          case 0:
              mapview.mapType= MKMapTypeStandard;
              break;
          case 1:
              mapview.mapType= MKMapTypeSatellite;
              break;
          case 2:
              mapview.mapType= MKMapTypeHybrid;
              break;
  
          default:
              break;
  
  
  
      }
  
  
  
  
  }
  
  - (void)didReceiveMemoryWarning
  {
      [super didReceiveMemoryWarning];
      // Release any cached data, images, etc that aren't in use.
  }
  
  #pragma mark - View lifecycle
  
  - (void)viewDidLoad 
  {
      [super viewDidLoad];
      [webview loadRequest:[NSURLRequest requestWithURL: [NSURL URLWithString: @"http://www.google.com"]]];
      // Do any additional setup after loading the view, typically from a nib.
  }
  </code></pre>
  
  <p>If you could help, would be greatly appreciated. Let me know if elaboration is required.</p>