I’m running through a tutorial on how to load data from a SQlite database. The table populates fine but when I go to a detailed view and try load additional data the app crashes. The console shows the following error.
-[NSPlaceholderString initWithDouble:]: unrecognized selector sent to instance
Here is my code.
if (SQLITE_DONE != sqlite3_step(detailStmt)) {
NSString *address = [[NSString alloc]initWithDouble:sqlite3_column_double(detailStmt, 0)];
self.ClubAddress = address;
[address release];
I know the problem is with “initWithDouble:sqlite2_column_double” but I’m unsure how to fix it. would much appreciate some help.
Cheers.
Please try this…
if (SQLITE_DONE != sqlite3_step(detailStmt)) {
double add = sqlite3_column_double(detailStmt, 0)];
NSString *address = [NSString strinWithFormat:@”%f”,add];
self.ClubAddress = address;
[address release];
}