This commit is contained in:
Sami Samhuri 2011-12-26 22:41:39 -05:00
parent efb8d95545
commit c2122cf5df
2 changed files with 10 additions and 7 deletions

View file

@ -53,7 +53,7 @@
}
}
- (void)configureView
- (void) configureView
{
if (self.episode) {
self.title = self.episode.name;
@ -64,7 +64,7 @@
[self goHome: nil];
}
- (void)viewDidLoad
- (void) viewDidLoad
{
[super viewDidLoad];
[self configureView];
@ -77,7 +77,7 @@
}
}
- (void)viewDidUnload
- (void) viewDidUnload
{
[self setWebView:nil];
[self setBackButton:nil];
@ -88,7 +88,7 @@
[super viewDidUnload];
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
- (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation
{
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
@ -134,9 +134,8 @@
}
}
- (IBAction) sendToInstapaper: (id)sender
- (void) sendURLToInstapaper: (NSString *)url
{
NSString *url = self.webView.request.URL.absoluteString;
NSDictionary *fields = [NSDictionary dictionaryWithObjectsAndKeys:
kInstapaperUser, @"username",
kInstapaperPassword, @"password",
@ -159,6 +158,11 @@
}];
}
- (IBAction) sendToInstapaper: (id)sender
{
[self sendURLToInstapaper: self.webView.request.URL.absoluteString];
}
#pragma mark - Split view
- (void) splitViewController: (UISplitViewController *)splitController

View file

@ -61,7 +61,6 @@
<string key="NSFrame">{{0, 416}, {320, 44}}</string>
<reference key="NSSuperview" ref="191373211"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView"/>
<string key="NSReuseIdentifierKey">_NS:371</string>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>