Browse Source

1.修改iOS Apex Mobile登陆User参数小写。
2.修改iOS Apex Mobile搜索参数传值不正确。

Pen Li 8 years ago
parent
commit
7b991f063b

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

@@ -53,7 +53,7 @@
     dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
         
         
-        int ret=[RANetwork Authorize:self.editUser.text password:self.editPassword.text];
+        int ret=[RANetwork Authorize:self.editUser.text.lowercaseString password:self.editPassword.text];
         
         dispatch_async(dispatch_get_main_queue(), ^{
             self.mum.hidden=true;

+ 14 - 0
Apex Mobile/Apex Mobile/SearchViewController.m

@@ -437,6 +437,20 @@
         DebugLog(@"table content offset%d",ioffset);
     [self.table setContentOffset:offset animated:YES];
     }
+    
+    UITableViewCell *cell  = (UITableViewCell *)[[textField superview] superview];
+    NSIndexPath *indexPath = [self.table indexPathForCell:cell];
+    if(indexPath==nil)
+    {//for ios7
+        cell  = (UITableViewCell *) textField.superview.superview.superview;
+        indexPath = [self.table indexPathForCell:cell];
+    }
+    NSMutableDictionary * field =[_adapter get_item:[indexPath row]];
+    DebugLog(@"%s  row=%ld  type=%@",__func__,(long)[indexPath row], [field valueForKey:@"type"]);
+    if(![[field valueForKey:@"type"] isEqualToString:@"time"])
+    {
+        self.textFieldtmp = textField;
+    }
 }
 //- (BOOL)textFieldShouldReturn:(UITextField *)sender {
 //    [self.table setContentOffset:CGPointMake(0, 0) animated:YES];