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.
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
Post a Comment