出现问题1.
。。。unable to dequeue a cell with identifier Cell - must register a nib or a class for the identifier or connect a prototype cell in a storyboard。。
怎么办?
我个人的解决办法是
在- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath这个方法中
添加
[tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:cellIdentifer];
出现问题2.
this class is not key value coding-compliant for the key digitPressed
设置IBAction和IBOutlet时有多余的连线,按下ctrl键检查控件的连接将多余的连续删除后程序正常运行。
出现问题3.
如何在-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
这个方法中通过segue获得下一级视图
DetailViewController *detail = [self.storyboard instantiateViewControllerWithIdentifier:@"detail"];