diff options
Diffstat (limited to 'Classes/TopicsViewController.m')
-rw-r--r-- | Classes/TopicsViewController.m | 45 |
1 files changed, 18 insertions, 27 deletions
diff --git a/Classes/TopicsViewController.m b/Classes/TopicsViewController.m index ab07416..2dfc8c6 100644 --- a/Classes/TopicsViewController.m +++ b/Classes/TopicsViewController.m @@ -49,19 +49,19 @@ [self startParsing]; } -- (UINavigationController *)topicsNavigationController { - if (topicsNavigationController == nil) { - topicsNavigationController = [[UINavigationController alloc] initWithRootViewController:self.picDumpViewController]; - } - return topicsNavigationController; -} - -- (PicDumpViewController *)picDumpViewController { - if (picDumpViewController == nil) { - picDumpViewController = [[PicDumpViewController alloc] initWithNibName:@"PicDumpViewController" bundle:nil]; - } - return picDumpViewController; -} +//- (UINavigationController *)topicsNavigationController { +// if (topicsNavigationController == nil) { +// topicsNavigationController = [[UINavigationController alloc] initWithRootViewController:self.picDumpViewController]; +// } +// return topicsNavigationController; +//} +// +//- (PicDumpViewController *)picDumpViewController { +// if (picDumpViewController == nil) { +// picDumpViewController = [[PicDumpViewController alloc] initWithNibName:@"PicDumpViewController" bundle:nil]; +// } +// return picDumpViewController; +//} - (PhotoViewController *)photoViewController { if (photoViewController == nil) { @@ -70,16 +70,6 @@ return photoViewController; } -//- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier { -// -// self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]; -// if (self) { -// // Initialization code. -// } -// return self; -//} - - - (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; @@ -98,7 +88,7 @@ NSLog(@"startParsing"); //self.navigationItem.rightBarButtonItem.enabled = NO; // Reset the title - self.title = NSLocalizedString(@"Getting Recent Picdumps...", @"Loading"); + //self.title = NSLocalizedString(@"Getting Recent Picdumps...", @"Loading"); // Allocate the array for song storage, or empty the results of previous parses if (topics == nil) { self.topics = [NSMutableArray array]; @@ -202,7 +192,7 @@ #pragma mark <iTunesRSSParserDelegate> Implementation - (void)parserDidEndParsingData:(XMLParser *)parser { - self.title = [NSString stringWithFormat:NSLocalizedString(@"Recent Picdumps (%d)", @"Recent"), [topics count]]; + //self.title = [NSString stringWithFormat:NSLocalizedString(@"Recent Picdumps (%d)", @"Recent"), [topics count]]; [self.tableView reloadData]; //self.navigationItem.rightBarButtonItem.enabled = YES; self.parser = nil; @@ -210,13 +200,14 @@ - (void)parser:(XMLParser *)parser didParseTopics:(NSArray *)parsedTopics { [topics addObjectsFromArray:parsedTopics]; - // Three scroll view properties are checked to keep the user interface smooth during parse. When new objects are delivered + + // Three scroll view properties are checked to keep the user interface smooth during parse. When new objects are delivered // by the parser, the table view is reloaded to display them. If the table is reloaded while // the user is scrolling, this can result in eratic behavior. dragging, tracking, and decelerating can be checked // for this purpose. When the parser finishes, reloadData will be called in parserDidEndParsingData:, guaranteeing // that all data will ultimately be displayed even if reloadData is not called in this method because of user interaction. if (!self.tableView.dragging && !self.tableView.tracking && !self.tableView.decelerating) { - self.title = [NSString stringWithFormat:NSLocalizedString(@"Recent Picdumps (%d)", @"Recent"), [topics count]]; + //self.title = [NSString stringWithFormat:NSLocalizedString(@"Recent Picdumps (%d)", @"Recent"), [topics count]]; [self.tableView reloadData]; } } |