summaryrefslogtreecommitdiffstats
path: root/Classes/TopicsViewController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Classes/TopicsViewController.m')
-rw-r--r--Classes/TopicsViewController.m18
1 files changed, 18 insertions, 0 deletions
diff --git a/Classes/TopicsViewController.m b/Classes/TopicsViewController.m
index d7ca089..9505272 100644
--- a/Classes/TopicsViewController.m
+++ b/Classes/TopicsViewController.m
@@ -30,10 +30,21 @@
- (void)viewDidLoad {
[super viewDidLoad];
NSLog(@"viewDidLoad");
+
+ [self.navigationController.navigationBar drawLogo];
+
self.tableView.rowHeight = 100;
[self.tableView setSeparatorStyle:UITableViewCellSeparatorStyleSingleLine];
[self.tableView setSeparatorColor:[UIColor colorWithRed:0.9 green:0.9 blue:0.9 alpha:1.0]];
+ UIView *backgroundView = [[UIView alloc] initWithFrame:self.view.frame];
+ backgroundView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"backgroundGradient.png"]];
+
+ self.tableView.backgroundView = backgroundView;
+ self.tableView.backgroundColor = [UIColor clearColor];
+
+ [backgroundView release];
+
objMan = [[HJObjManager alloc] initWithLoadingBufferSize:6 memCacheSize:20];
_today = [[Topic dateToString:[NSDate new]] retain];
@@ -203,6 +214,8 @@
}
[result close];
[db close];
+
+ [self.navigationController.navigationBar animateLoading];
}
#pragma mark -
@@ -218,6 +231,7 @@
}
- (void) connection:(NSURLConnection *)connection finishedWithData:(NSData *)data andPayload:(id)payload {
+ [self.navigationController.navigationBar stopLoadingAnimation];
[self addTopicsFromJson:data forSource:(Source *)payload];
}
@@ -369,6 +383,10 @@
[micon clear];
[mi clear];
}
+
+ UIView *myBackView = [[UIView alloc] initWithFrame:cell.frame];
+ myBackView.backgroundColor = [UIColor whiteColor];
+ cell.backgroundView = myBackView;
Topic *topic = [[tableDictionary objectForIndex:[indexPath section]] objectAtIndex:[indexPath row]];
//cell.useDarkBackground = (indexPath.row % 2 == 0);