title: Opening a epub file on a UIWebView
body: <p>Xcode Open File (epub) with xcode programming - NOT OPENING (O just see a little white block on upper right)</p>
  
  <p>I have also added epub file in project, I am using following below code to open it in viewdidload method.</p>
  
  <pre><code>- (void)viewDidLoad
  {
      NSString *filepath = [[NSBundle mainBundle]pathForResource:@"MyEpub" ofType:@"epub"];
      UIWebView *wv = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, 100, 100)];
      [self.view addSubview:wv];
      [wv loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:filepath]]];
  
      [super viewDidLoad];
  }
  </code></pre>