开发者

Objective-C application crashes with 'unrecognized selector sent '

开发者 https://www.devze.com 2023-02-16 01:34 出处:网络
I am att开发者_StackOverflowempting to create a singleton, which I finally got to build without errors.I\'m missing something, but not sure what.

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

精彩评论

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