- property的getter方法就是
-(type *)PropertyName;
setter方法需要用- (void) setPropertyName:(type *)type;
2.有次拉完代碼后,跑模擬器沒問題,但跑真機一運行Xcode就卡在一個斷點上,提示 dyld dyld 什么的忘記了。然后別的同事完全沒問題。剛好Xcode的版本也是要升級了,結果重裝了一下新版Xcode就沒問題了……
3.在聲明一個元素是模型的數組 如果該類在同一文件下,記得在.m文件上添加className的@implementation
@property(copy, nonatomic) NSArray<className> *visitor;
4.如果鍵盤還沒退出第一響應者,就調用[tableView reloadData]會造成崩潰,要先[textView resignFirstResponder]、 [tableView endEditing:YES]等方法退出鍵盤
5.Could not find Developer Disk Image 是因為Xcode不支持改真機的系統(升級Xcode即可)