Skip to content

Instantly share code, notes, and snippets.

SPopenko / How to use bar
Created Sep 25, 2012
Package up Action Bar Implementation
View How to use bar
#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];
SPopenko / Check like button state
Created Sep 25, 2012
Instructions for devs to create their own ActionBar Implemntation
View Check like button state
[SZLikeUtils isLiked:entity
success:^(BOOL isLiked){
[self setEntityLiked: isLiked]; //update button icon & internal state
failure:^(NSError *error){
NSLog(@"Failed detect like: %@", [error localizedDescription]);
[self setEntityLiked: NO]; //update button icon & internal state
SPopenko / gist:3293745
Created Aug 8, 2012
Add company button
View gist:3293745
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];
SPopenko / gist:3293696
Created Aug 8, 2012
SSZ path control integration
View gist:3293696 = [[[SZPathBar alloc] initWithButtonsMask: SZProfileButtonMask|SZCommentsButtonMask|SZShareButtonMask|SZLikeButtonMask
parentController: self
entity: [SZEntity entityWithKey:@"" name:@"Google"]] autorelease]; = -M_PI_2; = 110 * M_PI / 180; =;
SPopenko / CommentUI.m
Created Sep 20, 2011 — forked from FawadHa1der/CommentUI.m
SocializeSDK iOS Code Snippets part 2
View CommentUI.m
//create a URL for your entity. This must be a unique URL but can return a 404
NSString *entityUrlString = @"";
// Allocate memory for the instance
SocializeCommentsTableViewController* commentsController = [[[SocializeCommentsTableViewController alloc] initWithNibName:@"SocializeCommentsTableViewController" bundle:nil entryUrlString:entityUrlString] autorelease];
[self.navigationController pushViewController:commentsController animated:YES];
SPopenko / Authentication.m
Created Sep 20, 2011 — forked from FawadHa1der/Authentication.m
SocializeSDK iOS Code Snippets
View Authentication.m
#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 {