~jose-exposito89/ubuntuone-ios-files/Bug-1050848

« back to all changes in this revision

Viewing changes to Files/U1UploadsPoolViewController.m

  • Committer: Jason Foreman
  • Date: 2011-12-09 20:43:32 UTC
  • mfrom: (37.1.2 orange-navbar)
  • Revision ID: jason.foreman@canonical.com-20111209204332-rere6u5psiu3eu8e
MergeĀ lp:~threeve/ubuntuone-ios-files/orange-navbar

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateFeedback:) name:@"uploadQueued" object:nil];
58
58
        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateFeedback:) name:@"imageUploaded" object:nil];
59
59
 
60
 
        UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100, 20)];
61
 
        // TODO: Ubuntu font
62
 
        [titleLabel setFont:[UIFont boldSystemFontOfSize:18.f]];
63
 
        [titleLabel setTextColor:[UIColor blackColor]];
64
 
        [titleLabel setShadowColor:[UIColor whiteColor]];
65
 
        [titleLabel setShadowOffset:CGSizeMake(-1, -1)];
66
 
        [titleLabel setText:self.title];
67
 
        [titleLabel sizeToFit];
68
 
        [titleLabel setOpaque:NO];
69
 
        [titleLabel setBackgroundColor:[UIColor clearColor]];
70
 
        [self.navigationItem setTitleView:titleLabel];
71
 
        [titleLabel release];
72
 
        // [uploadItem release];
73
 
        
74
60
        return self;
75
61
}
76
62