thiagoperes / IDMPhotoBrowser

Photo Browser / Viewer inspired by Facebook's and Tweetbot's with ARC support, swipe-to-dismiss, image progress and more

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Action button change not working.

PrakashMaharjan opened this issue · comments

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??

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