[update]readme.
This commit is contained in:
parent
09d45d2d5d
commit
ef76c8a3f7
|
|
@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue