API Error ios5

Post here all your questions related with the SmartFoxServer iPhone API

Moderators: Lapo, Bax

Posts: 2
Joined: 18 Nov 2011, 12:15

API Error ios5

Postby Julian » 21 Nov 2011, 13:09

I've noticed that there is an data submit error on ios5.

In the Class INFSmartFoxObjectSerializer you check for

"NSCFNumber" ,

to built the String.
But in the new iOS, the Classes have the Name:


I am looking forward to see an update.

Code: Select all

   if ([[varValue className] isEqualToString:@"NSCFBoolean"]) {
      t = @"b";
      o = [varValue stringValue];
   else if ([[varValue className] isEqualToString:@"NSCFNumber"]) {
      t = @"n";
      o = [varValue stringValue];
   else if ([varValue isKindOfClass:[NSString class]] || [[srcObj className] isEqualToString:@"NSCFString"]) {   
      t = @"s";       o = [INFSmartFoxEntities encodeEntities:varValue];
   else if ([varValue isKindOfClass:[NSNull class]]) {
      t = @"x";
      o = @"";
User avatar
Site Admin
Posts: 4355
Joined: 29 Mar 2005, 09:50
Location: Italy

Postby Bax » 22 Nov 2011, 09:46

Thank you for reporting.
Paolo Bax
The SmartFoxServer Team

Return to “iPhone Objective-C API”

Who is online

Users browsing this forum: No registered users and 1 guest