
Untitled
By: a guest on
May 18th, 2012 | syntax:
None | size: 0.63 KB | hits: 17 | expires: Never
#import <Socialize-iOS/Socialize.h>
// Allocate memory for the instance
Socialize* socialize = [[Socialize alloc] initWithDelegate:self];
// invoke the call (the latitude and the longitude can be nil)
[socialize viewEntity:entity longitude:nil latitude:nil];
// creating a view would invoke this callback and it would have an element of type id<SocializeView>
-(void)service:(SocializeService*)service didCreate:(id<SocializeObject>)object{
if ([object conformsToProtocol:@protocol(SocializeView)]){
// do your magic/logic here
}
}
//in case of error
-(void)service:(SocializeService*)service didFail:(NSError*)error{
}