Skip to content

Commit

Permalink
Updated examples project
Browse files Browse the repository at this point in the history
  • Loading branch information
Sherlock committed Jan 9, 2017
1 parent 7a5d209 commit 277db9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,11 @@ final class SingleSectionStoryboardViewController: UIViewController, IGListAdapt
return sectionController
}

func emptyView(for listAdapter: IGListAdapter) -> UIView? {
return nil
}
func emptyView(for listAdapter: IGListAdapter) -> UIView? { return nil }

// MARK: - IGListSingleSectionControllerDelegate

func didSelect(_ sectionController: IGListSingleSectionController) {
func didSelect(_ sectionController: IGListSingleSectionController, with object: Any) {
let section = adapter.section(for: sectionController) + 1
let alert = UIAlertController(title: "Section \(section) was selected \u{1F389}", message: nil, preferredStyle: .alert)
alert.addAction(UIAlertAction(title: "Dismiss", style: .default, handler: nil))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,11 @@ final class SingleSectionViewController: UIViewController, IGListAdapterDataSour

// MARK: - IGListSingleSectionControllerDelegate

func didSelect(_ sectionController: IGListSingleSectionController) {
func didSelect(_ sectionController: IGListSingleSectionController, with object: Any) {
let section = adapter.section(for: sectionController) + 1
let alert = UIAlertController(title: "Section \(section) was selected \u{1F389}", message: nil, preferredStyle: .alert)
let alert = UIAlertController(title: "Section \(section) was selected \u{1F389}",
message: "Cell Object: " + String(describing: object),
preferredStyle: .alert)
alert.addAction(UIAlertAction(title: "Dismiss", style: .default, handler: nil))
present(alert, animated: true, completion: nil)
}
Expand Down

0 comments on commit 277db9c

Please sign in to comment.