git.iko.soy/dashared/GDproject
on master help sign in
closed: #11
commitbba911438ecddac33c8886f669917de20ba7aa8b authorDarya Rednikina <rednikina.com@yandex.ru> dateFri 15 Mar 2019, 10:54 (8 years ago) parent7d736e3
1 file changed+7
GDproject/Controller/ News and channels/FullPostController.swift+7
GDproject/Controller/ News and channels/FullPostController.swift+7
@@ -95,6 +95,13 @@ class FullPostController: UITableViewController {
9595
9696
9797 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+
98105 cell.selectionStyle = .none
99106 return cell
100107 }