iphone - iOS Tab Bar Controller memory management -
I am using an iPhone storyboard, which is the main entry point tab bar controller . This tab bar controller is connected to seven other different view controllers. These view controllers are mostly table view controllers or web views. I'm not sure I'm searching for a problem that is not actually present, but my app's usage is ~ 80 MB RAM after seeing all the controllers Once opened and therefore I have this assumption, it is wrong. After making calls to the scene controllers many times the size is not high, like I do not think I have a memory leak. I have also searched for this problem, but there is only one thing that I could get, it was that the OS caches all opened view controllers and keeps them in memory, does anyone confirm it Could? If the OS does not have enough memory, then what ideas will be killed? I have the impression that I am a good app citizen in any way, with each view controller WebViews are usually cached characters which are less than 15 MB. In my opinion, 80 MB is fine on the simulator, if you open the same VC and after the first load the baseline is still the same, then it is fine. viewDidDisappear ? Or should I leave memory management in OS?
You should only keep in mind that during the memory pressure the system can easily get rid of unnecessary memory.
Tabbravis keeps instances of VC because it is supposed to be done.
Comments
Post a Comment