From ef76c8a3f781d088ff743567d984554edd80448c Mon Sep 17 00:00:00 2001 From: suzuki_keishi Date: Tue, 1 Mar 2016 10:37:59 +0900 Subject: [PATCH] [update]readme. --- .../SKPhotoBrowserExample/ViewController.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/SKPhotoBrowserExample/SKPhotoBrowserExample/ViewController.swift b/SKPhotoBrowserExample/SKPhotoBrowserExample/ViewController.swift index 8b31689..6765a45 100644 --- a/SKPhotoBrowserExample/SKPhotoBrowserExample/ViewController.swift +++ b/SKPhotoBrowserExample/SKPhotoBrowserExample/ViewController.swift @@ -80,6 +80,9 @@ class ViewController: UIViewController, UICollectionViewDataSource, UICollection // Can hide the action button by setting to false browser.displayAction = true + // delete action(you must write `removePhoto` delegate, what resource you want to delete) + // browser.displayDeleteButton = true + // Optional action button titles (if left off, it uses activity controller // browser.actionButtonTitles = ["Do One Action", "Do Another Action"] @@ -107,6 +110,10 @@ class ViewController: UIViewController, UICollectionViewDataSource, UICollection // handle dismissing custom actions } + func removePhoto(browser: SKPhotoBrowser, index: Int, reload: (() -> Void)) { + // do some handle if you need + } + }