私は根本的に間違ったことをしていますが、ネット上でより良い例を探していて、不足しています:-(
in .h @interface MyDataViewController:UIViewController {
NSArray *array;
}
@property (nonatomic, retain) NSArray *array;
メートル単位
@synthesize array;
成功したdbretrieval:
while (sqlite3_step(statement) == SQLITE_ROW) {
//I guess this one is wrong but I cant figure it out.. (tired?)
array = [NSString stringWithUTF8String:(char *)sqlite3_column_text(statement, 0)];
//testoutput to textfield:
//myName.text = [NSString stringWithUTF8String:(char *)sqlite3_column_text(statement, 0)];
//testoutput to nslog:
NSLog(@"Data: %@",[NSString stringWithUTF8String:(char *)sqlite3_column_text(statement, 0)]);
}
sqlitequerynから最後を出力します。
NSLog(@"%@", array);