Skip to content

Commit

Permalink
improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhvh committed Jul 7, 2015
1 parent 8a10539 commit f99ea52
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions ios/PhyWeb/UI/PWChartViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -326,17 +326,22 @@ - (UITableViewCell *)tableView:(UITableView *)tableView
}
[[cell textLabel]
setText:[NSString stringWithFormat:@"%@", [_urls objectAtIndex:row]]];
if (_showRSSI) {
[[cell rssiLabel]
setText:[NSString stringWithFormat:
@"%5.2g",
_rssiValues[row + 2][_selectedHorizontalIndex]]];
if (_selectedHorizontalIndex != -1) {
if (_showRSSI) {
[[cell rssiLabel]
setText:[NSString
stringWithFormat:@"%5.2g",
_rssiValues[row + 2]
[_selectedHorizontalIndex]]];
} else {
[[cell rssiLabel]
setText:[NSString
stringWithFormat:
@"%5.2g",
_distanceValues[row + 2][_selectedHorizontalIndex]]];
}
} else {
[[cell rssiLabel]
setText:[NSString
stringWithFormat:@"%5.2g",
_distanceValues
[row + 2][_selectedHorizontalIndex]]];
[[cell rssiLabel] setText:@""];
}
[[cell textLabel] setTextColor:colors[(row + 2) % [colors count]]];

Expand Down

0 comments on commit f99ea52

Please sign in to comment.