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
#import <Socialize-iOS/Socialize.h> | |
// invoke the call | |
[socialize authenticateWithApiKey:@"YourApiKey" apiSecret:@"YourApiSecret"]; | |
#pragma mark SocializeServiceDelegate implementation | |
// implement the delegate | |
-(void)didAuthenticate:(id<SocializeUser>)user { | |
NSLog(@"Authenticated"); | |
} |
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
//create a URL for your entity. This must be a unique URL but can return a 404 | |
NSString *entityUrlString = @"http://www.example.com/object/1234"; | |
// Allocate memory for the instance | |
SocializeCommentsTableViewController* commentsController = [[[SocializeCommentsTableViewController alloc] initWithNibName:@"SocializeCommentsTableViewController" bundle:nil entryUrlString:entityUrlString] autorelease]; | |
[self.navigationController pushViewController:commentsController animated:YES]; |
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
self.bar = [[[SZPathBar alloc] initWithButtonsMask: SZProfileButtonMask|SZCommentsButtonMask|SZShareButtonMask|SZLikeButtonMask | |
parentController: self | |
entity: [SZEntity entityWithKey:@"http://www.google.com" name:@"Google"]] autorelease]; | |
bar.menu.rotateAngle = -M_PI_2; | |
bar.menu.menuWholeAngle = 110 * M_PI / 180; | |
bar.menu.startPoint = self.view.center; | |
[self.view addSubview:bar.menu]; |
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
AwesomeMenuItem *amButton = [[[AwesomeMenuItem alloc] initWithImage:[UIImage imageNamed:@"bg-menuitem.png"] | |
highlightedImage:[UIImage imageNamed:@"bg-menuitem-highlighted.png"] | |
ContentImage:[UIImage imageNamed:@"AM.png"] | |
highlightedContentImage:nil] autorelease]; | |
[bar addButton:amButton handler:^(){ | |
UIAlertView* alert = [[UIAlertView alloc] initWithTitle:@"About page" message:@"This is about page" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil]; | |
[alert show]; | |
[alert release]; | |
}]; |
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
#import "SZPathBar.h" | |
//Put this on init section | |
if(self.sszBar == nil) | |
{ | |
self.sszBar = [[[SZPathBar alloc] initWithButtonsMask: SZCommentsButtonMask|SZShareButtonMask|SZLikeButtonMask | |
parentController: viewController | |
entity: self.currentEntity]autorelease]; |