我发现Sigabrt抛出错误是因为这个代码我试图根据教程从数据库中检索但我不知道错误是什么。我只是评论了给我带来问题的线条,但我不了解发生了什么
(void)viewDidLoad
{
MyWineLists * mywines =[[MyWineLists alloc] init];
self.wines = [mywines getMyWines];
/*[self.wineViewer setImage:((WineList *) [self.wines objectAtIndex:0]).photo];
[self.winename setText:((WineList *) [self.wines objectAtIndex:0]).wine];
[self.winerating setText:((WineList *) [self.wines objectAtIndex:0]).rating];*/
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}