PasteSite.Com

Recent Pastes

Sign Up!

PasteSite is open to the public, but with limited features. Register to be able to modify access rights, track your pastes and more...

Change the theme

If you prefer reading light text on a dark background to dark text on a light background, then you might want to try the dark theme.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
    [self loadSystems];
    if (!navigationController) {
        UIViewController *viewController = nil;
        // RootViewController PlatformViewController
        if ([tableData count] == 1) {
            PlatformViewController *pvc = [[PlatformViewController alloc] initWithStyle:UITableViewStylePlain];
            pvc.systemName = [tableData objectAtIndex:0];
            pvc.systemNames = tableData;
            pvc.keyedPlistNamesForSystemNames = keyedPlistNamesForSystemNames;
            pvc.title = pvc.systemName;
            viewController = pvc;
            
        } else {
            RootViewController *rvc = [[RootViewController alloc] initWithNibName:@"RootViewController" bundle:nil];
            rvc.keyedPlistNamesForSystemNames = keyedPlistNamesForSystemNames;
            NSArray *sortedNames = [tableData sortedArrayUsingSelector:@selector(compare:)];
            if ([sortedNames count]) {
                rvc.tableData = [NSMutableArray arrayWithArray:sortedNames];
                rvc.systemNames = tableData;
                rvc.keyedPlistNamesForSystemNames = keyedPlistNamesForSystemNames;
            }   
            rvc.title = @"Game System";
            viewController = rvc;
        }
    
        navigationController = [[UINavigationController alloc] initWithRootViewController:viewController];
    
    }
    
    [navigationController setDelegate:self];
	[window addSubview:[navigationController view]];
	[window makeKeyAndVisible];
    //[VGCCDatabaseParser test];
}

Reply to This Paste

(leave blank to make this paste permanent)
(if set as private)