UITableviewcell set property <p>I need to set the properties in uitableviewcell. The following code is written as I do.</p> <p>myTableViewCell.h</p> <pre><code>@interface myTableViewCell : UITableViewCell @property (nonatomic, weak) NSString *row; @property (nonatomic, weak) NSString *section; </code></pre> <p>myTableViewCell.m</p> <pre><code>- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier { self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]; if (self) { NSLog(@"%@",_row); } return self; </code></pre> <p>}</p> <p>myTableViewController.m</p> <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; myTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[myTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier]; } cell.row = [NSString stringWithFormat:@"%i",indexPath.row]; </code></pre> <p>Result row = nill. What is wrong?</p>