summaryrefslogtreecommitdiffstats
path: root/Classes/TopicsViewController.m
diff options
context:
space:
mode:
authormatt handler <matt.handler@gmail.com>2011-04-30 09:25:32 -0400
committermatt handler <matt.handler@gmail.com>2011-04-30 09:25:32 -0400
commite993e7ba4e1107a875afeec33292b9d01c52035b (patch)
tree059ff9c8032b1a6a0dc18781e8eb388f9a8ea58f /Classes/TopicsViewController.m
parent869398ebfb18702b9de42f723ff8072b116eb04f (diff)
downloadpiccast-app-master.tar.gz
piccast-app-master.zip
added loading animation, piccast color title, navigation controllers for browse and search, uicolor orange and yellow, custom headers for search view, redid loading screen, fixed backgroundGradient, background white for topic table, etc etc etc gayHEADmaster
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);