From 87b36ffb0dfa313e09f86303728ceed5584238ef Mon Sep 17 00:00:00 2001 From: Mark Woollard Date: Sat, 23 Jan 2016 19:52:06 +0000 Subject: [PATCH] Add use of rx_itemAccessoryButtonTapped to simple table view example --- .../SimpleTableViewExampleViewController.swift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/RxExample/RxExample/Examples/SimpleTableViewExample/SimpleTableViewExampleViewController.swift b/RxExample/RxExample/Examples/SimpleTableViewExample/SimpleTableViewExampleViewController.swift index 4b1b093f..33206ed0 100644 --- a/RxExample/RxExample/Examples/SimpleTableViewExample/SimpleTableViewExampleViewController.swift +++ b/RxExample/RxExample/Examples/SimpleTableViewExample/SimpleTableViewExampleViewController.swift @@ -38,5 +38,13 @@ class SimpleTableViewExampleViewController : ViewController { DefaultWireframe.presentAlert("Tapped `\(value)`") } .addDisposableTo(disposeBag) + + tableView + .rx_itemAccessoryButtonTapped + .subscribeNext { indexPath in + DefaultWireframe.presentAlert("Tapped Detail @ \(indexPath.section),\(indexPath.row)") + } + .addDisposableTo(disposeBag) + } } \ No newline at end of file