git.iko.soy/dashared/GDproject
on master help sign in
fixed an issue with segmented control
fb441b1Darya Rednikina
GDproject/Controller/NewsController.swift+7−2
@@ -117,8 +117,13 @@ extension NewsController: UITableViewDataSource
117
117
118 func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView?
118 func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView?
119 {
119 {
120− let view = tableView.dequeueReusableCell(withIdentifier: headerNewsChannelsVC) as! HeaderNewsChannels
120+ let cell = tableView.dequeueReusableCell(withIdentifier: headerNewsChannelsVC) as! HeaderNewsChannels
121− view.vc = self
121+ cell.vc = self
122+
123+ let view = UIView(frame: CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height: 46.0))
124+ view.addSubview(cell)
125+ cell.edgesToSuperview()
126+
122 return view
127 return view
123 }
128 }
124}
129}