username=@"sri";
CalendarViewController *calendarViewController=[[CalendarViewController alloc]initWithNibName:@"CalendarViewController" bundle:nil AndUserName:username];
[self.navigationController pushViewController:calendarViewController animated:YES];
断言失败 - [UITextFieldLabel setTextColor:], /SourceCache/UIKit_Sim/UIKit-1448.89/UILabel.m:314 2012-12-11 11:00:59.257 TIMESHEET_MANAGER [553:207] * 终止应用程序 未捕获的异常'NSInternalInconsistencyException',原因: '无效参数不满足:颜色'
* 首次调用堆栈:
答案 0 :(得分:0)
检查班级中是否有setTextColor
方法。它期待一个UIColor
对象,但是其他东西被传递给该方法。检查并更正。那应该解决这个问题。