2 lianlianbushell lianlianbushell 于 2013.02.03 17:00 提问

NSString比较报出异常SIGABT

有下面代码用了比较两个字符串,但是报出异常:

- (void)calendarMonthView:(TKCalendarMonthView *)monthView didSelectDate:(NSDate *)d {
NSLog(@"calendarMonthView didSelectDate %@",d);
//[self papulateTable];
//[table reloadData];
 //[self performSelector:@selector(papulateTable) withObject:nil afterDelay:1.0];
NSString *tempDate = (NSString*)d;
NSString *selectedDate = @"2013-02-04 00:00:00 +0000";
if([tempDate isEqualToString:selectedDate])
{
  flagtoCheckSelectedCalendarDate = 1;
}
if(flagtoCheckSelectedCalendarDate == 1)
{
    [self viewDidLoad];
}
if(flagtoCheckSelectedCalendarDate == 2)
{
    [self viewDidLoad];
}
//[table reloadData];
}

请帮忙解决一下,谢谢

1个回答

wangyaninglm
wangyaninglm   Ds   Rxr 2015.01.13 23:43

你看一下这些常见异常汇总:
http://blog.csdn.net/xuqiang918/article/details/12647439

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!