목표 -C에 익숙하지 않아서 다소 어려움을 겪었습니다. 내 앱의 다른 부분에서 사용하고 완벽하게 작동하지만 내 앱의 다른보기에서 사용하면 충돌이 발생합니다. 응용 프로그램, 그리고 임 꽤 확신 내가 같은 방식으로 설정했습니다. 새로 고침하려면 충돌 응용 프로그램
나는 엉망이 코드는 TEH 외형이NSArray *timesArray = [self.tableDataArray objectAtIndex:2];
NSDictionary *dictionary = [timesArray objectAtIndex:indexPath.row];
cell.timeLabel.text = [dictionary objectForKey:@"time"];
cell.destinationLabel.text = [dictionary objectForKey:@"destination"];
있는 NSArray * timesArray가에 정지 무엇 인 코드에 중단 점을 넣어 엑스 코드를 얻었으나, 다른 오류 또는 아무것도가 주어지지 그래서 나는 무엇을 바꾸어야하는지 다소 곤란하다.
편집 번호 1 : 명확한 설명을 위해 삭제 된 이전 편집. 내가 다시 천천히 확인하고, 무슨 일 것이는 데이터의 3 개 완전 파싱을 수행하고, 내가 가진 모든 물건을 출력하므로
EDIT 번호 2
확인.
2012-06-21 13:37:09.148 NextBus[5990:1a603] Array: (
{
routeName = "Oxford West";
routeNumber = 17;
stopDirection = Westbound;
stopName = "Griffith At Commissioners Sb";
stopNumber = 811;
},
"Next 3 Vehicles Arrive At:",
(
{
destination = "To Byron Baseline/Griffith";
time = "1:58 P.M.";
},
{
destination = "To Byron Baseline/Griffith";
time = "2:15 P.M.";
},
{
destination = "To Byron Baseline/Griffith";
time = "2:35 P.M.";
}
),
"Prediction Last Updated 1:37:06 Pm 6/21/2012"
)
2012-06-21 13:37:09.148 NextBus[5990:1a603] Array: (
{
routeName = "Oxford West";
routeNumber = 17;
stopDirection = Westbound;
stopName = "Griffith At Commissioners Sb";
stopNumber = 811;
},
"Next 3 Vehicles Arrive At:",
(
{
destination = "To Byron Baseline/Griffith";
time = "1:58 P.M.";
},
{
destination = "To Byron Baseline/Griffith";
time = "2:15 P.M.";
},
{
destination = "To Byron Baseline/Griffith";
time = "2:35 P.M.";
}
),
"Prediction Last Updated 1:37:06 Pm 6/21/2012"
)
2012-06-21 13:37:09.149 NextBus[5990:1a603] Array: (
{
routeName = "Oxford West";
routeNumber = 17;
stopDirection = Westbound;
stopName = "Griffith At Commissioners Sb";
stopNumber = 811;
},
"Next 3 Vehicles Arrive At:",
(
{
destination = "To Byron Baseline/Griffith";
time = "1:58 P.M.";
},
{
destination = "To Byron Baseline/Griffith";
time = "2:15 P.M.";
},
{
destination = "To Byron Baseline/Griffith";
time = "2:35 P.M.";
}
),
"Prediction Last Updated 1:37:06 Pm 6/21/2012"
)
는 내가 그것을 어떤 이유로, 구문 분석을 중지, 그것은
2012-06-21 13:37:45.590 NextBus[5990:1a603] Array: (
{
routeName = "Oxford West";
routeNumber = 17;
stopDirection = Westbound;
stopName = "Griffith At Commissioners Sb";
stopNumber = 811;
}
)
를 수행하고 충돌 새로 고침 당기고합니다.
EGO 끌어 오기 새로 고침 키트입니다.
잘못된 행 앞에 NSLog (@ "Array : % @", self.tableDataArray);를 입력하십시오. 무엇이 표시됩니까? –
분명히 알겠지만 뭔가가 호출 사이에'self.tableDataArray'의 내용을 변경해야합니다. (게시 된 코드는'cellForRowAtIndexPath :'에서 나온 것입니다.) –