Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void) showStatsView {
- StatsViewController *statsViewController = [[StatsViewController alloc] initWithNibName:@"Stats" bundle:[NSBundle mainBundle]];
- [self pushViewController:statsViewController animated:YES];
- [statsViewController release]; // (1)
- }
- MyAppDelegate *appDelegate= (MyAppDelegate *)[[UIApplication sharedApplication] delegate];
- stats = [[NSDictionary alloc] initWithContentsOfFile:[appDelegate statsFilePath]];
- - (void)dealloc {
- /*
- dealloc'ing other stuff here which is irrelavent
- */
- [statsDict release]; // (2)
- [super dealloc];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement