Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. - (void) showStatsView {
  2. StatsViewController *statsViewController = [[StatsViewController alloc] initWithNibName:@"Stats" bundle:[NSBundle mainBundle]];
  3. [self pushViewController:statsViewController animated:YES];
  4. [statsViewController release]; // (1)
  5. }
  6.  
  7. MyAppDelegate *appDelegate= (MyAppDelegate *)[[UIApplication sharedApplication] delegate];
  8. stats = [[NSDictionary alloc] initWithContentsOfFile:[appDelegate statsFilePath]];
  9.  
  10. - (void)dealloc {
  11.  
  12. /*
  13. dealloc'ing other stuff here which is irrelavent
  14. */
  15. [statsDict release]; // (2)
  16. [super dealloc];
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement