|
@@ -81,14 +81,13 @@
|
|
|
|
|
|
[g_server getAllQuestions:salt andToView:self];
|
|
|
|
|
|
- self.questionTitle.text = [NSString stringWithFormat:@"%zd",1];
|
|
|
+ self.questionTitle.text = [NSString stringWithFormat:@"%d",1];
|
|
|
|
|
|
}
|
|
|
#pragma mark --- 提交
|
|
|
-(void)postButtonClicked:(UIButton *)sender
|
|
|
{
|
|
|
- //_saveSelectIndexArr;
|
|
|
-
|
|
|
+
|
|
|
if (_dataArr333.count==10) {
|
|
|
|
|
|
[SVProgressHUD setMaximumDismissTimeInterval:2];
|
|
@@ -183,7 +182,6 @@
|
|
|
}
|
|
|
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
|
|
|
{
|
|
|
- NSArray * options = [_currentQuestion objectForKey:@"options"];
|
|
|
|
|
|
if (_firstArr.count==0) {
|
|
|
|
|
@@ -232,12 +230,9 @@
|
|
|
_indexRightRow=idx;
|
|
|
_Id_str=obj.sort;
|
|
|
model=obj;
|
|
|
-
|
|
|
}if ( [obj.right isEqualToString:@"1"] && indexPath.row==idx) {
|
|
|
|
|
|
[_dataArr222 addObject:model];
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
}];
|
|
|
__block QustionJX *modelS=nil;
|
|
@@ -247,37 +242,25 @@
|
|
|
modelS=obj;
|
|
|
}
|
|
|
}];
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
if (_isclick==YES) {
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
_currentSort ++;
|
|
|
-
|
|
|
_isclick=YES;
|
|
|
-
|
|
|
_isCheck=1;
|
|
|
|
|
|
NSDictionary *dict=@{@"option":modelS,@"title":modelS.title,@"selectIndex":[NSString stringWithFormat:@"%zd",indexPath.row] ,@"rightRow":[NSString stringWithFormat:@"%zd",_indexRightRow],@"checkNo":[NSString stringWithFormat:@"%d",_isCheck],@"currentSort":[NSString stringWithFormat:@"%lu",(unsigned long)_currentSort],@"Id_str":[NSString stringWithFormat:@"%zd",indexPath.row+1]};
|
|
|
[_saveSelectIndexArr addObject:dict];
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
if (_saveSelectIndexArr.count==10) {
|
|
|
-
|
|
|
//提交答卷
|
|
|
[_nextButton setImage:[UIImage imageNamed:@"提交答卷"] forState:UIControlStateNormal];
|
|
|
}
|
|
|
-
|
|
|
- //self.questionTitle.text = modelS.title ;
|
|
|
-
|
|
|
[_dataArr333 addObject:dict];
|
|
|
|
|
|
- if (_indexRightRow==indexPath.row) {
|
|
|
-
|
|
|
- }
|
|
|
+
|
|
|
[_questionTable reloadData];
|
|
|
|
|
|
}
|