title: Custom cell label returns nil
body: <p>I have a tableview, and i have loaded custom cells to it.</p>
  
  <p>However, the cell components doesn't get displayed. (the label returns nil - see image below)</p>
  
  <p><img src="https://i.stack.imgur.com/dmyFa.png" alt="enter image description here"></p>
  
  <p>I have created so many tableview and have has custom cells embedded to it in the past. However, i am having a issue where i am not able to find the solution.</p>
  
  <p>The code is as follows:</p>
  
  <p>cell for row at index path</p>
  
  <pre><code>static NSString *CellIdentifier = @"cell";
  
      MyCell *cell = (MyCell *) [tableView  dequeueReusableCellWithIdentifier:CellIdentifier];
  
      if (cell == nil) {
  
          cell = [[MyCell alloc] initWithStyle:UITableViewCellStyleSubtitle   reuseIdentifier:CellIdentifier];
  
      }
  
  
  
      cell.myLabel.text = @"fhjfhjdhfjdfhd ";
  
      return cell;
  </code></pre>
  
  <p>Custom cell .h file</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  
  
  
  @interface MyCell : UITableViewCell{
  
  
  
  }
  
  @property (weak, nonatomic) IBOutlet UILabel * myLabel;
  
  
  
  
  @end
  </code></pre>
  
  <p>Custom cell .m file</p>
  
  <pre><code>#import "MyCell.h"
  
  
  
  @implementation MyCell
  
  @synthesize myLabel;
  
  
  
  - (void)awakeFromNib {
  
      // Initialization code
  
  }
  
  
  
  - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  
      [super setSelected:selected animated:animated];
  
  
  
      // Configure the view for the selected state
  
  }
  
  @end
  </code></pre>
  
  <p>Storyboard</p>
  
  <p><img src="https://i.stack.imgur.com/QcubM.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/0hkDE.png" alt="enter image description here"></p>
  
  <p>Update</p>
  
  <p>There's a project <a href="https://github.com/honcheng/PaperFold-for-iOS" rel="nofollow noreferrer">https://github.com/honcheng/PaperFold-for-iOS</a></p>
  
  <p>On the sidebar there's a tableview that appears when swiped. </p>
  
  <p>that's the tableview where it doesn't display any custom label components.</p>
  
  <p>Wonder if this information will help find the problem.</p>