Skip to content

Commit

Permalink
Luck
Browse files Browse the repository at this point in the history
  • Loading branch information
nixzhu committed Jul 1, 2016
1 parent 64be4c0 commit 1bdfe45
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ class DiscoverContainerViewController: UIViewController {
switch identifier {

case "embedMeetGenius":

let vc = segue.destinationViewController as! MeetGeniusViewController

vc.tapBannerAction = { [weak self] url in
Expand Down
15 changes: 1 addition & 14 deletions Yep/ViewControllers/Discover/MeetGeniusViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ class MeetGeniusViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()

println("tableView.tableHeaderView: \(tableView.tableHeaderView)")

updateGeniusInterviews()
}

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 1bdfe45

Please sign in to comment.