iOS 在 Interface Builder 中创建的视图是否将选项 TranslatesAutoResizingMaskIntoConstraints 设置为 false?

In iOS do views created in InterfaceBuilder have the option setTranslateAutoResizingMasksIntoConstraints set to false?

在 iOS 中,在 Interface Builder 中创建并稍后在代码中引用的视图是否将选项 setTranslateAutoResizingMasksIntoConstraints 自动设置为 false?

是的,对于在界面生成器中使用约束创建的任何视图,选项 translateAutoResizingMasksIntoConstraints 都设置为 false,但是您在代码中创建的视图应该设置它