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

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -