I am looking to present the same ViewController up to around 30 times (max). The app goes through a set sequence of information through a series of steps. The UI only contains a webview displaying textual information however sometimes a tableview is added in order for the user to answer questions based on the information. I have tried many ways however which is the most memory efficient way of accomplishing this as although i can get it working ok'ish I am getting lots of abandoned memory which is slowing the app considerably (I am using ARC)
Option 1
I have tried using UIPageViewController
which works fine however on iPhone 4 it is sluggish and laggy i.e
[self.pageController setViewControllers:viewControllers direction:UIPageViewControllerNavigationDirectionForward animated:YES completion:nil];
Option 2 I have tried pushing the viewcontroller (on to itself) which again works fine however the memory is not getting released and the abandoned memory increases up to about 20mb a heapshot.
The user doesn't have to go back to the previous view so tried deleting the viewcontrollers in the stack as i was going along but memory still increasing.
I have been struggling with this issue for weeks surely there is a memory efficient solution somewhere?
A pint for the successful answer before the Mac gets thrown out the window:)
Thanks in Advance