下图是模拟器运行后控制台中展示的闪退错误信息: 解决方法:把separator放在cell的注册之后,就能顺利执行。 TableView.separatorStyle = UITableViewCellSeparatorStyleNone;