[update]readme.

This commit is contained in:
suzuki_keishi 2016-03-01 10:37:59 +09:00
parent 09d45d2d5d
commit ef76c8a3f7
1 changed files with 7 additions and 0 deletions

View File

@ -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
}
}