例如 strong -(void)setobj:(id)obj{ [obj retain]; [obj release]; _obj = obj; } 先后顺序尤为重要 如果先release则会造成悬挂指针