objective c - Xcode wants to use _bridge to close sqlite3 database -
though have linked sqlite3 framework , included headers in application delegate file, xcode wants change:
- (void)applicationdidenterbackground:(uiapplication *)application { if ([mydatabase database]) sqlite3_close([mydatabase database]); }
to this:
- (void)applicationdidenterbackground:(uiapplication *)application { if ([mydatabase database]) sqlite3_close((__bridge sqlite3 *)([mydatabase database])); }
in code above, database singleton reference instance of mydatabase works in other aspects of program.
Comments
Post a Comment