init 和 dealloc

dealloc 方法应该放在实现文件的最上面,并且刚好在 [@synthesize](<https://github.com/synthesize> "@synthesize") 和 [@dynamic](<https://github.com/dynamic> "@dynamic") 语句的后面。在任何类中,init 都应该直接放在 dealloc 方法的下面。 init 方法的结构应该像这样: \- (instancetype)init {