From ab0c357216564967ccbb900923ead3830a13752b Mon Sep 17 00:00:00 2001 From: matt handler Date: Mon, 25 Apr 2011 02:21:36 -0400 Subject: added json stuff, sources are loading but not connected to any sensical database or nothing... coming together. next hard bit is going to be the animation when things update --- Classes/TopicsViewController.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Classes/TopicsViewController.m') diff --git a/Classes/TopicsViewController.m b/Classes/TopicsViewController.m index d9c2f60..67c8490 100644 --- a/Classes/TopicsViewController.m +++ b/Classes/TopicsViewController.m @@ -30,6 +30,7 @@ [super viewDidLoad]; NSLog(@"viewDidLoad"); self.tableView.rowHeight = 100; + self.view.backgroundColor = [UIColor viewFlipsideBackgroundColor]; //UIBarButtonItem *doneItem = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self action:@selector(returnToParserChoices)] autorelease]; //self.navigationItem.rightBarButtonItem = doneItem; @@ -323,7 +324,7 @@ // [self.navigationController pushViewController:picDumpViewController animated:YES]; // photoViewController = [[[PhotoViewController alloc] init] autorelease]; - photoViewController.topic = [topics objectAtIndex:indexPath.row]; + photoViewController.topic = [[tableDictionary objectForIndex:indexPath.section] objectAtIndex:indexPath.row]; [self.navigationController pushViewController:photoViewController animated:YES]; } -- cgit v1.2.3