Ok heres the situation. I have a View controller class that serves as the main view(MainView). It contains a subview that another view controller takes care of(ChangingView). Now, every four seconds, ChangingView needs to change its view. What I am currently doing goes something like this.
ChangingView = [[AnotherView alloc] initWithNibName:@"AnotherView" bundle:[NSBundle mainBundle]];
[MainView addSubview:ChangingView.view];
Now, after the 4 seconds is up and before the lines up there are called I do the following.
[ChangingView release];
[ChangingView.view removeFromSuperview];
What is happening is I am getting memory warnings like mad. And eventually it gives me the debug messages of "program sent '0'" or "data formatters currently unavailable". Both of which I believe mean I am out of memory. I don't think that should be happening as the amount of stuff in the views isn't multiple MB so for some reason it has to be stacking or something. If you need any clarification please ask and any help will be greatly appreciated as I am currently stumped. Thanks in advance.