title: Inheritance in UIViewController
body: <p>I'm working over inheriting UIViewControllers but am facing issues with it. Heres the list of ViewControllers I've used and their flow.</p>
  
  <p><strong>Header Files</strong></p>
  
  <pre><code>MainViewController : UIViewController {
  
  }
  </code></pre>
  
  <hr>
  
  <pre><code>CustomerTicketViewController : UIViewController {
  
  }
  @property (nonatomic, retain) NSArray *listTickets;
  </code></pre>
  
  <hr>
  
  <pre><code>CustomerEditTicketViewController : CustomerTicketViewController {
  
  }
  </code></pre>
  
  <hr>
  
  <p><strong>Implementation Files</strong></p>
  
  <pre><code>@implementation MainViewController
  
  - (void)loadCustomer {
          CustomerTicketViewController *customerTicketViewController = [[CustomerTicketViewController alloc] initWithNibName:@"CustomerTicketViewController" bundle:nil];
          [customerTicketViewController setListTickets:myTickets];
          [self presentModalViewController:customerTicketViewController animated:YES];
          [customerTicketViewController release];
  }
  
  @end
  </code></pre>
  
  <hr>
  
  <pre><code>@implementation CustomerTicketViewController
  
      - (void)editCustomer {
          CustomerEditTicketViewController *customerEditTicketViewController = [[CustomerEditTicketViewController alloc] initWithNibName:@"CustomerEditTicketViewController" bundle:nil];
          NSLog(@"ParentView.listTickets: %@", listTickets);
          [self presentModalViewController:customerEditTicketViewController animated:NO];
          [customerEditTicketViewController release];
      }
  
      @end
  </code></pre>
  
  <hr>
  
  <pre><code>@implementation CustomerEditTicketViewController
  
  - (void)viewDidLoad {
      NSLog(@"listTickets: %@", listTickets);
      NSLog(@"super.listTickets: %@", super.listTickets);
      NSLog(@"self-&gt;listTickets: %@", self-&gt;listTickets);
      NSLog(@"self.listTickets: %@", self.listTickets);
  }
  
  @end
  </code></pre>
  
  <hr>
  
  <p>The logs in the sub class print null but as per my understanding they should print the same values as in the ParentView.
  Please guide me if I'm wrong at some place.</p>
  
  <pre><code>    ParentView.listTickets: (
      "&lt;CustomerTicket: 0x4c75d90&gt;",
      "&lt;CustomerTicket: 0x4c76310&gt;"
  )
  
  listTickets: (null)
  super.listTickets: (null)
  self-&gt;listTickets: (null)
  self.listTickets: (null)
  </code></pre>