小编cha*_*ain的帖子

异常'NSRangeException',原因:'*** - [__ NSArrayM objectAtIndex:]:索引19超出边界[0 .. 18]'

我已经找过其他类似的帖子了,但没有一个能解决我的问题.我收到此错误:

*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 19 beyond bounds [0 .. 18]'
Run Code Online (Sandbox Code Playgroud)

我正在使用Searchbar和Display Controller从PARSE.COM数据库获取数据.

这是我的代码:

#import "busquedaViewController.h"

@interface busquedaViewController ()

@end

@implementation busquedaViewController

@synthesize totaldetalles;
@synthesize resultados;
@synthesize busquedaTableView;

- (id)initWithStyle:(UITableViewStyle)style
{
    self = [super initWithStyle:style];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];

    // Uncomment the following line to preserve selection between presentations.
    // self.clearsSelectionOnViewWillAppear = NO;

    // Uncomment the following line to display …
Run Code Online (Sandbox Code Playgroud)

nsarray nsexception ios searchbar parse-platform

2
推荐指数
1
解决办法
2万
查看次数

标签 统计

ios ×1

nsarray ×1

nsexception ×1

parse-platform ×1

searchbar ×1