Skip to content

Commit

Permalink
First commit to new iPhone-only repo
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekbhagwat committed Feb 2, 2012
0 parents commit b32e5a8
Show file tree
Hide file tree
Showing 53 changed files with 5,916 additions and 0 deletions.
402 changes: 402 additions & 0 deletions CardsAgainstHumanity.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E299158914D4E63100C5B7F3"
BuildableName = "CardsAgainstHumanity.app"
BlueprintName = "CardsAgainstHumanity"
ReferencedContainer = "container:CardsAgainstHumanity.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<Testables>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E299158914D4E63100C5B7F3"
BuildableName = "CardsAgainstHumanity.app"
BlueprintName = "CardsAgainstHumanity"
ReferencedContainer = "container:CardsAgainstHumanity.xcodeproj">
</BuildableReference>
</MacroExpansion>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<BuildableProductRunnable>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E299158914D4E63100C5B7F3"
BuildableName = "CardsAgainstHumanity.app"
BlueprintName = "CardsAgainstHumanity"
ReferencedContainer = "container:CardsAgainstHumanity.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<BuildableProductRunnable>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E299158914D4E63100C5B7F3"
BuildableName = "CardsAgainstHumanity.app"
BlueprintName = "CardsAgainstHumanity"
ReferencedContainer = "container:CardsAgainstHumanity.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>CardsAgainstHumanity.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>E299158914D4E63100C5B7F3</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>
20 changes: 20 additions & 0 deletions CardsAgainstHumanity/AppDelegate.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//
// AppDelegate.h
// CardsAgainstHumanity
//
// Created by Vivek Bhagwat on 1/28/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@class RoomViewController;

@interface AppDelegate : UIResponder <UIApplicationDelegate>
{
UINavigationController *navigationController;
}
@property (strong, nonatomic) UINavigationController *navigationController;
@property (strong, nonatomic) UIWindow *window;

@end
86 changes: 86 additions & 0 deletions CardsAgainstHumanity/AppDelegate.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
//
// AppDelegate.m
// CardsAgainstHumanity
//
// Created by Vivek Bhagwat on 1/28/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "AppDelegate.h"
#import "RoomViewController.h"
#import "LoginViewController.h"

@implementation AppDelegate

@synthesize navigationController;// = _navigationController;
@synthesize window = _window;

- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.
// UIViewController *rootController = [[RoomViewController alloc] initWithNibName:@"RoomViewController" bundle:nil];
UIViewController *rootController = [[LoginViewController alloc] initWithNibName:@"LoginViewController" bundle:nil];

navigationController = [[UINavigationController alloc]
initWithRootViewController:rootController];

self.window = [[UIWindow alloc]
initWithFrame:[[UIScreen mainScreen] bounds]];
[self.window addSubview:navigationController.view];
[self.window makeKeyAndVisible];
return YES;

/*
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];
return YES;
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
[self.window makeKeyAndVisible];
return YES;
*/
}

- (void)applicationWillResignActive:(UIApplication *)application
{
/*
Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
*/
}

- (void)applicationDidEnterBackground:(UIApplication *)application
{
/*
Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
*/
}

- (void)applicationWillEnterForeground:(UIApplication *)application
{
/*
Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
*/
}

- (void)applicationDidBecomeActive:(UIApplication *)application
{
/*
Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
*/
}

- (void)applicationWillTerminate:(UIApplication *)application
{
/*
Called when the application is about to terminate.
Save data if appropriate.
See also applicationDidEnterBackground:.
*/
}

@end
18 changes: 18 additions & 0 deletions CardsAgainstHumanity/BlackCardsViewController.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// BlackCardsViewController.h
// CardsAgainstHumanity
//
// Created by Vivek Bhagwat on 1/29/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface BlackCardsViewController : UIViewController
{
NSString *blackCard;
NSArray *whiteCards;
}
@property (strong, nonatomic) NSArray *whiteCards;
@property (strong, nonatomic) NSString *blackCard;
@end
65 changes: 65 additions & 0 deletions CardsAgainstHumanity/BlackCardsViewController.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
//
// BlackCardsViewController.m
// CardsAgainstHumanity
//
// Created by Vivek Bhagwat on 1/29/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "BlackCardsViewController.h"

@implementation BlackCardsViewController
@synthesize blackCard;
@synthesize whiteCards;


- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
self.title = NSLocalizedString(@"Black", @"Black");
// Custom initialization
}
return self;
}

- (void)didReceiveMemoryWarning
{
// Releases the view if it doesn't have a superview.
[super didReceiveMemoryWarning];

// Release any cached data, images, etc that aren't in use.
}

#pragma mark - View lifecycle

- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
}

- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];

//get card Data
whiteCards = [[NSArray alloc] initWithObjects:@"Masturbation", @"Golden Showers", nil];
blackCard = @"My favorite thing in the morning is a ___";

// [self. reloadData];
}

- (void)viewDidUnload
{
[super viewDidUnload];
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

@end
Loading

0 comments on commit b32e5a8

Please sign in to comment.