title: Custom UITableViewCell with XIB
body: <p>I looked around and there are many examples on how to do this, but I am still not getting it.</p>
  
  <p>I have a list where I am listing journal entries which I want to display a title, date created and few other things. I want to use an XIB to design a cell, so UX designer can modify it and pixel push it.</p>
  
  <p>So, this is how i setup the xib:
  <img src="https://i.stack.imgur.com/YcojB.png" alt="enter image description here"></p>
  
  <p>Then I made a class that this xib cell points to and I added two properties to it:</p>
  
  <pre><code>@property (atomic, weak) IBOutlet UILabel* titleLabel;
  @property (atomic, weak) IBOutlet UILabel* dateLabel;
  </code></pre>
  
  <p>I want to be able to set these when I create these cells.</p>
  
  <p>In the view that has the list table I do this:
  In -(void) viewDidLoad</p>
  
  <pre><code>[self.tableView registerNib:[UINib nibWithNibName:@"DreamListTableViewCell" bundle:nil] forCellReuseIdentifier:@"DreamListCell"];
  </code></pre>
  
  <p>And in - (UITableViewCell*) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath I do this:</p>
  
  <pre><code>static NSString *MyIdentifier = @"DreamListCell";
  UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:MyIdentifier forIndexPath:indexPath];
  </code></pre>
  
  <p>The problem is that the app crashes if I setup IBOutlets in the cell xib, because I guess the owner is really nil when it is initialized, but I am actually not sure. How could I modify those two properties if I can't connect them in interface builder? What should I do differently?</p>
  
  <p>Also, I am not using storyboards. I am using this as a guide: <a href="http://www.apeth.com/iOSBook/ch21.html#_custom_cells" rel="noreferrer">Chapter 21. Table Views and Collection Views</a> </p>
  
  <p>I apologize for sort of duplicate question, I am just not getting it. Halp!</p>
  
  <p>Edit:
  Outlet screenshot:
  <img src="https://i.stack.imgur.com/zh5bQ.png" alt="enter image description here"></p>
  
  <p>Edit #2:
  If I remove outlet connections in the cell xib i see this:
  <img src="https://i.stack.imgur.com/Y4w8J.png" alt="enter image description here"></p>