여러 메서드와 관련된 다른 질문을 읽었지 만 여전히 코드 수정 방법을 모릅니다. 나는이 도움에 감사 할 것입니다. 오류가 발생한 부분에 *을 붙였습니다. 여러분의 도움을 부탁드립니다 'location'이라는 여러 메서드가 결과, 매개 변수 유형 또는 특성이 일치하지 않음을 발견했습니다.
NSDateFormatter *df = [[NSDateFormatter alloc] init];
[df setDateFormat: @"dd-MM-yy HH:mm"];
NSString *startDateString = [df stringFromDate:[[self.eventsList
objectAtIndex:indexPath.row] startDate]];
cell.startDateLabel.text = startDateString;
NSString *endDateString = [df stringFromDate:[[self.eventsList
objectAtIndex:indexPath.row] endDate]];
cell.endDateLabel.text = endDateString;
return cell;
}
cell.locationLabel.text = [[self.eventsList objectAtIndex:indexPath.row] location];
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:
(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"eventCell";
EQCalendarCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil)
{
cell = [[EQCalendarCell alloc] initWithStyle:UITableViewCellStyleDefault
reuseIdentifier:CellIdentifier];
}
cell.titleLabel.text = [[self.eventsList objectAtIndex:indexPath.row] title];
.
감사합니다. 매우 고마워요. – user3331154