alexhillc / AXPhotoViewer

An iOS/tvOS photo gallery viewer, useful for viewing a large (or small!) number of photos.
https://www.cocoacontrols.com/controls/axphotoviewer
MIT License
646 stars 119 forks source link

Title rightBarButtonItem #15

Closed MZakopailov closed 6 years ago

MZakopailov commented 6 years ago

Hi, how i can change share bar button? I try this
photosViewController.overlayView.rightBarButtonItem = UIBarButtonItem(title: "delete", style: .plain, target: self, action: #selector(deletePhoto))

But right button stay default.

alexhillc commented 6 years ago

Hi @Maxim-Zakopaylov, I’m in the middle of refactoring some initialization code to allow this to be changed before the view is loaded. A workaround for the time being is to call photosViewController.loadViewIfNecessary() before changing any overlayView properties.

This should be fixed in the next release.

alexhillc commented 6 years ago

Fixed in e334eb6d719017d2e4c5540e3a896323100c662f.