Any memory leak (or over-instantiation of objects) when using iOS Storyboard Seque “Model” or “Push” style?

自闭症网瘾萝莉.ら 提交于 2019-12-06 01:23:42

@trapper is absolutely correct. You segues will stack them up, but it won't leak as long as you dismiss your "modal" with dismissViewControllerAnimated:completion: or pop your pushed view controller with popViewControllerAnimated:. If you erroneously have a segue from your login/register screen back to the main view, then that memory won't be released (which isn't technically a leak, but it's wrong and you won't release the memory).

Yes it will keep stacking them up either way.

Just to clarify though, it wont cause any leaks.

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