问题描述
- 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]; }
请帮忙解决一下,谢谢
解决方案
你看一下这些常见异常汇总:
http://blog.csdn.net/xuqiang918/article/details/12647439
时间: 2024-10-12 05:38:03