Skip to content
Browse files

moving code to vda

  • Loading branch information...
1 parent f5b8ddc commit 1b24e0c93e2cabb7f89fde40ecf1c1bd4639cde2 @coreyfloyd coreyfloyd committed Oct 25, 2011
Showing with 9 additions and 9 deletions.
  1. +9 −9 BrowserViewController.m
View
18 BrowserViewController.m
@@ -176,8 +176,16 @@ - (void)viewDidLoad
{
MARK;
- self.network = [Reachability reachabilityWithHostName:[self.currentURL host]];
+ // [self showLoadingView];
+ [super viewDidLoad];
+}
+//==========================================================================================
+- (void)viewWillAppear:(BOOL)animated
+{
+ //self.webView.delegate = self; // setup the delegate as the web view is shown
+ self.network = [Reachability reachabilityWithHostName:[self.currentURL host]];
+
if(self.currentURL && [self.network currentReachabilityStatus]){
[self.webView loadRequest:[NSURLRequest requestWithURL:self.currentURL cachePolicy:NSURLRequestReloadIgnoringLocalAndRemoteCacheData timeoutInterval:60.0]];
@@ -195,14 +203,6 @@ - (void)viewDidLoad
[UIAlertView presentAlertViewWithTitle:@"Error" message:@"No webpage to load" delegate:nil];
}
- // [self showLoadingView];
- [super viewDidLoad];
-}
-
-//==========================================================================================
-- (void)viewWillAppear:(BOOL)animated
-{
- self.webView.delegate = self; // setup the delegate as the web view is shown
}
//==========================================================================================

0 comments on commit 1b24e0c

Please sign in to comment.
Something went wrong with that request. Please try again.