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