Three20 - Memory alert TTTableViewController gives a blank screen, how to fix?

It drives me crazy. I use a three-dimensional TTTableViewController, and when I get a memory warning, the screen turns white. Now, after reading in google group 320, it looks like tableView has been released. But, I can’t have my life determined by verification to make sure that it is so, and then create it again.

I used the following because I thought this would fix the problem, but it seems that it does not satisfy the if statement:

- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];

    // If we don't have a datasource we need to reset it
    if (!self.dataSource) {
        // Create datasource again
    }

}//end

Does anyone know what to do when this happens? The google group did not help.

+3
source share
3 answers

TTTableViewController? , , UITableViewController...

"viewDidUnload"? ? , tableview viewDidLoad .

, dataSource viewDidAppear, View, , "viewDidUnload", , "viewDidLoad".

0

, .

, initWithNibName UIViewController subviews. , .

initWithNibName viewDidLoad. , initWithNibName, . , , , viewDidLoad.

0

, viewDidLoad, . , viewDidLoad, , .

TTTableViewController, (), . , , , , : viewWillDisappear: [super viewWillDisappear:animated]. , , Three20 , .

, didReceiveMemoryWarning [self setEditing:NO] super; , ( , ).

Finally, there is an error in Tr20, which means that tables in load / empty / error mode will not be restored properly; see the TwoCentStudios blog discussion on the blog and a suggested fix for github .

0
source

All Articles