ios 错误纪录

1.self.出不来的原因

Member reference type 'struct objc_class *' is a pointer; maybe you meant to use '->'?

Definition of 'struct objc_class' must be imported from module 'ObjectiveC.runtime' before it is required

在类方法中( +(void)...... )不能使用self.

因为此时还没有创建出自己的对象

2.UITableViewController

unable to dequeue a cell with identifier xiaomu - must register a nib or a class for the identifier or connect a prototype cell in a storyboard

在storyboard中创建UITableViewController ,在cell的identifier上必须和cell的标识符一样。

原文地址:https://www.cnblogs.com/shen5214444887/p/4921221.html