NSMutableArray 对象的 ObjectAtIndex 方法
我正在使用 NSMUtableArray 来存储我创建的一些对象。但是当我写 [myArray objectAtIndex:i] 时,其中 i 是该特定数组的有效索引,会发生以下两件事之一:如果我使用模拟器来运行应用程序,一切正常...如果我在我的应用程序上运行应用程序Iphone 应用程序崩溃...有任何线索说明为什么崩溃吗?
I'm using an NSMUtableArray to store some objects I created. but when I write [myArray objectAtIndex:i] where i is a valid index for that particvular array one of two thing happens: if I'm using the simulator to run the app everything works ok...If I run the app on my Iphone the app crashes...any clues why is it crashing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
很可能是内存管理问题。您是否遵守 内存管理编程指南?尝试:
您没有向我们提供足够的信息,无法为您提供可靠、直接的答案。
Likely it is a memory management issue. Are you abiding by rules set out in the Memory Management Programming Guide? Try:
You have not given us anywhere near enough information for us to give you a reliable, straightforward answer.