Просмотр исходного кода

1.修改Apex Mobile Indicator颜色。
2.修改Apex Mobile Result,增加加载指示器。

Pen Li 8 лет назад
Родитель
Сommit
1cfb23d742

+ 6 - 0
Apex Mobile/Apex Mobile/AMResultViewController.m

@@ -161,6 +161,8 @@
     
     if (self.params) {
 
+        self.loadingIndicator.hidden = NO;
+        
         NSMutableDictionary *dic = self.params.mutableCopy;
         switch (option) {
             case 0:
@@ -197,8 +199,12 @@
             
             NSInteger result = [[contentDic objectForKey:@"result"] integerValue];
             dispatch_async(dispatch_get_main_queue(), ^{
+                
                 if (weakSelf) {
                     __strong typeof(weakSelf) strongSelf = weakSelf;
+                    
+                    strongSelf.loadingIndicator.hidden = YES;
+                    
                     if (result == RESULT_TRUE) {
                         strongSelf.content_layout = [contentDic objectForKey:@"layout"];
                         strongSelf.content_action = [contentDic objectForKey:@"row_action"];

+ 1 - 0
Apex Mobile/Apex Mobile/Apex Mobile-Prefix.pch

@@ -17,3 +17,4 @@
 
 #define APREDCOLOR [UIColor colorWithRed:168 / 255.0 green:9 / 255.0 blue:26 / 255.0 alpha:1.0]
 #define APGRAYCOLOR [UIColor colorWithRed:53 / 255.0 green:53 / 255.0 blue:55 / 255.0 alpha:1.0]
+#define APGRAYCOLOR_HALF_ALPHA [UIColor colorWithRed:53 / 255.0 green:53 / 255.0 blue:55 / 255.0 alpha:0.1]

+ 2 - 1
Apex Mobile/Apex Mobile/AppDelegate.m

@@ -241,6 +241,7 @@ void UncaughtExceptionHandler(NSException *exception) {
     [[UIBarButtonItem appearance] setTintColor:APGRAYCOLOR];
     
     // Activity
-    [[UIActivityIndicatorView appearance] setColor:APGRAYCOLOR];
+    [[UIActivityIndicatorView appearance] setColor:APREDCOLOR];
+    [[UIActivityIndicatorView appearance] setBackgroundColor:APGRAYCOLOR_HALF_ALPHA];
 }
 @end

+ 1 - 0
Apex Mobile/Apex Mobile/HistoryViewController.m

@@ -43,6 +43,7 @@
 
     
     // Do any additional setup after loading the view.
+    self.tableview.tableFooterView = [UIView new];
 }
 -(void)viewWillAppear:(BOOL)animated
 {

+ 1 - 0
Apex Mobile/Apex Mobile/LocalDocumentsViewController.m

@@ -104,6 +104,7 @@
     [super viewWillAppear:animated];
     
     self.selectedDocumentPath = nil;
+    self.tableview.tableFooterView = [UIView new];
 }
 
 - (void)didReceiveMemoryWarning

+ 2 - 0
Apex Mobile/Apex Mobile/LoginViewController.m

@@ -144,6 +144,8 @@
     [self.checkSavePassword addTarget:self action:@selector(checkboxClick:) forControlEvents:UIControlEventTouchUpInside];
     //    [self.view addSubview:checkSavePassword];
     // Do any additional setup after loading the view, typically from a nib.
+    
+    self.mum.backgroundColor = [UIColor clearColor];
 }
 
 - (void)viewWillAppear:(BOOL)animated {

+ 3 - 0
Apex Mobile/Apex Mobile/Main.storyboard

@@ -1128,6 +1128,9 @@
                         </subviews>
                         <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                     </view>
+                    <connections>
+                        <outlet property="tableview" destination="Dw1-MH-d07" id="u9q-Ri-KbE"/>
+                    </connections>
                 </viewController>
                 <placeholder placeholderIdentifier="IBFirstResponder" id="IM9-VY-Wf0" userLabel="First Responder" sceneMemberID="firstResponder"/>
             </objects>

+ 1 - 1
Apex Mobile/Apex Mobile/NewsViewController.m

@@ -169,7 +169,7 @@
     footer.refreshDelegate = self;
     self.tableview.jl_footer = footer;
     
-    
+    self.tableview.tableFooterView = [UIView new];
     [self loadpage];
 }
 - (void)loadmore

+ 1 - 1
Apex Mobile/Apex Mobile/config.h

@@ -12,7 +12,7 @@
 
 # ifdef DEBUG
 
-//#define test_server
+#define test_server
 
 # endif
 

+ 3 - 5
Apex Mobile/FavoritesViewController.m

@@ -39,13 +39,11 @@
 - (void)viewDidLoad
 {
     [super viewDidLoad];
-    
 
-            
-            self.data =[[FavoritesData alloc]init];
-            [self.tableview reloadData];
+    self.data =[[FavoritesData alloc]init];
+    [self.tableview reloadData];
 
-    
+    self.tableview.tableFooterView = [UIView new];
 }
 -(void)viewWillAppear:(BOOL)animated
 {