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

« back to all changes in this revision

Viewing changes to Files/U1SettingsViewController.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:
52
52
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
53
53
    if (self) {
54
54
                self.title = NSLocalizedString(@"Settings", @"");
55
 
                UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100, 20)];
56
 
                // TODO: Ubuntu font
57
 
                [titleLabel setFont:[UIFont boldSystemFontOfSize:18.f]];
58
 
                [titleLabel setTextColor:[UIColor blackColor]];
59
 
                [titleLabel setShadowColor:[UIColor whiteColor]];
60
 
                [titleLabel setShadowOffset:CGSizeMake(-1, -1)];
61
 
                [titleLabel setText:self.title];
62
 
                [titleLabel sizeToFit];
63
 
                [titleLabel setOpaque:NO];
64
 
                [titleLabel setBackgroundColor:[UIColor clearColor]];
65
 
                [self.navigationItem setTitleView:titleLabel];
66
 
                [titleLabel release];
67
55
                self.filesClient = [U1FilesClient sharedFilesClient];
68
56
    }
69
57
    return self;