0
내 검색을 통해 내 대답을 찾을 수 없었습니다.메모 앱과 같은 표보기 셀
기본적으로보기 컨트롤러와 같은 기본 메모가 있습니다. 첫 번째 줄이 음표의 제목이고 나머지가 본문의 자막 인 경우 음표와 같은 효과를 원합니다.
내가 가진 어떻게 설정 :
NSString *note = nil;
if (tableView == self.tableView) {
note = [noteArray objectAtIndex:indexPath.row];
}
NSString *date = [dateArray objectAtIndex:indexPath.row];
NSInteger charnum = [note length];
if (charnum >= 22) {
cell.textLabel.text = [[note substringToIndex:18] stringByAppendingString:@"..."];
}
else{
cell.textLabel.text = note;
}
[cell.detailTextLabel setText:[NSString stringWithFormat:@"%@ - %@", date, [note substringFromIndex:18]]];
[cell.detailTextLabel setNumberOfLines:1];
을 지금은 18 개 문자를 읽은 다음 ... 그리고 자막이 나머지를 선택합니다.
어떻게 제목/머리글을 설정하고 본체를 설정합니까?