iphone - i cant Load value into array -


    const char *dbpath = [databasepath utf8string]; userarray = [[nsmutablearray alloc]init];  sqlite3_stmt *compiledstatement; if(sqlite3_open(dbpath, &db) == sqlite_ok) {      nsstring *querysql = [nsstring stringwithformat: @"select username,fullname,email user" ];     const char *sqlstatement =[querysql utf8string];     if(sqlite3_prepare_v2(db ,sqlstatement, -1, &compiledstatement, null) == sqlite_ok)     {         while(sqlite3_step(compiledstatement) == sqlite_row )          {             nsstring *ausername = [nsstring stringwithutf8string:(char *)sqlite3_column_text(compiledstatement, 0)];             nsstring *afullname = [nsstring stringwithutf8string:(char *)sqlite3_column_text(compiledstatement, 1)];             nsstring *aemail = [nsstring stringwithutf8string:(char *)sqlite3_column_text(compiledstatement, 2)];               // create new animal object data database             user *obj_user = [[user alloc] initwithusername:ausername fullname:afullname email:aemail];              // add animal object animals array             [userarray addobject:obj_user];              [user release];         }     }      // release compiled statement memory     sqlite3_finalize(compiledstatement); }  sqlite3_close(db); 

}

hey all,

i trying put value array of object throw's error below... guide me why got type of error. 

terminating app due uncaught exception 'nsinvalidargumentexception', reason: '-[uicacheddevicergbcolor userarray]: unrecognized selector sent instance 0x6a396f0'


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -