Skip to content

Instantly share code, notes, and snippets.

@nwg
Created December 28, 2011 18:19
Show Gist options
  • Select an option

  • Save nwg/1528996 to your computer and use it in GitHub Desktop.

Select an option

Save nwg/1528996 to your computer and use it in GitHub Desktop.
//import the socialize header
#import <Socialize/Socialize.h>
@interface Controller : UIViewController <SocializeActionBarDelegate>
@property (nonatomic, retain) SocializeActionBar *actionBar;
@end
- (void)viewDidLoad
{
[super viewDidLoad];
self.actionBar = [SocializeActionBar actionBarWithKey:@"http://www.example.com/object/1234" presentModalInController:self];
self.actionBar.delegate = self
[self.view addSubview:self.actionBar.view];
}
- (void)actionBar:(SocializeActionBar*)actionBar wantsDisplayActionSheet:(UIActionSheet*)actionSheet {
[actionSheet showFromRect:CGRectMake(50, 50, 50, 50) inView:self.view animated:YES];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment