Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从内存中删除 UIImageView 的子视图(在这种情况下为视图控制器)并立即显示?
[myGroovySubview release];
没有这样做。
任何帮助表示赞赏!
谢谢 // :)
myGroovySubview.hidden = YES;隐藏视图。您也可以尝试将其从其超级视图中删除[myGroovySubview removeFromSuperview];
myGroovySubview.hidden = YES;
[myGroovySubview removeFromSuperview];
如果您将其从其超级视图中删除,则该release调用应自动将其从内存中删除,因为该调用后引用计数应为零。
release