我已经找过其他类似的帖子了,但没有一个能解决我的问题.我收到此错误:
*** 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)