Separators for Navigation

If there isn’t a pressing need to use images for the separators, you could do this with pure CSS. nav li + li:before{ content: ” | “; padding: 0 10px; } This puts a bar between each list item, just as the image in the original question described. But since we’re using the adjacent selectors, … Read more

Hide separator line on one UITableViewCell

in viewDidLoad, add this line: self.tableView.separatorColor = [UIColor clearColor]; and in cellForRowAtIndexPath: for iOS lower versions if(indexPath.row != self.newCarArray.count-1){ UIImageView *line = [[UIImageView alloc] initWithFrame:CGRectMake(0, 44, 320, 2)]; line.backgroundColor = [UIColor redColor]; [cell addSubview:line]; } for iOS 7 upper versions (including iOS 8) if (indexPath.row == self.newCarArray.count-1) { cell.separatorInset = UIEdgeInsetsMake(0.f, cell.bounds.size.width, 0.f, 0.f); }