Last active
August 29, 2015 14:15
-
-
Save armadsen/6842dc4f29fa0904fd1d to your computer and use it in GitHub Desktop.
Fake People
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ (NSArray *)allTheFakePeople { | |
return @[ | |
@{imageNameKey: @"1", | |
nameKey: @"Some Dude", | |
phoneNumberKey: @"888-888-8888", | |
jobKey: @"Garbage Collection"}, | |
@{imageNameKey: @"2", | |
nameKey: @"Chris Sacca", | |
phoneNumberKey: @"920-558-1033", | |
jobKey: @"Venture Capitalist"}, | |
@{imageNameKey: @"3", | |
nameKey: @"The Real Programmer", | |
phoneNumberKey: @"444-444-4444", | |
jobKey: @"iOS Development"}, | |
@{imageNameKey: @"4", | |
nameKey: @"Your Mom", | |
phoneNumberKey: @"556-243-1089", | |
jobKey: @"Web Development"}, | |
]; | |
} | |
// In App Delegate: | |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
// Override point for customization after application launch. | |
// NOTE: FOR DEBUGGIN ONLY | |
if ([PersonController sharedInstance].personList.count == 0) { | |
for (NSDictionary *personDictionary in [Person allTheFakePeople]) { | |
[[PersonController sharedInstance] addPerson:[[Person alloc] initWithDictionary:personDictionary]]; | |
} | |
} | |
return YES; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment