Я обнаружил, что когда я устанавливал фоновое изображение, разделитель автоматически исчезал.Проблема в том, что я хочу, чтобы он появился.
Вот что я сделал:
Создайте собственный класс UITableViewCell.В соответствующем методе init выполните:
// Create a background image view.
self.backgroundView = [[UIImageView alloc] init];
Затем в вашем контроллере, который управляет UITableView:
- (UITableViewCell *)tableView:(UITableView *)aTableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
// After all of the cell dequeue/allocation...
UIImageView *backgroundView = (UIImageView *)cell.backgroundView;
backgroundView.image = [UIImage imageNamed:@"your_image"];
}