git.iko.soy/dashared/GDproject
on master help sign in
closed: #11
bba9114Darya Rednikina
GDproject/Controller/ News and channels/FullPostController.swift+7
@@ -95,6 +95,13 @@ class FullPostController: UITableViewController {
95
95
96
96
97 cell.fill(with: PostCellData.create(with: post!.body), true, post: post!)
97 cell.fill(with: PostCellData.create(with: post!.body), true, post: post!)
98+
99+ cell.onUserDisplay = { [weak self] (id) in
100+ let vc = self?.storyboard!.instantiateViewController(withIdentifier: profileViewController) as! ProfileViewController
101+ vc.idProfile = id
102+ self?.navigationController?.pushViewController(vc, animated: true)
103+ }
104+
98 cell.selectionStyle = .none
105 cell.selectionStyle = .none
99 return cell
106 return cell
100 }
107 }