ios - Disposing of View Controller resources -


i having trouble understanding of arc. breakdown of program

http://i.stack.imgur.com/tfrah.png

i wrote emphasize vc1 more of 'master screen'...that doesn't have variables change. type in values , pass them music player instantiated problem when leaving vc2 , going startup screen select different values memory keeps going higher , higher cycle continues.

is how it's supposed work? notice when go startup screen, of values have been reset tells me drawing things new. why memory keep increasing every time switch between these 2 screens?

"why memory keep increasing every time switch between these 2 screens?"

probably because you're not switching between 2 controllers -- fact values reset when "go back" vc1 tells me instantiating new instance of vc1 when "go back". when using segues, should use unwind segue go previous controller. other types of segues instantiate new controllers .


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -