Skip to content

Instantly share code, notes, and snippets.

@armadsen
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save armadsen/6842dc4f29fa0904fd1d to your computer and use it in GitHub Desktop.
Save armadsen/6842dc4f29fa0904fd1d to your computer and use it in GitHub Desktop.
Fake People
+ (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