From f4cb6e662a38ed1b9919e58dc9eef1f681a18ca8 Mon Sep 17 00:00:00 2001 From: Roy Yang Date: Mon, 16 Jul 2012 20:17:24 -0700 Subject: [PATCH] adding user to short circuit finding story --- media/ios/Classes/FeedDetailViewController.m | 7 ++++--- media/ios/Classes/NewsBlurAppDelegate.m | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/media/ios/Classes/FeedDetailViewController.m b/media/ios/Classes/FeedDetailViewController.m index 1c780d8ca..11bdae3b8 100644 --- a/media/ios/Classes/FeedDetailViewController.m +++ b/media/ios/Classes/FeedDetailViewController.m @@ -372,7 +372,7 @@ self.pageFetching = NO; // test for tryfeed - if (appDelegate.isTryFeed) { + if (appDelegate.isTryFeed && !self.foundTryFeed) { for (int i = 0; i < appDelegate.activeFeedStories.count; i++) { NSString *storyIdStr = [[appDelegate.activeFeedStories objectAtIndex:i] objectForKey:@"id"]; if ([storyIdStr isEqualToString:appDelegate.tryFeedStoryId]) { @@ -397,8 +397,6 @@ } } - - [self performSelector:@selector(checkScroll) withObject:nil afterDelay:0.2]; @@ -584,6 +582,9 @@ int location = [[[appDelegate activeFeedStoryLocations] objectAtIndex:indexPath.row] intValue]; [self loadStory:cell atRow:location]; } + + self.foundTryFeed = YES; + [MBProgressHUD hideHUDForView:appDelegate.splitStoryDetailNavigationController.view animated:YES]; } - (void)changeRowStyleToRead:(FeedDetailTableCell *)cell { diff --git a/media/ios/Classes/NewsBlurAppDelegate.m b/media/ios/Classes/NewsBlurAppDelegate.m index 2590c0e3f..c4c13e43f 100644 --- a/media/ios/Classes/NewsBlurAppDelegate.m +++ b/media/ios/Classes/NewsBlurAppDelegate.m @@ -425,7 +425,7 @@ NSDictionary *feed = [self.dictSocialFeeds objectForKey:feedId]; - [self setTryFeedStoryId:@"http://techcrunch.com/?p=576238"]; + [self setTryFeedStoryId:contentId]; [self setIsTryFeed:YES]; [self setIsSocialView:YES]; [self setActiveFeed:feed];