Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -(void)startup
- {
- // this method is called when the module is first loaded
- // you *must* call the superclass
- [super startup];
- [Socialize storeConsumerKey:@"27b1dca4-e223-4a6c-9042-ce1b8222e600"];
- [Socialize storeConsumerSecret:@"c4921e4d-c0b1-42d2-b3ab-5c427f0e2da2"];
- [SZFacebookUtils setAppId:@"827787213920034"];
- [SZTwitterUtils setConsumerKey:@"HZvyB6i0R4LVL8G2cUKOsHqZh" consumerSecret:@"wJfxlmVcpAKwBsFUIKAECjQ3z4Bdgdakmh9pvq4Ud2Nt86TMKi"];
- // Specify a Socialize entity loader block
- [Socialize setEntityLoaderBlock:^(UINavigationController *navigationController, id<SocializeEntity>entity) {
- SampleEntityLoader *entityLoader = [[SampleEntityLoader alloc] initWithEntity:entity];
- if (navigationController == nil) {
- UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:entityLoader];
- [[[TiApp app] controller] presentViewController:navigationController animated:YES completion:nil];
- } else {
- [navigationController pushViewController:entityLoader animated:YES];
- }
- }];
- NSLog(@"[INFO] %@ loaded",self);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement