To customize your own reverse image button, you need to set a custom look. and call the appdelegate.h file.
Note. You need to install once in appdelegate.h and then apply it throughout the project. no need to declare in each controller.
please check it.
//in Appdelegate.h file - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [self customappearance]; //Method declaration }
and declare your image with the image in a custom look. Like this,
-(void)customappearance { //int imageSize = 20; UIImage *myImage = [UIImage imageNamed:@"icon_back"]; //set your backbutton imagename UIImage *backButtonImage = [myImage imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; // now use the new backButtomImage [[UINavigationBar appearance] setBackIndicatorImage:backButtonImage]; [[UINavigationBar appearance] setBackIndicatorTransitionMaskImage:backButtonImage]; /* UIImage *backbutton=[[UIImage imageNamed:@"icon_back"]resizableImageWithCapInsets:UIEdgeInsetsMake(0, 0, 0, 0) resizingMode:UIImageResizingModeStretch]; //resizableImageWithCapInsets:UIEdgeInsetsMake(0, 0, 0, 0) resizingMode:UIImageResizingModeStretch]; [[UIBarButtonItem appearance] setBackButtonBackgroundImage:backbutton forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];*/ [[UIBarButtonItem appearance] setBackButtonTitlePositionAdjustment:UIOffsetMake(-400.f, 0) forBarMetrics:UIBarMetricsDefault]; }
and your back button in the navigation bar looks like this.

source share