equal
deleted
inserted
replaced
29 -(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { |
29 -(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { |
30 return rotationManager(interfaceOrientation); |
30 return rotationManager(interfaceOrientation); |
31 } |
31 } |
32 |
32 |
33 -(void) didReceiveMemoryWarning { |
33 -(void) didReceiveMemoryWarning { |
34 // Releases the view if it doesn't have a superview. |
|
35 [super didReceiveMemoryWarning]; |
|
36 // Release any cached data, images, etc that aren't in use. |
|
37 if (self.activeController.view.superview == nil) |
34 if (self.activeController.view.superview == nil) |
38 self.activeController = nil; |
35 self.activeController = nil; |
39 MSG_MEMCLEAN(); |
36 MSG_MEMCLEAN(); |
|
37 [super didReceiveMemoryWarning]; |
40 } |
38 } |
41 |
39 |
42 // load the view programmatically; we need a splitViewController that handles a MasterViewController |
40 // load the view programmatically; we need a splitViewController that handles a MasterViewController |
43 // (which is just a UITableViewController) and a DetailViewController where we present options |
41 // (which is just a UITableViewController) and a DetailViewController where we present options |
44 -(void) viewDidLoad { |
42 -(void) viewDidLoad { |