Skip to content
Browse files

style

  • Loading branch information...
1 parent efb8d95 commit c2122cf5df83c88f9f2d112cd65ca701b7b1f980 @samsonjs committed Dec 26, 2011
Showing with 10 additions and 7 deletions.
  1. +10 −6 5by5Browser/SSDetailViewController.m
  2. +0 −1 5by5Browser/en.lproj/SSDetailViewController_iPhone.xib
View
16 5by5Browser/SSDetailViewController.m
@@ -53,7 +53,7 @@ - (void) setEpisode: (Episode *)episode
}
}
-- (void)configureView
+- (void) configureView
{
if (self.episode) {
self.title = self.episode.name;
@@ -64,7 +64,7 @@ - (void)configureView
[self goHome: nil];
}
-- (void)viewDidLoad
+- (void) viewDidLoad
{
[super viewDidLoad];
[self configureView];
@@ -77,7 +77,7 @@ - (void)viewDidLoad
}
}
-- (void)viewDidUnload
+- (void) viewDidUnload
{
[self setWebView:nil];
[self setBackButton:nil];
@@ -88,7 +88,7 @@ - (void)viewDidUnload
[super viewDidUnload];
}
-- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
+- (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation
{
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
@@ -134,9 +134,8 @@ - (IBAction) goHome: (id)sender
}
}
-- (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
}];
}
+- (IBAction) sendToInstapaper: (id)sender
+{
+ [self sendURLToInstapaper: self.webView.request.URL.absoluteString];
+}
+
#pragma mark - Split view
- (void) splitViewController: (UISplitViewController *)splitController
View
1 5by5Browser/en.lproj/SSDetailViewController_iPhone.xib
@@ -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>

0 comments on commit c2122cf

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