How to remove a subview from memory and display right away?

回眸只為那壹抹淺笑 提交于 2019-12-24 14:52:37

问题


How do I remove a UIImageView's subview (a View Controller in this case) from memory and display immediately?

[myGroovySubview release];

isn't doing it.

Any help appreciated!

Thanks // :)


回答1:


myGroovySubview.hidden = YES; hides the view. You could also try to remove it from its superview with [myGroovySubview removeFromSuperview];

If you removed it from its superview, the release call should automatically remove it from memory since the reference count should be zero after that call.



来源:https://stackoverflow.com/questions/1402232/how-to-remove-a-subview-from-memory-and-display-right-away

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!