Jelajahi Sumber

1.修改RedAnt Mobile Result界面,增加Download。

Pen Li 8 tahun lalu
induk
melakukan
67bb98b342

TEMPAT SAMPAH
RedAnt Mobile/RedAnt Mobile.xcodeproj/project.xcworkspace/xcuserdata/macmini1.xcuserdatad/UserInterfaceState.xcuserstate


+ 12 - 1
RedAnt Mobile/RedAnt Mobile/ResultViewController.m

@@ -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];
 }