断言失败iOS?

时间:2014-11-20 13:52:10

标签: ios objective-c uinavigationcontroller uibutton

我在iOS应用中使用Vurig-Calendar。当从uibutton操作导航到将显示日历视图的viewController时,我收到以下错误。

 Assertion failed: (7 == hexString.length || 4 == hexString.length), function +[UIColor(HexColorAddition) colorWithHexString:alpha:], file /Users/st/Desktop/Developer/THome/THome/HexColor.m, line 33.

该应用在此行显示signal SIGABRT

// check for string length
assert(7 == hexString.length || 4 == hexString.length);

现在我在应用中也使用了Hexcolor库,但导航和HexColor没有任何关联。

我如何导航如下UIButton Action。

CalendarViewController *calVC = [self.storyboard instantiateViewControllerWithIdentifier:@"CalendarViewController"];

[self.navigationController pushViewController:calVC animated:YES];

可能导致此错误的原因是什么?

0 个答案:

没有答案