Ignore:
Timestamp:
08/29/13 06:14:50 (7 years ago)
Author:
Steve Castellotti <sc@…>
Branches:
master, Servo, Tab_Interface, pyramid
Children:
99d222a
Parents:
c76cf7b
Message:

Support:

  • Launch support and forum pages in Safari
File:
1 edited

Legend:

Unmodified
Added
Removed
  • iOS/Orbit/Orbit/controllers/SupportViewController.m

    rcef53d8 r2e79fbc  
    2828} 
    2929 
     30//UIWebView *description; 
     31//@synthesize description; 
     32 
    3033#define BASEURL [NSURL fileURLWithPath:[[NSBundle mainBundle] bundlePath]] 
    3134- (void) loadSupportSite 
     
    3437//    [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString: @"http://orbit.puzzlebox.info/contact"]]]; 
    3538 
     39//   [description loadHTMLString:string baseURL:nil]; 
     40//   description.delegate = self; 
    3641    
    3742   NSString *urlAddress = [[NSBundle mainBundle] pathForResource:@"support" ofType:@"html"]; 
     
    4348    
    4449} 
     50 
     51 
     52-(BOOL) webView:(UIWebView *)inWeb shouldStartLoadWithRequest:(NSURLRequest *)inRequest navigationType:(UIWebViewNavigationType)inType { 
     53   if ( inType == UIWebViewNavigationTypeLinkClicked ) { 
     54      [[UIApplication sharedApplication] openURL:[inRequest URL]]; 
     55      return NO; 
     56   } 
     57    
     58   return YES; 
     59} 
     60 
     61 
     62//-(BOOL) webView:(UIWebView *)inWeb shouldStartLoadWithRequest:(NSURLRequest *)inRequest navigationType:(UIWebViewNavigationType)inType { 
     63//   if ( inType == UIWebViewNavigationTypeLinkClicked ) { 
     64//      NSURL *url = [inRequest URL]; 
     65//      if ([[url absoluteString] rangeOfString:@"tracker"].location == NSNotFound) { 
     66//         [[UIApplication sharedApplication] openURL:[inRequest URL]]; 
     67//         return NO; 
     68//      } 
     69//   } 
     70//   return YES; 
     71//} 
     72 
    4573 
    4674#pragma mark UIWebViewDelegate methods 
Note: See TracChangeset for help on using the changeset viewer.