Hi,
I can't find any example for this API version. Why Smartfox don't make demo for it? Please let me know where I can find the example link?
Moderators: Bax, Lapo, A51Integrated

#import <UIKit/UIKit.h>
#import <SFS2XAPI/SmartFox2XClient.h>
@interface ViewController : UIViewController <ISFSEvents>
{
SmartFox2XClient *smartFox;
}-(void)viewDidLoad
{
[super viewDidLoad];
smartFox = [[SmartFox2XClient alloc] initSmartFoxWithDebugMode:YES delegate:self];
[smartFox loadConfig:@"config.xml" connectOnSuccess:YES];
}
-(void)onConnection:(SFSEvent *)evt
{
[smartFox send:[LoginRequest requestWithUserName:@"" password:@"" zoneName:nil params:nil]];
}
SmartFox2XClient *smartFox = ((AppDelegate *)[[UIApplication sharedApplication] delegate]).smartFox;
Return to SFS2X iPhone / iPad / OSX API
Users browsing this forum: No registered users and 1 guest