Question

In my app,i have around 50 nib files.And i Used ARC on..means with automatic reference counting .. i used navigation controller for navigation.so With every navigation memory indicator in x-code is continuous increasing..and crash..any solution for memory management ?

Was it helpful?

Solution

You have not provided us enough information to diagnose your problem. Could be leaks (such as that caused by strong reference cycles, e.g. sloppy use of repeating timers). Could be abandoned memory (such as caused by some circular logic in your navigation). No way to diagnose on the basis of what you've shared thus far.

I'd suggest you watch WWDC 2013 video, Fixing Memory Leaks (for registered developers). This builds upon the WWDC 2012 video iOS App Performance: Memory, which you might want to watch first. These walk you through the categories of problems and introduce you to some techniques for using Instruments to diagnose the problem.

OTHER TIPS

To navigate instantly back and forth to plenty of view controllers , you should use UIPageViewController , you can go through the documentation provided by apple at the below link:

https://developer.apple.com/library/ios/documentation/uikit/reference/UIPageViewControllerClassReferenceClassRef/UIPageViewControllerClassReference.html

You can also navigate back and forth by swiping the screen as well when you have implemented UIPageViewController , if you would like to stop that behavior at that time you can disable the horizontal scrolling of pages:

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top