iphone - 是否有必要在 iphone 中发布 NSInteger?

标签 iphone objective-c memory-management

我收到这个错误有人知道吗??? 2009-07-08 18:42:36.778 闪存卡 [1297:20b] 类别 ID = 1 FlashCards(1297,0xa0690fa0) malloc:* 对象 0x4fd78a0 错误:未分配正在释放的指针 FlashCards(1297,0xa0690fa0) malloc: * 对象 0x4fdc200 错误:双重释放 *** 在malloc_error_break 设置断点调试

最佳答案

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

#if __LP64__
typedef long NSInteger;
#else
typedef int NSInteger;
endif

关于iphone - 是否有必要在 iphone 中发布 NSInteger?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1098005/

相关文章:

ios - 崩溃 sizeWithAttributes

iphone - UIAlertView 不显示

ios - 什么被弃用了?如何在所有版本中处理它?

c - 当我们不知道可用内存的大小时,如何实现伙伴分配器?

linux - 合并 data.frames 导致内存不足错误

ios - Copy增加是否保留计数值?

iphone - MapKit:如何从非常大的图像添加新的 map 层

iOS Swift 页面 View Controller

ios - 嵌套的 UIScrollView 在包含的页面上启用了 pagingEnabled 在页面更改后不会收到第一次底部滑动

ios - RESTKit异常: No mappable object representations were found at the key paths searched