Cómo saber si una UIView está visible

septiembre 17th, 2013 Posted by ios, objective-c 0 thoughts on “Cómo saber si una UIView está visible”

Si necesitás saber si podés liberar una view podés chequear si tiene una superview:


if (myView.superview){
// podés hacer algo con la vista porque se supone que está en la jerarquía
}
else {
// myView no está en la jerarquía de vistas
}

Copyright © 2018 programadorfreelanceargentina.com

Programador Freelance Argentina