Я делаю что-то фундаментальное неправильно, но я ищу лучшие примеры в сети и скоро выйдет: - (
в .ч
@interface MyDataViewController: UIViewController {
NSArray *array;
}
@property (nonatomic, retain) NSArray *array;
в м
@synthesize array;
Успешное восстановление:
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);