UITableView cellForRowAtIndexPath not called after low memory warning

I am new to COCOA and Objective C. I am working on an application that has two controllers with one table view, clicking on an item shape will cause the other controller to be pushed onto the stack. Everything worked fine until I started to handle the low memory warning in the application delegate. What I am doing in the application is to delegate to the application applicationDidReceiveMemoryWarning, is deleting my entire model and pushing all controllers into its root view using popToRootViewControllerAnimated.

Now my problem starts when the low memory warning is received. cellForRowAtIndexPath doesn't get called. All other methods of UITableViewDataSource are called correctly. What I get on the screen is a blank white screen. I am testing my app on iPhone OS 3.0 and development is done in Xcode V 3.1.3. Hope you guys can help me nail this.

Thanks, Jinesh.

+2


source to share


1 answer


You have to free all disgusting images, view the scrolling method



-(void)didreceivememoryWarning
{
[super didreceivememorywarning];
}

      

0


source







All Articles