2014-02-20 4 views
0

메시지가 표시되지 않는 내 inboxViewController에 UITableViewController이라는 메시지가 표시되지만 다음과 같은 이유 때문에 메시지가 표시되지 않습니다. 난 심지어 [[email protected]"Yes"]처럼 하드 코딩하려고했지만 여전히 아무 일도 일어나지 않았습니다. 여기에 내 모든 사용자 data.self.messages 모든 사용자의 메시지가 포함 저장할 곳이다 또한 내가 사용하고 내 CODELcell.textLabel.text가 InboxViewController에 텍스트를 표시하지 않습니다.

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath 
{ 
    static NSString *CellIdentifier = @"Cell"; 
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath]; 

    // Configure the cell... 
    PFObject *message=[self.messages objectAtIndex:indexPath.row]; 
    cell.textLabel.text=[message objectForKey:@"senderName"]; 
    NSLog(@"senderName: %@", [message objectForKey:@"senderName"]); 
    return cell; 
} 

parse.com입니다. 그것의 PFObject는 senderName이라는 키를 가지고 있는데, 여기에는 보낸 사람의 이름이 들어 있습니다. 그래서 내 inboxViewController에 보낸 사람의 이름을 표시하려고합니다.

+0

'cell.textLabel.textColor'가'cell.contentView.backgroundColor'와 같은 색상으로 설정되지 않았 음을 확인 했습니까? – zeantsoi

+0

흠, 어떻게 확인합니까 – user3137376

+0

방금 ​​cell.textlabel.textColor = [uicolor redcolor]를 추가했습니다; 여전히 텍스트가 표시되지 않았습니다. – user3137376

답변

0

오류가 발생하면 viewWillAppear 메서드에서 데이터를 다시로드하는 것을 잊어 버렸습니다.

관련 문제