forked from mirrors/linphone-iphone
HistoryDetails: add icons in tableview
This commit is contained in:
parent
c196322564
commit
3bd7d3e57f
1 changed files with 18 additions and 0 deletions
|
|
@ -35,6 +35,24 @@
|
|||
return [callLogs count];
|
||||
}
|
||||
|
||||
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
|
||||
UIView *tempView = [[UIView alloc] initWithFrame:tableView.frame];
|
||||
tempView.backgroundColor = [UIColor whiteColor];
|
||||
|
||||
CGRect frame = tempView.frame;
|
||||
frame.origin.y = 0;
|
||||
frame.size.height = 44;
|
||||
UILabel *tempLabel = [[UILabel alloc] initWithFrame:frame];
|
||||
tempLabel.backgroundColor = [UIColor clearColor];
|
||||
tempLabel.textColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"color_E.png"]];
|
||||
tempLabel.text = NSLocalizedString(@"Calls", nil);
|
||||
tempLabel.textAlignment = NSTextAlignmentCenter;
|
||||
tempLabel.font = [UIFont boldSystemFontOfSize:17];
|
||||
[tempView addSubview:tempLabel];
|
||||
|
||||
return tempView;
|
||||
}
|
||||
|
||||
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
|
||||
static NSString *kCellId = @"UITableViewCell";
|
||||
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:kCellId];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue