title: iOS UITableView cell's custom separator doesn't change its width on landscape
body: <p>I have my UITableView and have set my cell's separator. Everything seems fine, but my separator doesn't change its width on landscape. Here is how it looks:
  <a href="https://i.stack.imgur.com/lk5rp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lk5rp.png" alt="enter image description here"></a></p>
  
  <p>Here is the code where I create my custom cell:</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      static NSString *CellIdentifier = @"Cell";
      ListCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
  
      if(cell == nil){
          NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"ListCell" owner:self options:nil];
          cell = [nib objectAtIndex:0];
          cell.backgroundColor = UIColor.clearColor;
      }
     //set cell's image and texts
     ... 
  
  
      UIView *separatorLineView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, [[UIScreen mainScreen] bounds].size.width, 1)];
      separatorLineView.backgroundColor = [UIColor colorWithHue:0 saturation:0 brightness:0 alpha:0.1];
      [cell.contentView addSubview:separatorLineView];
      [cell layoutIfNeeded];
      return cell;
  }
  </code></pre>
  
  <p>Any ideas, how can I solve this problem?</p>