How can I create a single line view separator in UITableView like the NavigationDrawer of Android:
I know that in Android it's easy, but I can't find a reference of that for iOS, how is it call on iOS, I just want a single line separator in my menu view, all the videos and tutorials that I can find for iOS shows how to add an expandable menu, which is not what I want, I want just one single line separating two groups of an array of strings. Is that possible on iOS, where can I found a tutorial teaching that?
my code so far:
import UIKit class MenuViewController: UIViewController, UITableViewDelegate, UITableViewDataSource { //Outlets @IBOutlet weak var tableView: UITableView! var menuNameArr = [String]() var iconImage = [UIImage]() override func viewDidLoad() { super.viewDidLoad() tableView.alwaysBounceVertical = false; tableView.separatorStyle = .none menuNameArr = ["Meu Perfil", "Meus Cupons", "Extrato de pontos", "Configurações", "Termos de uso", "Entre em Contato", "Avaliar aplicativo", "Sair"] iconImage = [UIImage(named: "user")!,UIImage(named: "cupons")!, UIImage(named: "extrato")!, UIImage(named: "config")!, UIImage(named: "termos")!, UIImage(named: "contato")!, UIImage(named: "avaliar")!, UIImage(named: "sair")!] self.revealViewController().rearViewRevealWidth = self.view.frame.size.width - 60 } func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return menuNameArr.count } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: "MenuTableViewCell") as! MenuTableViewCell cell.imgIcon.image = iconImage[indexPath.row] cell.lblMenuName.text! = menuNameArr[indexPath.row] return cell } func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { } } From "Configurações" to "Sair" I want that part of the array to be the second part of the menu
