Skip to content

Commit

Permalink
Hello iPad
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardelben committed Jan 7, 2011
1 parent ead97c2 commit 2efb3c8
Show file tree
Hide file tree
Showing 6 changed files with 849 additions and 19 deletions.
12 changes: 11 additions & 1 deletion Classes/RootViewController.m
Expand Up @@ -178,8 +178,18 @@ - (void)configureTheme
self.navigationController.navigationBar.tintColor = [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:1];
self.navigationController.toolbar.tintColor = [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:1];

self.navigationController.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:[theme objectForKey:@"background"]]];
UIDevice *device = [UIDevice currentDevice];

if ([device userInterfaceIdiom] == UIUserInterfaceIdiomPad) {
if ([self.tableView respondsToSelector:@selector(backgroundView)]) {
self.tableView.backgroundView = nil;
self.tableView.backgroundView = [[[UIView alloc] init] autorelease];
self.tableView.backgroundColor = [UIColor clearColor];
}
}

self.navigationController.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:[theme objectForKey:@"background"]]];

// This should be done only when the theme changed
[self.tableView reloadData];
}
Expand Down
2 changes: 2 additions & 0 deletions Ideas-Info.plist
Expand Up @@ -26,5 +26,7 @@
<true/>
<key>NSMainNibFile</key>
<string>MainWindow</string>
<key>NSMainNibFile~ipad</key>
<string>MainWindow-iPad</string>
</dict>
</plist>
17 changes: 10 additions & 7 deletions Ideas.xcodeproj/oscardelben.mode1v3
Expand Up @@ -231,8 +231,6 @@
<key>Layout</key>
<array>
<dict>
<key>BecomeActive</key>
<true/>
<key>ContentConfiguration</key>
<dict>
<key>PBXBottomSmartGroupGIDs</key>
Expand Down Expand Up @@ -285,7 +283,7 @@
</array>
</array>
<key>PBXSmartGroupTreeModuleOutlineStateVisibleRectKey</key>
<string>{{0, 0}, {242, 664}}</string>
<string>{{0, 6}, {242, 664}}</string>
</dict>
<key>PBXTopSmartGroupGIDs</key>
<array/>
Expand Down Expand Up @@ -315,6 +313,8 @@
<key>Dock</key>
<array>
<dict>
<key>BecomeActive</key>
<true/>
<key>ContentConfiguration</key>
<dict>
<key>PBXProjectModuleGUID</key>
Expand All @@ -332,7 +332,7 @@
<key>_historyCapacity</key>
<integer>0</integer>
<key>bookmark</key>
<string>BF916AAD12D71CC200FE9252</string>
<string>BF916AFD12D7461A00FE9252</string>
<key>history</key>
<array>
<string>BF4F7CCC12D0A5D2007CB6E2</string>
Expand All @@ -354,11 +354,12 @@
<string>BF916AA512D71CC200FE9252</string>
<string>BF916AA612D71CC200FE9252</string>
<string>BF916AA712D71CC200FE9252</string>
<string>BF916AA812D71CC200FE9252</string>
<string>BF916AA912D71CC200FE9252</string>
<string>BF916AAA12D71CC200FE9252</string>
<string>BF916AAB12D71CC200FE9252</string>
<string>BF916AAC12D71CC200FE9252</string>
<string>BF916AC612D7278400FE9252</string>
<string>BF916AC712D7278400FE9252</string>
<string>BF916AE112D72BED00FE9252</string>
<string>BF916AE212D72BED00FE9252</string>
</array>
</dict>
<key>SplitCount</key>
Expand Down Expand Up @@ -896,6 +897,8 @@
<key>Dock</key>
<array>
<dict>
<key>BecomeActive</key>
<true/>
<key>ContentConfiguration</key>
<dict>
<key>PBXProjectModuleGUID</key>
Expand Down

0 comments on commit 2efb3c8

Please sign in to comment.