In the interface builder, the power of dimension classes allows you to set restrictions or remove them. In code, you can do something similar by switching the active property.
The Builder interface also allows you to set or remove views. However, I would like to do this programmatically. UIView has no active property. Is there any way I can uninstall a program programmatically? I am looking for something where I can just switch a boolean property, and the view and its restrictions go into quiescent state, and the view is no longer displayed, and its restrictions are no longer limited until it switches to be inactive, and then the view and restrictions work again.
Is it possible? Any workarounds?
source
share