I am using MWPhotoBrowser
in my ARC project. Everything is working fine. I want to hide back button. In performLayout()
function, I tried below code to hide back button but its not working.
self.navigationController.navigationItem.backBarButtonItem = nil;
or
self.navigationItem.backBarButtonItem = nil;
or
self.navigationItem.hidesBackButton = YES;
Any idea how to do this?
In MWPhotoBrowser.m find the following line:
self.previousViewControllerBackButton = previousViewController.navigationItem.backBarButtonItem;
and change it to:
self.previousViewControllerBackButton = nil;