Skip to content

Commit

Permalink
Cleaned up the test harness in the sample view controller
Browse files Browse the repository at this point in the history
  • Loading branch information
veritech authored and zbowling committed Aug 20, 2011
1 parent 2a20fad commit aac9527
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions CSSSample/CSSSampleViewController.m
Expand Up @@ -33,9 +33,14 @@ - (void)didReceiveMemoryWarning
- (void)viewDidLoad
{
[super viewDidLoad];
NSURL *cssURL = [[[NSBundle mainBundle] bundleURL]URLByAppendingPathComponent:@"mainview.css"];
CSSStyleSheet *styleSheet = [CSSStyleSheet styleSheetFromURL:cssURL];
[self.view apply:styleSheet.root];

NSURL *cssURL;

cssURL = [[NSBundle mainBundle] URLForResource:@"maintest"
withExtension:@"css"
];

[[self view] apply:[CSSStyleSheet styleSheetFromURL:cssURL]];

}

Expand Down

0 comments on commit aac9527

Please sign in to comment.