thiagoperes / IDMPhotoBrowser

Photo Browser / Viewer inspired by Facebook's and Tweetbot's with ARC support, swipe-to-dismiss, image progress and more
MIT License
2.71k stars 641 forks source link

Action button change not working. #257

Open PrakashMaharjan opened 7 years ago

PrakashMaharjan commented 7 years ago

I tried to customize or change the default share action button image with other image icon but its not working. It always returns nil and set default blue share icon image. Is this a bug or have anyone faced this issue??

The code i tried is below, which did not worked for me.

IDMPhotoBrowser *browser = [[IDMPhotoBrowser alloc] initWithPhotos:photos animatedFromView:self.view]; browser.actionButtonImage = [UIImage imageNamed:@"share.png"] ; browser.actionButtonSelectedImage = [UIImage imageNamed:@"shareSelected.png"] ;

[browser.action setImage:[UIImage imageNamed:@"share.png"] forState:UIControlStateNormal];

Is this a bug or i missed something??

heisen273 commented 7 years ago

I am experiencing absolutely same issue. No idea how to fix this.