Skip to content

Commit

Permalink
fixed status text on root controller
Browse files Browse the repository at this point in the history
  • Loading branch information
nebillo committed Mar 2, 2011
1 parent 74be568 commit 1753222
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/NMRootViewController.m
Expand Up @@ -113,15 +113,15 @@ - (void)updateInterface {

if (status) {
if (_user.lastStatus.expired) {
[self.statusLabel setText:[NSString stringWithFormat:@"You were %@ %@",
[self.statusLabel setText:[NSString stringWithFormat:@"you were %@ %@",
status.status,
[status.expirationDate formatRelativeTime]]];

[self setBarColorWithHue:1 saturation:0];
} else {
int minutes = floor(status.remainingTime / 60.0);
int seconds = fmod(status.remainingTime, 60.0);
[self.statusLabel setText:[NSString stringWithFormat:@"%@ for %d:%@%d minutes", status.status,
[self.statusLabel setText:[NSString stringWithFormat:@"you are %@ for %d:%@%d minutes", status.status,
minutes,
seconds >= 10 ? @"" : @"0", seconds]];

Expand Down

0 comments on commit 1753222

Please sign in to comment.