DisclosureDetailController.m
上传用户:jjjjag8
上传日期:2017-04-17
资源大小:1443k
文件大小:1k
源码类别:

iPhone

开发平台:

MultiPlatform

  1. //
  2. //  DisclosureDetailController.m
  3. //  Nav
  4. //
  5. //  Created by Jeff LaMarche on 7/22/08.
  6. //  Copyright 2008 __MyCompanyName__. All rights reserved.
  7. //
  8. #import "DisclosureDetailController.h"
  9. @implementation DisclosureDetailController
  10. @synthesize label;
  11. @synthesize message;
  12. - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
  13. if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
  14. // Initialization code
  15. }
  16. return self;
  17. }
  18. /*
  19.  Implement loadView if you want to create a view hierarchy programmatically
  20. - (void)loadView {
  21. }
  22.  */
  23. /*
  24.  If you need to do additional setup after loading the view, override viewDidLoad.
  25. - (void)viewDidLoad {
  26. }
  27.  */
  28. - (void)viewWillAppear:(BOOL)animated {
  29. label.text = message;
  30. [super viewWillAppear:animated];
  31. }
  32. - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
  33. // Return YES for supported orientations
  34. return (interfaceOrientation == UIInterfaceOrientationPortrait);
  35. }
  36. - (void)didReceiveMemoryWarning {
  37. [super didReceiveMemoryWarning]; // Releases the view if it doesn't have a superview
  38. // Release anything that's not essential, such as cached data
  39. }
  40. - (void)dealloc {
  41. [label release];
  42. [message release];
  43. [super dealloc];
  44. }
  45. @end