开发者

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:

Objective-C application crashes with 'unrecognized selector sent '

here's my source code:

Objective-C application crashes with 'unrecognized selector sent '

. Here's the main routine (

Objective-C application crashes with 'unrecognized selector sent '

), 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:

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜