Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 18th, 2012  |  syntax: None  |  size: 0.63 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #import <Socialize-iOS/Socialize.h>
  2.  
  3. // Allocate memory for the instance
  4. Socialize* socialize = [[Socialize alloc] initWithDelegate:self];
  5.  
  6. // invoke the call (the latitude and the longitude can be nil)
  7. [socialize viewEntity:entity longitude:nil latitude:nil];
  8.  
  9. // creating a view would invoke this callback and it would have an element of type id<SocializeView>
  10. -(void)service:(SocializeService*)service didCreate:(id<SocializeObject>)object{
  11.     if ([object conformsToProtocol:@protocol(SocializeView)]){
  12.         // do your magic/logic here
  13.     }
  14. }
  15.  
  16. //in case of error
  17. -(void)service:(SocializeService*)service didFail:(NSError*)error{
  18.  
  19. }