summaryrefslogtreecommitdiffstats
path: root/Classes/TopicsViewController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Classes/TopicsViewController.m')
-rw-r--r--Classes/TopicsViewController.m23
1 files changed, 13 insertions, 10 deletions
diff --git a/Classes/TopicsViewController.m b/Classes/TopicsViewController.m
index 9969962..aa9ab85 100644
--- a/Classes/TopicsViewController.m
+++ b/Classes/TopicsViewController.m
@@ -20,19 +20,22 @@
@implementation UINavigationBar (CustomImage)
- (void)drawRect:(CGRect)rect {
-// NSLog(@"titlebar");
-// if (self.barStyle == UIBarStyleDefault) {
+ //NSLog(@"titlebar: %@", self.barStyle);
+ if (self.barStyle == UIBarStyleDefault) {
UIImage *image = [UIImage imageNamed: @"titleBarBackground.png"];
[image drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
-// }
-// else
+ }
+ else {
+ UIImage *image = [UIImage imageNamed: @"titleBarBackgroundBlack.png"];
+ [image drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
+ }
//[super drawRect:rect];
}
@end
@implementation TopicsViewController
-@synthesize topics, parser;
+@synthesize topics, parser, tableView;
- (void)viewDidLoad {
[super viewDidLoad];
@@ -81,6 +84,11 @@
// return picDumpViewController;
//}
+- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
+ // Return the number of rows in the section.
+ return [topics count];
+}
+
- (void) sourcesEditViewControllerDidFinish:(SourcesEditViewController *)controller {
[self dismissModalViewControllerAnimated:YES];
@@ -136,11 +144,6 @@
[parser start];
}
-
-- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
- return [topics count];
-}
-
//- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
//{
// return 100;