11#import "HelpController.h" 
   16- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
 
   18  self = [
super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
 
   22    [
self setTitle:NSLocalizedString(@"Help", @"Help Controller title")];
 
   23    UIImage *tabBarIcon = [UIImage
 
   24        imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"tabbar_icon_help"
 
   26    [
self setTabBarItem:[[[UITabBarItem alloc]
 
   27                            initWithTitle:NSLocalizedString(@"Help", @"Tabbar item help")
 
   37  webView = [[[UIWebView alloc] initWithFrame:CGRectZero] autorelease];
 
   39      setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)];
 
   40  [webView setAutoresizesSubviews:YES];
 
   41  [webView setDelegate:self];
 
   42  [webView setDataDetectorTypes:UIDataDetectorTypeNone];
 
   43  [
self setView:webView];
 
   56  NSString *filename = (IsPhone() ? 
@"gestures_phone" : 
@"gestures");
 
   57  NSString *htmlString = [[[NSString alloc]
 
   58      initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:filename
 
   60                                                        inDirectory:@"help_page"]
 
   61                    encoding:NSUTF8StringEncoding
 
   62                       error:nil] autorelease];
 
   65      loadHTMLString:htmlString
 
   66             baseURL:[NSURL fileURLWithPath:[[[NSBundle mainBundle] bundlePath]
 
   67                                                stringByAppendingPathComponent:@"help_page"]]];
 
   71- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation