What am I doing wrong? It’s a very simple statement but couldn’t figure out what causes it to fail
FMDatabase *db = [FMDatabase databaseWithPath:appDelegate.databasePath];
[db open];
isSuccess = [db executeUpdate:@"INSERT INTO notes (title, comment, fk) values (?, ?, ?);", title, comment, fkID];
exception.name=NSInvalidArgumentException, exception.reason=-[__NSCFString comment]: unrecognized selector sent to instance 0x68a93f
Note.h
#import <Foundation/Foundation.h>
@interface Note : NSObject
@property (strong, nonatomic) NSString *title;
@property (strong, nonatomic) NSString *comment;
@property (nonatomic) int fkID;
Here is what I ended up doing.
It works fine.