是否有必要在iPhone中发布NSInteger?

Rah*_*yas 5 iphone memory-management objective-c

我得到这个错误有人知道吗?2009-07-08 18:42:36.778 FlashCards [1297:20b]类别Id = 1 FlashCards(1297,0xa0690fa0)malloc:*对象0x4fd78a0的错误:被释放的指针未分配FlashCards(1297,0xa0690fa0)malloc:* error对象0x4fdc200:double free***在malloc_error_break中设置断点以进行调试

Ale*_*ski 17

不,一个NSInteger不是一个对象; 它只是int(对于32位应用程序)或long(对于64位应用程序)的typedef :

#if __LP64__
typedef long NSInteger;
#else
typedef int NSInteger;
endif
Run Code Online (Sandbox Code Playgroud)