Guest User

Untitled

a guest
Aug 16th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. In iphone app, with 3 viewcontrollers with UInavigationcontroller, from 2nd to 3rd view, dealloc is not called
  2. [self.navigationContrller pushViewController:titlesViewController];
  3.  
  4. [titlesViewController release];
  5.  
  6. @implementation TitlesViewController
  7. NSMutableArray *titleArray;
  8. NSMutableArray *bidArray;
  9. ...
  10. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
  11. ...
  12. [self.navigationController pushViewController:detailViewController animated:YES];
  13. [webView release];
  14. [detailViewController release];
  15. [titleArray release];
  16. [bidArray release];
  17. NSLog(@"****** titlesviewcontoller didSelectRowAtIndexPath");
  18. }
  19.  
  20. - (void)dealloc
  21. {
  22. [titleArray release];
  23. [bidArray release];
  24. [super dealloc];
  25. NSLog(@"****** titlesviewcontoller dealloc");
  26. }
  27. @end
  28.  
  29. [titleArray release];
  30. [bidArray release];
Add Comment
Please, Sign In to add comment