libc abi.dylib: terminate_handler unexpectedly threw an exception

错误代码:很明显的错误,一定要谨记.

 1 - (NSInteger)giftCountFullScreen{
 2     NSArray *arr = [NSMutableArray arrayWithArray:self.arrayGiftGruop];
 3     for (id data in arr) {
 4         BaseGiftItem *item = (BaseGiftItem *)data;
 5         if ([item.image isEqualToString:@"gift_bamboo"] && [item.price isEqualToString:@"1000"]) {
 6             [arr removeObject:item];
 7         }
 8     }
 9     return arr.count;
10 }

 

posted on 2016-02-26 11:24  活最好的自己  阅读(186)  评论(0编辑  收藏  举报

导航