diff --git a/Yep/ViewControllers/Discover/DiscoverContainerViewController.swift b/Yep/ViewControllers/Discover/DiscoverContainerViewController.swift index 91fde8fa9..8637e74f0 100644 --- a/Yep/ViewControllers/Discover/DiscoverContainerViewController.swift +++ b/Yep/ViewControllers/Discover/DiscoverContainerViewController.swift @@ -157,6 +157,7 @@ class DiscoverContainerViewController: UIViewController { switch identifier { case "embedMeetGenius": + let vc = segue.destinationViewController as! MeetGeniusViewController vc.tapBannerAction = { [weak self] url in diff --git a/Yep/ViewControllers/Discover/MeetGeniusViewController.swift b/Yep/ViewControllers/Discover/MeetGeniusViewController.swift index ed389b3e6..5c8223256 100644 --- a/Yep/ViewControllers/Discover/MeetGeniusViewController.swift +++ b/Yep/ViewControllers/Discover/MeetGeniusViewController.swift @@ -40,8 +40,6 @@ class MeetGeniusViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() - println("tableView.tableHeaderView: \(tableView.tableHeaderView)") - updateGeniusInterviews() } @@ -80,7 +78,7 @@ class MeetGeniusViewController: UIViewController { defaultFailureHandler(reason: reason, errorMessage: errorMessage) } - let count = 5 + let count = 10 geniusInterviewsWithCount(count, afterNumber: maxNumber, failureHandler: failureHandler, completion: { [weak self] geniusInterviews in SafeDispatch.async { [weak self] in @@ -135,17 +133,6 @@ class MeetGeniusViewController: UIViewController { } }) } - - - /* - // MARK: - Navigation - - // In a storyboard-based application, you will often want to do a little preparation before navigation - override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { - // Get the new view controller using segue.destinationViewController. - // Pass the selected object to the new view controller. - } - */ } // MARK: - UITableViewDataSource, UITableViewDelegate diff --git a/Yep/ViewControllers/GeniusInterview/GeniusInterviewViewController.swift b/Yep/ViewControllers/GeniusInterview/GeniusInterviewViewController.swift index 4b034720d..62195953f 100644 --- a/Yep/ViewControllers/GeniusInterview/GeniusInterviewViewController.swift +++ b/Yep/ViewControllers/GeniusInterview/GeniusInterviewViewController.swift @@ -46,27 +46,25 @@ class GeniusInterviewViewController: UIViewController { if let user = self?.geniusInterview.user { self?.tapAvatarAction?(user: user) } - println("tapAvatarAction") } view.sayHiAction = { [weak self] in if let user = self?.geniusInterview.user { self?.sayHiAction?(user: user) } - println("sayHiAction") } view.shareAction = { [weak self] in if let url = self?.geniusInterview.url { self?.shareAction?(url: url) } - println("shareAction") } return view }() deinit { + webView.navigationDelegate = nil webView.scrollView.delegate = nil }