|
|
@@ -82,8 +82,10 @@ static const int delta = 25;
|
|
|
// Do any additional setup after loading the view, typically from a nib.
|
|
|
|
|
|
self.automaticallyAdjustsScrollViewInsets = NO;
|
|
|
- [self loadContent];
|
|
|
+ [self setupNavigationBar];
|
|
|
[self setupTableRefreshView];
|
|
|
+ [self loadContent];
|
|
|
+
|
|
|
}
|
|
|
|
|
|
-(void)cellDoubleTapAction:(UIGestureRecognizer*)gestureRecognizer
|
|
|
@@ -389,6 +391,15 @@ static const int delta = 25;
|
|
|
self.tableview.jl_footer.refreshDelegate = self;
|
|
|
}
|
|
|
|
|
|
+- (void)setupNavigationBar {
|
|
|
+ UIBarButtonItem *downloadItem = [[UIBarButtonItem alloc] initWithTitle:@"Download" style:UIBarButtonItemStylePlain target:self action:@selector(downloadItemClick:)];
|
|
|
+ self.navigationItem.rightBarButtonItem = downloadItem;
|
|
|
+}
|
|
|
+
|
|
|
+- (void)downloadItemClick:(UIBarButtonItem *)sender {
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
- (NSInteger)resultItemCount {
|
|
|
return [[self.content_data objectForKey:@"count"] integerValue];
|
|
|
}
|