‘NSInvalidArgumentException‘, reason: ‘-[__NSPlaceholderDictionary initWithObjectsAndKeys:]: second object of each pair must be non-nil. Or, did you forget to nil-terminate your parameter list?‘
解决方法:[[NSDictionary alloc] initWithObjectsAndKeys 每个key和value都不能为nil,最后要加一个nil,另外数值类型的要加 @符号转换成对象
TabBarController 跳到子Controller时候,隐藏tabbar属性
解决方法:
ViewController *controller = [ViewController new]; controller.hidesBottomBarWhenPushed = YES;//隐藏bottomBar [self.navigationController pushViewController:controller animated:YES];
原文:http://www.cnblogs.com/panzi/p/5201111.html