1
난 내가 생각하는 경우 NSMutableDictionary* resultTables=[result objectForKey:@"apiResponse"];
독서 정수 값은
int countVals=[[result objectForKey:tablename] intValue] ;
로 값을 얻기 위해 사용
apiResponse =
{ Appointment = 4;
Goals = 0;
Holiday = 0;
LessonPlan = 0;
ServiceLevel = 0;
SiteSetup = 0;
Student = 2;
TherapyLog = 0;
Worksite = 0;
};
같은 JSON 응답을 수신하고 확인
if (countVals>=0)
{
NSLog(@"Tables Names:%@",tablename);
[updatedTables addObject:tablename];
}else
{
NSLog(@"Tables Names:%@",tablename);
NSLog(@"no data to update");
}
테이블 이름이 updateTables ARRAY에 추가되지 않습니다. 무엇 내 잘못 ... 당신은 테이블 이름을 얻기 위해 resultTables
를 사용해야합니다
updatedTables를 초기화 했습니까? – rdelmar
해결책을 얻었습니다. 잘못된 사전을 사용했습니다 – sudheer
여기에 테이블 이름이 무엇입니까? –