Objective-C application crashes with 'unrecognized selector sent '
I am att开发者_StackOverflowempting to create a singleton, which I finally got to build without errors. I'm missing something, but not sure what.
Here's my console log:
here's my source code: . Here's the main routine (), where it crashes on line 32.Any help would be greatly appreciated!
Why are you calling twice the sharedDatabaseIntance method? In your code, it's called sharedSQLiteDB, and it does not need to be called on the object (it won't work as the method is static).
Looks like you've got a typo. It's allocWithZone:
, not allocWitZone:
精彩评论