Permalink
Browse files

Fixing a tab ordering bug.

  • Loading branch information...
1 parent 72671bf commit ca85ed1047d7041cd0207dce64347f699da13fbe @samus samus committed Oct 19, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 ios/Camp Joy Outdoors/CJOAppDelegate.m
@@ -15,12 +15,13 @@ @implementation CJOAppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
- NSDictionary *boardMap = @{@"Identify":@"Identify", @"glossary":@"Glossary"};
+ NSArray *keys = @[@"Identify", @"glossary"];
+ NSDictionary *boardMap = @{@"glossary":@"Glossary", @"Identify":@"Identify"};
NSString *fmt = UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone ? @"%@_iPhone" : @"%@_iPad";
NSMutableArray *controllers = [[NSMutableArray alloc]initWithCapacity:[boardMap count]];
- for (NSString *cname in [boardMap allKeys]) {
+ for (NSString *cname in keys) {
UIStoryboard *board = [UIStoryboard storyboardWithName:[NSString stringWithFormat:fmt, cname] bundle:nil];
UIViewController *controller = [board instantiateInitialViewController];

0 comments on commit ca85ed1

Please sign in to comment.