iphone - 阵列问题

标签 iphone ios iphone-sdk-3.0 nsarray

在这一行中出现错误:

NSString *nmm =[narr objectAtIndex:1];

错误显示:

'NSRangeException', reason: '*** -[NSCFArray objectAtIndex:]: index (1) beyond bounds (1)'

最佳答案

看起来你的数组只有一个值(你可以在索引 0 处访问它,而不是索引 1)。

关于iphone - 阵列问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2872634/

相关文章:

ios - Swift:自定义 UIView 未根据约束调整大小

objective-c - NSURLConnection永不结束

iphone - 在定义的路径内裁剪 UIImage

ios - 如何在 uitextfield iOS 中滚动文本

iphone - 如何从另一个 UITabBarController 中的另一个 UINavigationController 转到一个 UITabBarController 中的顶级 UINavigationController?

iphone - 问题在 -[CALayer setBorderColor :]

iphone - locationManager didFailWithError

iphone - 奇怪的内存泄漏

ios - 动画期间的 UIView 中心位置

objective-c - 更改静态 uitableview 的选择/突出显示颜色