ios - How to activate "Installed" programmatically? -


this uiview , want activate (with constraints etc.), when want, how that? don't want removefromsuperview etc. want learn installed function exact equivalent in terms of code.

enter image description here

there 2 options 1) hide 2) removefromsuperview.

if install or uninstall view storyboard, equivalent add/remove view.

refer apple documentation says,

a runtime object uninstalled view still created. however, view , related constraints not added view hierarchy , view has superview property of nil. different being hidden. hidden view in view hierarchy along related constraints.

you can check 2 line of code,

 nsarray *arr = [self.view subviews];  nslog(@"arr %@",arr); 

swift:

let array: array = self.view.subviews print("array \(array)") 

try installed , uninstalled. hope :)


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -