This file contains hidden or 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
| - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
| { | |
| // ... | |
| [Socialize setEntityLoaderBlock:^(UINavigationController *navigationController, id<SocializeEntity>entity) { | |
| NSLog(@"Add your application entity load object"); | |
| }]; | |
| } |
This file contains hidden or 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
| - (void)application:(UIApplication*)application didFailToRegisterForRemoteNotificationsWithError:(NSError*)error | |
| { | |
| NSLog(@"Error Register Notifications: %@", [error localizedDescription]); | |
| } |
This file contains hidden or 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
| //import the socialize header | |
| #import <Socialize/Socialize.h> | |
| @interface YourCustomViewController : UIViewController | |
| @property (nonatomic, retain) SocializeActionBar *actionBar; | |
| @end |
This file contains hidden or 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
| - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo { | |
| if ([Socialize handleNotification:userInfo]) { | |
| return; | |
| } | |
| // Nonsocialize notification handling goes here | |
| } |
This file contains hidden or 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
| #import <Socialize/Socialize.h> | |
| - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url { | |
| return [Socialize handleOpenURL:url]; | |
| } |
This file contains hidden or 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
| #import <Socialize/Socialize.h> | |
| - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
| { | |
| //set the FB App Id, you can find your FB app Id here: https://developers.facebook.com/apps | |
| [Socialize storeFacebookAppId:@"YOUR FB APP ID"]; | |
| //set your app url. You can find your app id from the appstore. Socialize uses this app url to advertise | |
| //your app when sharing to social networks like facebook and twitter | |
| [Socialize storeApplicationLink:@"http://itunes.apple.com/us/app/yourappname/id012345689"]; |
This file contains hidden or 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
| #import <Socialize-iOS/Socialize.h> | |
| - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
| { | |
| //set the FB App Id, you can find your FB app Id here: https://developers.facebook.com/apps | |
| [Socialize storeFacebookAppId:@"YOUR FB APP ID"]; | |
| //your extra code goes here | |
| } |
This file contains hidden or 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
| //import the socialize header | |
| #import <Socialize/Socialize.h> | |
| - (void)viewDidLoad | |
| { | |
| [super viewDidLoad]; | |
| NSString *entityUrl = @"http://www.example.com/object/1234" | |
| SocializeActionBar *bar = [[SocializeActionBar createWithParentController:self andUrl:self.entityUrl]]; | |
| [self.view addSubview:bar.view]; | |
| } |
This file contains hidden or 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
| //import the socialize header | |
| #import <Socialize/Socialize.h> | |
| #pragma mark | |
| - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
| // set the socialize api key and secret, register your app here: http://www.getsocialize.com/apps/ | |
| [Socialize storeSocializeApiKey:@"SOCIALIZE CONSUMER KEY" | |
| andSecret:@"SOCIALIZE CONSUMER SECRET"]; | |
| //your application specific code | |
| } |
This file contains hidden or 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
| [socialize getEntityByKey:@"www.techcrunch.com"]; | |
| #pragma mark SocializeServiceDelegate | |
| //if the entity does not exist | |
| -(void)service:(SocializeService*)service didFail:(NSError*)error{ | |
| } |