git.iko.soy/dashared/GDproject
on master help sign in
fixed an issue with segmented control
commitfb441b16035fc2adf944e00211bccb99f44c83c9 authorDarya Rednikina <rednikina.com@yandex.ru> dateFri 15 Feb 2019, 13:12 (8 years ago) parent3084c3b
1 file changed+7−2
GDproject/Controller/NewsController.swift+7−2
GDproject/Controller/NewsController.swift+7−2
@@ -117,8 +117,13 @@ extension NewsController: UITableViewDataSource
117117
118118 func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView?
119119 {
120− let view = tableView.dequeueReusableCell(withIdentifier: headerNewsChannelsVC) as! HeaderNewsChannels
121− view.vc = self
120+ let cell = tableView.dequeueReusableCell(withIdentifier: headerNewsChannelsVC) as! HeaderNewsChannels
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+
122127 return view
123128 }
124129}